[MacPorts] #59941: fmpeg @4.2.2: error: unknown type name 'u_long'; did you mean 'long'? (was: FFmpeg 4.2.2 on MacPorts 2.6.2 failed to build)
MacPorts
noreply at macports.org
Sat Jan 11 02:07:52 UTC 2020
#59941: fmpeg @4.2.2: error: unknown type name 'u_long'; did you mean 'long'?
---------------------+----------------------
Reporter: sclsj | Owner: dbevans
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.2
Resolution: | Keywords:
Port: ffmpeg |
---------------------+----------------------
Changes (by ryandesign):
* status: new => assigned
* cc: jeremyhu (added)
* owner: (none) => dbevans
Old description:
> port install ffmpeg
> Portfile changed since last build; discarding previous state.
> ---> Computing dependencies for ffmpeg
> ---> Fetching archive for ffmpeg
> ---> Attempting to fetch ffmpeg-4.2.2_0+gpl2.darwin_17.x86_64.tbz2 from
> https://pek.cn.packages.macports.org/macports/packages/ffmpeg
> ---> Attempting to fetch ffmpeg-4.2.2_0+gpl2.darwin_17.x86_64.tbz2 from
> http://kmq.jp.packages.macports.org/ffmpeg
> ---> Attempting to fetch ffmpeg-4.2.2_0+gpl2.darwin_17.x86_64.tbz2 from
> http://nue.de.packages.macports.org/ffmpeg
> ---> Fetching distfiles for ffmpeg
> ---> Attempting to fetch ffmpeg-4.2.2.tar.xz from
> https://pek.cn.distfiles.macports.org/macports/distfiles/ffmpeg
> ---> Verifying checksums for ffmpeg
> ---> Extracting ffmpeg
> ---> Applying patches to ffmpeg
> ---> Configuring ffmpeg
> ---> Building ffmpeg
> Error: Failed to build ffmpeg: command execution failed
> Error: See
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/main.log
> for details.
> Error: Follow https://guide.macports.org/#project.tickets to report a
> bug.
> Error: Processing of port ffmpeg failed
New description:
{{{
port install ffmpeg
Portfile changed since last build; discarding previous state.
---> Computing dependencies for ffmpeg
---> Fetching archive for ffmpeg
---> Attempting to fetch ffmpeg-4.2.2_0+gpl2.darwin_17.x86_64.tbz2 from
https://pek.cn.packages.macports.org/macports/packages/ffmpeg
---> Attempting to fetch ffmpeg-4.2.2_0+gpl2.darwin_17.x86_64.tbz2 from
http://kmq.jp.packages.macports.org/ffmpeg
---> Attempting to fetch ffmpeg-4.2.2_0+gpl2.darwin_17.x86_64.tbz2 from
http://nue.de.packages.macports.org/ffmpeg
---> Fetching distfiles for ffmpeg
---> Attempting to fetch ffmpeg-4.2.2.tar.xz from
https://pek.cn.distfiles.macports.org/macports/distfiles/ffmpeg
---> Verifying checksums for ffmpeg
---> Extracting ffmpeg
---> Applying patches to ffmpeg
---> Configuring ffmpeg
---> Building ffmpeg
Error: Failed to build ffmpeg: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port ffmpeg failed
}}}
--
Comment:
Remember to use WikiFormatting when writing in Trac.
There are seven separate build attempts in the attached main.log, but the
problem appears to be:
{{{
:info:build In file included from libavutil/cpu.c:44:
:info:build In file included from /usr/include/sys/sysctl.h:83:
:info:build /usr/include/sys/ucred.h:91:2: error: unknown type name
'u_long'; did you mean 'long'?
:info:build u_long cr_ref; /* reference count */
:info:build ^
:info:build /usr/include/sys/ucred.h:133:9: error: unknown type name
'u_int'
:info:build u_int cr_version; /* structure layout
version */
:info:build ^
:info:build In file included from libavutil/cpu.c:44:
:info:build In file included from /usr/include/sys/sysctl.h:84:
:info:build /usr/include/sys/proc.h:113:2: error: unknown type name
'u_int'
:info:build u_int p_estcpu; /* Time averaged value of
p_cpticks. */
:info:build ^
:info:build /usr/include/sys/proc.h:118:2: error: unknown type name
'u_int'
:info:build u_int p_swtime; /* Time swapped in or out. */
:info:build ^
:info:build /usr/include/sys/proc.h:119:2: error: unknown type name
'u_int'
:info:build u_int p_slptime; /* Time since last blocked.
*/
:info:build ^
:info:build /usr/include/sys/proc.h:133:2: error: unknown type name
'u_char'; did you mean 'char'?
:info:build u_char p_priority; /* Process priority. */
:info:build ^
:info:build /usr/include/sys/proc.h:134:2: error: unknown type name
'u_char'; did you mean 'char'?
:info:build u_char p_usrpri; /* User-priority based on
p_cpu and p_nice. */
:info:build ^
:info:build /usr/include/sys/proc.h:139:2: error: unknown type name
'u_short'; did you mean 'short'?
:info:build u_short p_xstat; /* Exit status for wait; also
stop signal. */
:info:build ^
:info:build /usr/include/sys/proc.h:140:2: error: unknown type name
'u_short'; did you mean 'short'?
:info:build u_short p_acflag; /* Accounting flags. */
:info:build ^
:info:build 9 errors generated.
:info:build gmake: *** [ffbuild/common.mak:59: libavutil/cpu.o] Error 1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/59941#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list