[poky] gst-ffmpeg linker failure

Xu, Dongxiao dongxiao.xu at intel.com
Thu Dec 2 16:50:05 PST 2010


Hi Darren,

Gst-ffmpeg is to be upgrade in this round. I will do it and check the issue. 

Thanks,
Dongxiao

Gary Thomas wrote:
> On 12/02/2010 12:16 PM, Darren Hart wrote:
>> I see the following failure trying to build gst-ffmpeg for
>> qemux86-64 on both Ubuntu 10.10 and Fedora 13. It seems to be
>> complaining that things aren't being built with -fPIC.  
>> 
>>> From log.do_compile:
>> 
>> x86_64-poky-linux-libtool: link:  ccache  x86_64-poky-linux-gcc
>> -L/vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib
>> -shared  -fPIC -DPIC  .libs/libgstffmpeg_la-gstffmpeg.o
>> .libs/libgstffmpeg_la-gstffmpegprotocol.o
>> .libs/libgstffmpeg_la-gstffmpegcodecmap.o
>> .libs/libgstffmpeg_la-gstffmpegenc.o
>> .libs/libgstffmpeg_la-gstffmpegdec.o
>> .libs/libgstffmpeg_la-gstffmpegdemux.o
>> .libs/libgstffmpeg_la-gstffmpegdeinterlace.o
>> .libs/libgstffmpeg_la-gstffmpegscale.o  -Wl,--whole-archive
>> ../../gst-libs/ext/ffmpeg/libavformat/.libs/libavformat.a
>> -Wl,--no-whole-archive  -Wl,-rpath
>> -Wl,/vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/li
>> b
>> -L/vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib/
>> .libs 
>> -L/vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib
>> /vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib/li
>> bvorbisenc.so
>> /vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib/li
>> bvorbis.so /vol/1/dvhart/poky.g
> it
>> /build/tmp/sysroots/x86_64-poky-linux/usr/lib/libogg.so
>> /vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib/libgstbase-0.10.so
>> /vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib/libgstreamer-0.10.so
>> /vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib/libgobject-2.0.so
>> /vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib/libgmodule-2.0.so
>> /vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib/libxml2.so
>> -ldl
>> /vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib/libz.so
>> -lm
>> /vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib/libgthread-2.0.so
>> -lpthread
>> /vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib/libglib-2.0.so
>> -lrt  -pthread -pthread -O2 -Wl,-O1 -Wl,--as-needed -pthread  
>> -pthread -Wl,-soname -Wl,libgstffmpeg.so -Wl,-version-script
>> -Wl,.libs/libgstffmpeg.ver -o .libs/libgstffmpeg.so
>> /vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-linux/usr/libexec/x86
>> _64-poky-linux/gcc/x86_64-poky-linux/4.5.1/ld:
>> .libs/libgstffmpeg_la-gstffmpeg.o: relocation R_X86_64_32 against
>> `.text' can not be used when making a shared object; recompile with
>> -fPIC .libs/libgstffmpeg_la-gstffmpeg.o: could not read symbols: Bad
>> value               
>> collect2: ld returned 1 exit status
>> make[3]: *** [libgstffmpeg.la] Error 1
>> make[3]: Leaving directory
>> `/vol/1/dvhart/poky.git/build/tmp/work/x86_64-poky-linux/gst-ffmpeg-0.10.1-r5/gst-ffmpeg-0.10.1/ext/ffmpeg'
>> make[2]: *** [all-recursive] Error 1
>> make[2]: Leaving directory
>> `/vol/1/dvhart/poky.git/build/tmp/work/x86_64-poky-linux/gst-ffmpeg-0.10.1-r5/gst-ffmpeg-0.10.1/ext'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory
>> `/vol/1/dvhart/poky.git/build/tmp/work/x86_64-poky-linux/gst-ffmpeg-0.10.1-r5/gst-ffmpeg-0.10.1'
>> make: *** [all] Error 2
>> FATAL: oe_runmake failed
>> ERROR: Task failed: ('function do_compile failed',
>> '/vol/1/dvhart/poky.git/build/tmp/work/x86_64-poky-linux/gst-ffmpeg-0.
>> 10.1-r5/temp/log.do_compile.22338')
>> 
> 
> Maybe you should try a newer version?  gst-ffmpeg_0.10.8 builds for
> me in Poky (my layer of course) 




More information about the poky mailing list