[Ffmpeg-devel] mp3lame : more --as-needed woes

Baptiste Coudurier baptiste.coudurier
Mon Oct 30 10:50:04 CET 2006


Hi

sean wrote:
> Building today's svn - 6834, configure dies looking for lame, from
> config.err:
> 
> gcc -Wl,--warn-common -Wl,--as-needed -pthread -o
> /tmp/ffmpeg-conf-9929-7135-22245 /tmp/ffmpeg-conf-2682-7135-369.o -lm
> -lz -ldts -lm -lgsm -lmp3lame -lm
> /usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/libmp3lame.so:
> undefined reference to `sqrt'
> /usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/libmp3lame.so:
> undefined reference to `floor'
> /usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/libmp3lame.so:
> undefined reference to `ceil'
> /usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/libmp3lame.so:
> undefined reference to `tan'
> ..........................
> 
> Notice libm _follows_ libmp3lame, so as-needed should be able to use it.
> 
> ???
> 
> [ this may be a dup. An earlier message never showed up. If so, sorry. ]
> 
> sean
> 

Confirmed here.

gcc -Wl,--warn-common -Wl,--as-needed -pthread -o
/tmp/ffmpeg-conf-15632-14573-3945 /tmp/ffmpeg-conf-6857-14573-19654.o
-lm -lz -ldts -lm -lmp3lame -lm
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libmp3lame.so:
undefined reference to `pow'
collect2: ld returned 1 exit status

gcc (GCC) 4.1.2 20061020 (prerelease) (Debian 4.1.1-17)
GNU ld version 2.17 Debian GNU/Linux

Removing -Wl,--as-needed fixes the problem.

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A.                                    http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312




More information about the ffmpeg-devel mailing list