[Ffmpeg-devel] Latest SVN failing to configure

Aaron Williams aaronw
Tue Oct 24 19:29:46 CEST 2006


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




More information about the ffmpeg-devel mailing list