[FFmpeg-cvslog] r11100 - in trunk/libavcodec/i386: cavsdsp_mmx.c dsputil_mmx.c dsputil_mmx.h h264dsp_mmx.c mpegvideo_mmx.c vc1dsp_mmx.c

Pavlov Konstantin thresh
Thu Nov 29 23:32:39 CET 2007


On Tue, Nov 27, 2007 at 11:23:35PM +0100, aurel wrote:
> Author: aurel
> Date: Tue Nov 27 23:23:34 2007
> New Revision: 11100
> 
> Log:
> make ff_p* vars extern so that they can be used in various *_mmx.c files
> 
> Added:
>    trunk/libavcodec/i386/dsputil_mmx.h
> Modified:
>    trunk/libavcodec/i386/cavsdsp_mmx.c
>    trunk/libavcodec/i386/dsputil_mmx.c
>    trunk/libavcodec/i386/h264dsp_mmx.c
>    trunk/libavcodec/i386/mpegvideo_mmx.c
>    trunk/libavcodec/i386/vc1dsp_mmx.c

This seems to break shared library builds here on x86_64:
/usr/bin/ld: i386/dsputil_mmx.o: relocation R_X86_64_PC32 against
`ff_pw_20' can not be used when making a shared object; recompile with
-fPIC
/usr/bin/ld: final link failed: Bad value

and of course i386/dsputil_mmx.o is built using -fPIC -DPIC:

gcc -I"/home/thresh/RPM/BUILD/ffmpeg-11113-alt1"/libswscale
-I"/home/thresh/RPM/BUILD/ffmpeg-11113-alt1"/libavcodec
-DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_ISOC9X_SOURCE -I"/home/thresh/RPM/BUILD/ffmpeg-11113-alt1"
-I"/home/thresh/RPM/BUILD/ffmpeg-11113-alt1"
-I"/home/thresh/RPM/BUILD/ffmpeg-11113-alt1"/libavutil -pipe -Wall -O2
-frename-registers -fPIC -DPIC -fomit-frame-pointer -pthread
-I/usr/include/dirac -Wdeclaration-after-statement -Wall -Wno-switch
-Wdisabled-optimization -Wpointer-arith -Wredundant-decls
-Wno-pointer-sign -O3 -O3  -fPIC -DPIC -c -o i386/dsputil_mmx.o
i386/dsputil_mmx.c

Suggestions on how to fix it?

-- 
We lie loudest when we lie to ourselves.
	-- Eric Hoffer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20071130/35b65ef3/attachment.pgp>



More information about the ffmpeg-cvslog mailing list