[Ffmpeg-devel] swscaler build fails on x86-64

sean seandarcy2
Mon Sep 4 05:57:45 CEST 2006


Trying to build today's svn on amd64, gcc-4.1.1, 
binutils-2.17.50.0.3:

gcc -shared -Wl,-soname,libswscale.so.0 -Wl,--warn-common 
  -pthread -rdynamic -export-dynamic -Wl,--as-needed 
-Wl,-rpath-link,/usr/src/redhat/BUILD/ffmpeg/libavcodec 
-Wl,-rpath-link,/usr/src/redhat/BUILD/ffmpeg/libavformat 
-Wl,-rpath-link,/usr/src/redhat/BUILD/ffmpeg/libavutil -o 
libswscale.so.0 swscale.o rgb2rgb.o yuv2rgb.o -L../libavutil 
-lavutil -lm -lz -lgsm -lmp3lame -lvorbis -lvorbisenc -logg 
-logg -lxvidcore -lx264 -ldc1394_control -lraw1394 -lfaac 
-lfaad -ldl
/usr/bin/ld: yuv2rgb.o: relocation R_X86_64_PC32 against 
`mmx_00ffw' can not be used when making a shared object; 
recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
.......


but yuv2rgb.o _was_ compiled with -fPIC:


gcc -I.. -I/usr/src/redhat/BUILD/ffmpeg 
-I/usr/src/redhat/BUILD/ffmpeg/libavutil -march=k8 -pthread 
-g -Wdeclaration-after-statement -Wall -Wno-switch 
-Wdisabled-optimization -Wpointer-arith -Wredundant-decls 
-Winline -O3 -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE -D_GNU_SOURCE -fPIC -DPIC -c -o 
yuv2rgb.o yuv2rgb.c

Any suggestions?

sean





More information about the ffmpeg-devel mailing list