ffmpeg build error
Kastus Shchuka
macports at tprfct.net
Fri Dec 5 23:29:21 PST 2008
I found ticket #17527 in Trac about it. Sorry for the noise.
On Dec 5, 2008, at 11:19 PM, Kastus Shchuka wrote:
> I tried to upgrade to ffmpeg 15261_0 and stumbled at this error:
>
> ---> Building ffmpeg with target all
> Error: Target org.macports.build returned: shell command " cd "/opt/
> local/var/macports/build/
> _opt_local_var_macports_sources_rsync
> .macports.org_release_ports_multimedia_ffmpeg/work/trunk" && gmake
> all " returned error 2
> Command output: libavcodec/ppc/snow_altivec.c:727: warning: pointer
> type mismatch in conditional expression
> gcc-4.0 -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -
> D_LARGEFILE_SOURCE -I. -I"/opt/local/var/macports/build/
> _opt_local_var_macports_sources_rsync
> .macports.org_release_ports_multimedia_ffmpeg/work/trunk" -O2 -
> DHAVE_LRINTF -I/opt/local/include -D_ISOC99_SOURCE -
> D_POSIX_C_SOURCE=200112 -fasm -std=c99 -pipe -force_cpusubtype_ALL -
> Wno-sign-compare -fomit-frame-pointer -maltivec -mabi=altivec -g -
> Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-
> optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -
> Wcast-qual -Wwrite-strings -O3 -fno-math-errno -maltivec -
> mabi=altivec -maltivec -mabi=altivec -fPIC -DPIC -c -o libavcodec/
> ppc/vc1dsp_altivec.o libavcodec/ppc/vc1dsp_altivec.c
> gcc-4.0 -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -
> D_LARGEFILE_SOURCE -I. -I"/opt/local/var/macports/build/
> _opt_local_var_macports_sources_rsync
> .macports.org_release_ports_multimedia_ffmpeg/work/trunk" -O2 -
> DHAVE_LRINTF -I/opt/local/include -D_ISOC99_SOURCE -
> D_POSIX_C_SOURCE=200112 -fasm -std=c99 -pipe -force_cpusubtype_ALL -
> Wno-sign-compare -fomit-frame-pointer -maltivec -mabi=altivec -g -
> Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-
> optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -
> Wcast-qual -Wwrite-strings -O3 -fno-math-errno -fPIC -DPIC -c -
> o libavcodec/ppc/check_altivec.o libavcodec/ppc/check_altivec.c
> In file included from /usr/include/sys/ucred.h:76,
> from /usr/include/sys/sysctl.h:83,
> from libavcodec/ppc/check_altivec.c:26:
> /usr/include/bsm/audit.h:224: error: syntax error before 'u_char'
> /usr/include/bsm/audit.h:227: error: syntax error before '}' token
> /usr/include/bsm/audit.h:234: error: syntax error before 'u_char'
> /usr/include/bsm/audit.h:237: error: syntax error before '}' token
> In file included from /usr/include/sys/sysctl.h:83,
> from libavcodec/ppc/check_altivec.c:26:
> /usr/include/sys/ucred.h:90: error: syntax error before 'u_long'
> /usr/include/sys/ucred.h:113: error: syntax error before '}' token
> /usr/include/sys/ucred.h:130: error: syntax error before 'u_int'
> /usr/include/sys/ucred.h:134: error: syntax error before '}' token
> In file included from /usr/include/sys/sysctl.h:84,
> from libavcodec/ppc/check_altivec.c:26:
> /usr/include/sys/proc.h:114: error: syntax error before 'u_int'
> /usr/include/sys/proc.h:119: error: syntax error before 'p_swtime'
> /usr/include/sys/proc.h:120: error: syntax error before 'p_slptime'
> /usr/include/sys/proc.h:134: error: syntax error before 'p_priority'
> /usr/include/sys/proc.h:135: error: syntax error before 'p_usrpri'
> /usr/include/sys/proc.h:140: error: syntax error before 'p_xstat'
> /usr/include/sys/proc.h:141: error: syntax error before 'p_acflag'
> /usr/include/sys/proc.h:143: error: syntax error before '}' token
> In file included from libavcodec/ppc/check_altivec.c:26:
> /usr/include/sys/sysctl.h:440: error: field 'kp_proc' has incomplete
> type
> /usr/include/sys/sysctl.h:750: error: syntax error before 'u_int'
> gmake: *** [libavcodec/ppc/check_altivec.o] Error 1
>
> Error: Unable to upgrade port: 1
>
> This happened on iBook G4 running Leopard (10.5.5). Is it me doing
> something wrong or did I hit a bug?
>
> Thanks, -Kastus
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
More information about the macports-users
mailing list