xvidcore yasm build won't link w/ ffmpeg

Peter Johnson peter at tortall.net
Wed Jan 25 21:28:29 PST 2006


On Wed, 25 Jan 2006, sean darcy wrote:
> amd64, gcc-4.1, fc5-test2, yasm-r1344
>
> I'm building ffmpeg, which links to xvidcore-1.1  ( and cvs).
>
> I get this error when it tries to link everything into libavcodec.so:
>
> /usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/4.1.0/../../../../lib64/libxvidcore.a(qpel_mmx.o):
> relocation R_X86_64_PC32 against `xvid_FIR_14_3_2_1' can not be used
> when making a shared object; recompile with -fPIC
> /usr/bin/ld: final link failed: Bad value
>
> xvidcore builds qpel_mmx.o using yasm:
>
>  A: image/x86_64_asm/qpel_mmx.asm
> /usr/bin/install -c -d =build/image/x86_64_asm
> yasm -I../../src/image/x86_64_asm/ -f elf  -DMARK_FUNCS -m amd64
> ../../src/image/x86_64_asm/qpel_mmx.asm -o
> =build/image/x86_64_asm/qpel_mmx.o

While it could be a yasm error, I'm inclined to think not.  It's more 
likely that qpel_mmx.asm is not written to be used in shared libraries, 
only in static linking situations.

-- 
Peter Johnson



More information about the yasm-devel mailing list