[Ffmpeg-devel] Latest SVN failing to configure

Aaron Williams aaronw
Tue Oct 24 19:44:50 CEST 2006


Hi,

Aaron Williams wrote:
> Hi,
>
> Pavlov Konstantin wrote:
>   
>> On Tuesday 24 October 2006 20:41, Aaron Williams wrote:
>>   
>>     
>>> The latest svn version is failing to configure.  On an Athlon64 system
>>> it no longer recognizes dts.  Looks like it's forgetting to include the
>>> math library when linking:
>>>
>>> check_cpp
>>> BEGIN /tmp/ffmpeg-conf-2777-24927-26328.c
>>>      1    #include <dts.h>
>>>      2    int x;
>>> END /tmp/ffmpeg-conf-2777-24927-26328.c
>>> gcc -march=athlon64 -fomit-frame-pointer -E -o
>>> /tmp/ffmpeg-conf-10660-24927-4214.o /tmp/ffmpeg-conf-2777-24927-26328.c
>>> check_func dts_init
>>> check_ld
>>> check_cc
>>> BEGIN /tmp/ffmpeg-conf-2777-24927-26328.c
>>>      1    extern int dts_init();
>>>      2    int main(){
>>>      3        dts_init();
>>>      4    }
>>> END /tmp/ffmpeg-conf-2777-24927-26328.c
>>> gcc -march=athlon64 -fomit-frame-pointer -c -o
>>> /tmp/ffmpeg-conf-10660-24927-4214.o /tmp/ffmpeg-conf-2777-24927-26328.c
>>> gcc -Wl,--warn-common -Wl,--as-needed -o
>>> /tmp/ffmpeg-conf-7477-24927-31302 /tmp/ffmpeg-conf-10660-24927-4214.o
>>> -lm -lz -ldts
>>> /usr/local/lib/libdts.a(parse.o): In function `dts_init':
>>> parse.c:(.text+0x59a): undefined reference to `cos'
>>> parse.c:(.text+0x5f2): undefined reference to `cos'
>>> parse.c:(.text+0x638): undefined reference to `cos'
>>> parse.c:(.text+0x67d): undefined reference to `sin'
>>> collect2: ld returned 1 exit status
>>> ERROR: libdts not found
>>>     
>>>       
>> It looks more like your dts wasnt linked with -lm, which is erroneus with ld 
>> ran with -as-needed.
>>
>>   
>>     
> I have had no problems with exactly the same configuration with a svn
> build from a week ago.  I have not touched libdts.
>
> -Aaron
>   
I have some more information.  libdts is not a .so file.  I found that
if I added -lm after -ldts then it works fine.  I also ran into a
problem with lame, which also required -lm after -lmp3lame.

svn diff configure
Index: configure
===================================================================
--- configure   (revision 6789)
+++ configure   (working copy)
@@ -1302,9 +1302,9 @@
 fi

 # these are off by default, so fail if requested and not available
-enabled dts     && require libdts dts.h dts_init -ldts
+enabled dts     && require libdts dts.h dts_init -ldts -lm
 enabled libgsm  && require libgsm gsm.h gsm_create -lgsm
-enabled mp3lame && require LAME lame/lame.h lame_init -lmp3lame
+enabled mp3lame && require LAME lame/lame.h lame_init -lmp3lame -lm
 enabled vorbis  && require libvorbis vorbis/vorbisenc.h
vorbis_info_init -lvorbis -lvorbisenc -logg
 enabled libogg  && require libogg ogg/ogg.h ogg_sync_init -logg
 enabled xvid    && require XviD xvid.h xvid_global -lxvidcore





More information about the ffmpeg-devel mailing list