[FFmpeg-cvslog] r21468 - in trunk: Makefile configure

Stefano Sabatini stefano.sabatini-lala
Wed Jan 27 01:12:02 CET 2010


On date Wednesday 2010-01-27 00:13:01 +0100, mru wrote:
> Author: mru
> Date: Wed Jan 27 00:13:01 2010
> New Revision: 21468
> 
> Log:
> Allow disabling of lavc, lavf, lavd, and lsws
> 
> Modified:
>    trunk/Makefile
>    trunk/configure

While the change is cool and useful, it has a nasty collateral effect
on my system:


stefano at geppetto ~/s/ffmpeg> ldd --version
ldd (GNU libc) 2.7
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

stefano at geppetto ~/s/ffmpeg> make
gcc -L"/home/stefano/src/ffmpeg"/libavcodec -L"/home/stefano/src/ffmpeg"/libavdevice -L"/home/stefano/src/ffmpeg"/libavfilter -L"/home/stefano/src/ffmpeg"/libavformat -L"/home/stefano/src/ffmpeg"/libavutil -L"/home/stefano/src/ffmpeg"/libpostproc -L"/home/stefano/src/ffmpeg"/libswscale -L/home/stefano/lib -Wl,--warn-common -Wl,--as-needed -Wl,-rpath-link,"/home/stefano/src/ffmpeg"/libpostproc -Wl,-rpath-link,"/home/stefano/src/ffmpeg"/libswscale -Wl,-rpath-link,"/home/stefano/src/ffmpeg"/libavfilter -Wl,-rpath-link,"/home/stefano/src/ffmpeg"/libavdevice -Wl,-rpath-link,"/home/stefano/src/ffmpeg"/libavformat -Wl,-rpath-link,"/home/stefano/src/ffmpeg"/libavcodec -Wl,-rpath-link,"/home/stefano/src/ffmpeg"/libavutil -Wl,-Bsymbolic -o ffmpeg_g ffmpeg.o cmdutils.o -lavcodec -lavdevice -lavfilter -lavformat -lswscale -lavutil -lz -pthread -lm -lmp3lame -lm -lspeex -lvorbisenc -lvorbis -logg -lasound -ljack -ldl -lasound -ljack -lasound
/home/stefano/src/ffmpeg/libavformat/libavformat.a(oggparsedirac.o): In function `dirac_header':
/home/stefano/src/ffmpeg/libavformat/oggparsedirac.c:39: undefined reference to `ff_dirac_parse_sequence_header'
collect2: ld returned 1 exit status
make: *** [ffmpeg_g] Error 1

ff_dirac_parse_sequence_header is defined in libavcodec/dirac.c.

The order of flags matters here:
-lavcodec -lavdevice -lavfilter -lavformat -lswscale -lavutil

Referencing -lavcodec *after* -lavformat fixes the problem.

Regards.



More information about the ffmpeg-cvslog mailing list