[Ffmpeg-devel] Shared libraries on AMD64
Fri Apr 27 21:50:17 CEST 2007
On Fri, 27 Apr 2007, Alexandru Asofie wrote:
> >> When I run make I get the following error:
> >> /usr/bin/ld: mathematics.o: relocation R_X86_64_32 against `a local
> >> symbol' can not be used when making a shared object; recompile with
> >> -fPIC
> >> mathematics.o: could not read symbols: Bad value
> >> collect2: ld returned 1 exit status
> >> make: *** [libavutil.so.49] Error 1
> >> make: Leaving directory `/tmp/ffmpeg/libavutil'
> >> make: *** [lib] Error 2
> >> Do you have any idea why it says to recompile with -fPIC since I
> >> already added
> >> --extra-cflags="-fPIC" ?
There is probably some inline asm code in libavutil. AMD64 shared
libraries must be PIC. Using -fpic only makes the C code pic, inline asm
can still be non-pic.
More information about the ffmpeg-devel