Opened 14 months ago

Last modified 14 months ago

#59941 assigned defect

fmpeg @4.2.2: error: unknown type name 'u_long'; did you mean 'long'?

Reported by: sclsj Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port: ffmpeg

Description (last modified by ryandesign (Ryan Schmidt))

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

Attachments (1)

main.log (3.3 MB) - added by sclsj 14 months ago.
Build log

Change History (2)

Changed 14 months ago by sclsj

Attachment: main.log added

Build log

comment:1 Changed 14 months ago by ryandesign (Ryan Schmidt)

Cc: jeremyhu added
Description: modified (diff)
Owner: set to dbevans
Status: newassigned
Summary: FFmpeg 4.2.2 on MacPorts 2.6.2 failed to buildfmpeg @4.2.2: error: unknown type name 'u_long'; did you mean 'long'?

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
Note: See TracTickets for help on using tickets.