Error upgrading ffmpeg +x264
Chris Janton
face at CentosPrime.COM
Sun Jul 27 07:21:12 PDT 2008
Running from trunk...
mac 11 # port outdated
The following installed ports are outdated:
ffmpeg 0.4.9-pre1_8 < 0.4.9-pre1_9
ImageMagick 6.4.2-4_0 < 6.4.2-4_1
pango 1.20.3_0 < 1.20.5_0
x264 20080108_0 < 20080724_1
mac 12 # sudo port upgrade outdated
---> Fetching ffmpeg
---> Verifying checksum(s) for ffmpeg
---> Extracting ffmpeg
---> Configuring ffmpeg
---> Building ffmpeg
Error: Target org.macports.build returned: shell command " cd "/opt/
local/var/macports/build/_opt_mports_trunk_dports_multimedia_ffmpeg/
work/trunk" && make all " returned error 2
Command output: gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -
D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I. -I"/opt/local/var/macports/
build/_opt_mports_trunk_dports_multimedia_ffmpeg/work/trunk" -O2 -
DHAVE_LRINTF -I/opt/local/include -pipe -force_cpusubtype_ALL -Wno-
sign-compare -fomit-frame-pointer -g -Wdeclaration-after-statement -
Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-
decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -O3 -fno-math-
errno -c -o libavcodec/lclenc.o libavcodec/lclenc.c
...
gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -
D_ISOC9X_SOURCE -I. -I"/opt/local/var/macports/build/
_opt_mports_trunk_dports_multimedia_ffmpeg/work/trunk" -O2 -
DHAVE_LRINTF -I/opt/local/include -pipe -force_cpusubtype_ALL -Wno-
sign-compare -fomit-frame-pointer -g -Wdeclaration-after-statement -
Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-
decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -O3 -fno-math-
errno -c -o libavcodec/libvorbis.o libavcodec/libvorbis.c
libavcodec/libvorbis.c: In function 'oggvorbis_encode_init':
libavcodec/libvorbis.c:99: warning: passing argument 2 of
'vorbis_comment_add_tag' discards qualifiers from pointer target type
libavcodec/libvorbis.c:99: warning: passing argument 3 of
'vorbis_comment_add_tag' discards qualifiers from pointer target type
gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -
D_ISOC9X_SOURCE -I. -I"/opt/local/var/macports/build/
_opt_mports_trunk_dports_multimedia_ffmpeg/work/trunk" -O2 -
DHAVE_LRINTF -I/opt/local/include -pipe -force_cpusubtype_ALL -Wno-
sign-compare -fomit-frame-pointer -g -Wdeclaration-after-statement -
Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-
decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -O3 -fno-math-
errno -c -o libavcodec/libx264.o libavcodec/libx264.c
libavcodec/libx264.c: In function 'X264_init':
libavcodec/libx264.c:224: error: 'X264_ME_TESA' undeclared (first use
in this function)
libavcodec/libx264.c:224: error: (Each undeclared identifier is
reported only once
libavcodec/libx264.c:224: error: for each function it appears in.)
libavcodec/libx264.c:256: warning: assignment discards qualifiers from
pointer target type
make: *** [libavcodec/libx264.o] Error 1
The error with libx264 looks suspicious given that x264 is in the list
of outdated ports...
If you let the upgrade finish then do
sudo port clean --work ffmpeg
sudo port upgrade ffmpeg
it builds and installs properly.
My install of ffmpeg uses variant +x264
My guess is that this is a very difficult build dependency to
determine, since the dependency is only there if the variant is
selected.
8)
----------------------------------
Chris Janton - face at CentosPrime dot COM
Netminder for Opus1.COM
More information about the macports-users
mailing list