[FFmpeg-devel] Error linking on x86_64

Stephane List slist
Wed May 28 17:14:05 CEST 2008


Hi,

I've configured ffmpeg with :
./configure --enable-gpl --enable-libfaac --enable-libfaad --enable-shared

But the link fails with the following error :
It's strange because -fPIC is present during compilation of c files.

gcc -shared -Wl,-soname,libavutil.so.49  -rdynamic -export-dynamic
-Wl,--warn-common -Wl,--as-needed
-Wl,-rpath-link,"/home/slist/svn/ffmpeg"/libavcodec
-Wl,-rpath-link,"/home/slist/svn/ffmpeg"/libavformat
-Wl,-rpath-link,"/home/slist/svn/ffmpeg"/libavutil -Wl,-Bsymbolic -o
libavutil/libavutil.so.49 libavutil/adler32.o libavutil/aes.o
libavutil/base64.o libavutil/crc.o libavutil/des.o libavutil/fifo.o
libavutil/intfloat_readwrite.o libavutil/lls.o libavutil/log.o
libavutil/lzo.o libavutil/mathematics.o libavutil/md5.o libavutil/mem.o
libavutil/random.o libavutil/rational.o libavutil/rc4.o libavutil/sha1.o
libavutil/string.o libavutil/tree.o  -lz -lm -lfaac -lfaad   -ldl -ldl
/usr/bin/ld: libavutil/adler32.o: relocation R_X86_64_32 against `a
local symbol' can not be used when making a shared object; recompile
with -fPIC
libavutil/adler32.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libavutil/libavutil.so.49] Error 1

Any hints ?

Stephane (debian stable, gcc 4.1.2, make 3.1)




More information about the ffmpeg-devel mailing list