xvidcore yasm build won't link w/ ffmpeg

sean darcy seandarcy2 at gmail.com
Wed Jan 25 18:40:51 PST 2006


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

xvidcore has a configure option   --disable-assembly so gcc is used
instead, and that library will link with ffmpeg.

Is this a yasm isssue, or is xvidcore calling yasm incorrectly?

I'm cross-posting on xvid and yasm.

sean



More information about the yasm-devel mailing list