[MPlayer-dev-eng] FW: Link error - Relocations in generic ELF (EM: 3)

Shapiro, Alex (OTTAWA) Alex.Shapiro at windriver.com
Tue Jun 5 04:58:29 CEST 2007


Hello list,
 
I have a link error with my released version of mplayer package. At the
end of compilation with (my arm toolchain) "ccache
arm-wrs-linux-gnueabi-armv5tel-glibc_small-gcc", the link start, and
immediately failed with the following error:
 
ccache arm-wrs-linux-gnueabi-armv5tel-glibc_small-gcc -I../libswscale
-I../libavcodec  -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -I../libavutil
-Wdeclaration-after-statement -I. -I.. -I../libavutil -W -Wall
-Wno-unused-parameter -O2   -g  -D_REENTRANT -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
-I/home/dsodemo/WindRiver/workspace/Nokia-770-LX1.5-Platform_prj/host-cr
oss/arm-wrs-linux-gnueabi/lib/live   -c -o armv4l/simple_idct_armv5te.o
armv4l/simple_idct_armv5te.S
ccache arm-wrs-linux-gnueabi-armv5tel-glibc_small-gcc -I../libswscale
-I../libavcodec  -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -I../libavutil
-Wdeclaration-after-statement -I. -I.. -I../libavutil -W -Wall
-Wno-unused-parameter -O2   -g  -D_REENTRANT -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
-I/home/dsodemo/WindRiver/workspace/Nokia-770-LX1.5-Platform_prj/host-cr
oss/arm-wrs-linux-gnueabi/lib/live   -c -o armv4l/mpegvideo_armv5te.o
armv4l/mpegvideo_armv5te.c
ccache arm-wrs-linux-gnueabi-armv5tel-glibc_small-gcc -I../libswscale
-I../libavcodec  -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -I../libavutil
-Wdeclaration-after-statement -I. -I.. -I../libavutil -W -Wall
-Wno-unused-parameter -O2   -g  -D_REENTRANT -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
-I/home/dsodemo/WindRiver/workspace/Nokia-770-LX1.5-Platform_prj/host-cr
oss/arm-wrs-linux-gnueabi/lib/live   -c -o armv4l/simple_idct_armv6.o
armv4l/simple_idct_armv6.S
In file included from ../libavcodec/dsputil.h:33,
                 from armv4l/mpegvideo_arm.c:22:
../libavcodec/avcodec.h:2501: warning: `ImgReSampleContext' is
deprecated (declared at ../libavcodec/avcodec.h:2480)
../libavcodec/avcodec.h:2507: warning: `ImgReSampleContext' is
deprecated (declared at ../libavcodec/avcodec.h:2480)
In file included from ../libavcodec/dsputil.h:33,
                 from armv4l/mpegvideo_armv5te.c:28:
../libavcodec/avcodec.h:2501: warning: `ImgReSampleContext' is
deprecated (declared at ../libavcodec/avcodec.h:2480)
../libavcodec/avcodec.h:2507: warning: `ImgReSampleContext' is
deprecated (declared at ../libavcodec/avcodec.h:2480)
armv4l/mpegvideo_armv5te.c: In function
`dct_unquantize_h263_intra_armv5te':
armv4l/mpegvideo_armv5te.c:161: warning: unused variable `i'
armv4l/mpegvideo_armv5te.c: In function
`dct_unquantize_h263_inter_armv5te':
armv4l/mpegvideo_armv5te.c:190: warning: unused variable `i'
armv4l/mpegvideo_armv5te.c:190: warning: unused variable `level'
rm -f libavcodec.a
ar rc libavcodec.a bitstream.o utils.o allcodecs.o mpegvideo.o jrevdct.o
jfdctfst.o jfdctint.o resample.o resample2.o dsputil.o motion_est.o
imgconvert.o mpeg12.o simple_idct.o ratecontrol.o eval.o
error_resilience.o raw.o faandct.o parser.o rangecoder.o h263.o opt.o
bitstream_filter.o audioconvert.o imgresample.o aasc.o alac.o asv1.o
atrac3.o mdct.o fft.o avs.o bethsoftvideo.o bmp.o c93.o cavs.o cavsdsp.o
golomb.o cinepak.o cljr.o cook.o cscd.o cyuv.o dca.o dnxhddec.o
dsicinav.o dvbsubdec.o dvdsubdec.o dv.o dxa.o 8bps.o ffv1.o huffyuv.o
flac.o flashsv.o flicvideo.o 4xm.o fraps.o gifdec.o lzw.o h261dec.o
h261.o h263dec.o h264.o h264idct.o cabac.o idcinvideo.o imc.o indeo2.o
indeo3.o interplayvideo.o dpcm.o jpeglsdec.o jpegls.o mjpegdec.o mjpeg.o
kmvc.o loco.o mace.o mjpegbdec.o mmvideo.o mpegaudiodec.o
mpegaudiodecheader.o mpegaudio.o mpegaudiodata.o mpc.o msmpeg4.o
msmpeg4data.o msrle.o msvideo1.o lcl.o nuv.o rtjpeg.o png.o ptx.o qdm2.o
qdrw.o qpeg.o qtrle.o ra144.o ra288.o roqvideodec.o roqvideo.o rpza.o
rv10.o sgidec.o shorten.o smacker.o smc.o snow.o sonic.o sp5xdec.o
svq1.o targa.o vp3.o xiph.o vp3dsp.o tiertexseqv.o tiff.o truemotion1.o
truemotion2.o truespeech.o tscc.o tta.o txd.o s3tc.o ulti.o vc1.o
vc1data.o vc1dsp.o vcr1.o vmdav.o vmnc.o vorbis_dec.o vorbis.o
vorbis_data.o vp5.o vp56.o vp56data.o vp6.o vqavideo.o wavpack.o
wmadec.o wma.o wnv1.o ws-snd1.o xan.o xl.o zmbv.o pcm.o adpcm.o adx.o
g726.o aac_parser.o aac_ac3_parser.o ac3_parser.o ac3tab.o cavs_parser.o
dca_parser.o dvbsub_parser.o dvdsub_parser.o h261_parser.o h263_parser.o
h264_parser.o mjpeg_parser.o mpeg4video_parser.o mpegaudio_parser.o
mpegvideo_parser.o pnm_parser.o pnm.o vc1_parser.o dump_extradata_bsf.o
remove_extradata_bsf.o noise_bsf.o mp3_header_compress_bsf.o
mp3_header_decompress_bsf.o mjpega_dump_header_bsf.o
imx_dump_header_bsf.o pthread.o armv4l/dsputil_arm.o
armv4l/mpegvideo_arm.o armv4l/jrevdct_arm.o armv4l/simple_idct_arm.o
armv4l/dsputil_arm_s.o armv4l/simple_idct_armv5te.o
armv4l/mpegvideo_armv5te.o armv4l/simple_idct_armv6.o
arm-wrs-linux-gnueabi-armv5tel-glibc_small-ranlib libavcodec.a
make[2]: Leaving directory
`/home/dsodemo/WindRiver/workspace/Nokia-770-LX1.5-Platform_prj/build/mp
layer-checkout-2007-06-01/libavcodec'
ccache arm-wrs-linux-gnueabi-armv5tel-glibc_small-gcc -o mplayer
mplayer.o m_property.o mp_fifo.o mp_msg.o mixer.o parser-mpcmd.o
subopt-helper.o command.o asxparser.o codec-cfg.o cpudetect.o edl.o
find_sub.o m_config.o m_option.o m_struct.o mpcommon.o parser-cfg.o
playtree.o playtreeparser.o spudec.o sub_cc.o subreader.o vobsub.o
unrarlib.o libvo/libvo.a libao2/libao2.a input/libinput.a
libmpcodecs/libmpcodecs.a libaf/libaf.a libmpdemux/libmpdemux.a
stream/stream.a libswscale/libswscale.a libvo/libosd.a
libavformat/libavformat.a libavcodec/libavcodec.a libavutil/libavutil.a
libpostproc/libpostproc.a mp3lib/libmp3.a liba52/liba52.a
libmpeg2/libmpeg2.a tremor/libvorbisidec.a dvdread/libdvdread.a
libdvdcss/libdvdcss.a osdep/libosdep.a  -Wl,-z,noexecstack
/home/dsodemo/WindRiver/workspace/Nokia-770-LX1.5-Platform_prj/host-cros
s/arm-wrs-linux-gnueabi/lib/live/liveMedia/libliveMedia.a
/home/dsodemo/WindRiver/workspace/Nokia-770-LX1.5-Platform_prj/host-cros
s/arm-wrs-linux-gnueabi/lib/live/groupsock/libgroupsock.a
/home/dsodemo/WindRiver/workspace/Nokia-770-LX1.5-Platform_prj/host-cros
s/arm-wrs-linux-gnueabi/lib/live/UsageEnvironment/libUsageEnvironment.a
/home/dsodemo/WindRiver/workspace/Nokia-770-LX1.5-Platform_prj/host-cros
s/arm-wrs-linux-gnueabi/lib/live/BasicUsageEnvironment/libBasicUsageEnvi
ronment.a
-L/home/dsodemo/WindRiver/workspace/Nokia-770-LX1.5-Platform_prj/host-cr
oss/arm-wrs-linux-gnueabi/lib/live
-Wl,-rpath-link,/home/dsodemo/WindRiver/workspace/Nokia-770-LX1.5-Platfo
rm_prj/host-cross/arm-wrs-linux-gnueabi/lib   -lncurses -lpng -lz -ljpeg
-lasound -ldl -lpthread -lz -lstdc++ -lpthread -ldl -rdynamic  -lm
/home/dsodemo/WindRiver/gnu/3.4.4-wrlinux-1.5/x86-linux2/bin/../lib/gcc/
arm-wrs-linux-gnueabi/3.4.4/../../../../arm-wrs-linux-gnueabi/bin/ld:
libmpdemux/libmpdemux.a(demux_rtp.o): Relocations in generic ELF (EM: 3)
/home/dsodemo/WindRiver/gnu/3.4.4-wrlinux-1.5/x86-linux2/bin/../lib/gcc/
arm-wrs-linux-gnueabi/3.4.4/../../../../arm-wrs-linux-gnueabi/bin/ld:
libmpdemux/libmpdemux.a(demux_rtp.o): Relocations in generic ELF (EM: 3)
/home/dsodemo/WindRiver/gnu/3.4.4-wrlinux-1.5/x86-linux2/bin/../lib/gcc/
arm-wrs-linux-gnueabi/3.4.4/../../../../arm-wrs-linux-gnueabi/bin/ld:
libmpdemux/libmpdemux.a(demux_rtp.o): Relocations in generic ELF (EM: 3)
/home/dsodemo/WindRiver/gnu/3.4.4-wrlinux-1.5/x86-linux2/bin/../lib/gcc/
arm-wrs-linux-gnueabi/3.4.4/../../../../arm-wrs-linux-gnueabi/bin/ld:
libmpdemux/libmpdemux.a(demux_rtp.o): Relocations in generic ELF (EM: 3)
/home/dsodemo/WindRiver/gnu/3.4.4-wrlinux-1.5/x86-linux2/bin/../lib/gcc/
arm-wrs-linux-gnueabi/3.4.4/../../../../arm-wrs-linux-gnueabi/bin/ld:
libmpdemux/libmpdemux.a(demux_rtp.o): Relocations in generic ELF (EM: 3)
/home/dsodemo/WindRiver/gnu/3.4.4-wrlinux-1.5/x86-linux2/bin/../lib/gcc/
arm-wrs-linux-gnueabi/3.4.4/../../../../arm-wrs-linux-gnueabi/bin/ld:
libmpdemux/libmpdemux.a(demux_rtp.o): Relocations in generic ELF (EM: 3)
/home/dsodemo/WindRiver/gnu/3.4.4-wrlinux-1.5/x86-linux2/bin/../lib/gcc/
arm-wrs-linux-gnueabi/3.4.4/../../../../arm-wrs-linux-gnueabi/bin/ld:
libmpdemux/libmpdemux.a(demux_rtp.o): Relocations in generic ELF (EM: 3)
/home/dsodemo/WindRiver/gnu/3.4.4-wrlinux-1.5/x86-linux2/bin/../lib/gcc/
arm-wrs-linux-gnueabi/3.4.4/../../../../arm-wrs-linux-gnueabi/bin/ld:
libmpdemux/libmpdemux.a(demux_rtp.o): Relocations in generic ELF (EM: 3)
/home/dsodemo/WindRiver/gnu/3.4.4-wrlinux-1.5/x86-linux2/bin/../lib/gcc/
arm-wrs-linux-gnueabi/3.4.4/../../../../arm-wrs-linux-gnueabi/bin/ld:
libmpdemux/libmpdemux.a(demux_rtp.o): Relocations in generic ELF (EM: 3)
/home/dsodemo/WindRiver/gnu/3.4.4-wrlinux-1.5/x86-linux2/bin/../lib/gcc/
arm-wrs-linux-gnueabi/3.4.4/../../../../arm-wrs-linux-gnueabi/bin/ld:
libmpdemux/libmpdemux.a(demux_rtp.o): Relocations in generic ELF (EM: 3)
/home/dsodemo/WindRiver/gnu/3.4.4-wrlinux-1.5/x86-linux2/bin/../lib/gcc/
arm-wrs-linux-gnueabi/3.4.4/../../../../arm-wrs-linux-gnueabi/bin/ld:
libmpdemux/libmpdemux.a(demux_rtp.o): Relocations in generic ELF (EM: 3)
libmpdemux/libmpdemux.a: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[1]: *** [mplayer] Error 1
make[1]: Leaving directory
`/home/dsodemo/WindRiver/workspace/Nokia-770-LX1.5-Platform_prj/build/mp
layer-checkout-2007-06-01'
make: *** [mplayer.compile] Error 2
[dsodemo at WindRiverVM build]$
 
The path
/home/dsodemo/WindRiver/gnu/3.4.4-wrlinux-1.5/x86-linux2/bin/../lib/gcc/
arm-wrs-linux-gnueabi/3.4.4/../../../../arm-wrs-linux-gnueabi/bin/ is
pointing to
/home/dsodemo/WindRiver/gnu/3.4.4-wrlinux-1.5/x86-linux2/arm-wrs-linux-g
nueabi/bin (it's  my  native Linux toolchain), when actually it should
point to (my arm toolchain)  in:
/home/dsodemo/WindRiver/gnu/3.4.4-wrlinux-1.5/x86-linux2/bin.
I checked linker flags  (LD)  in our toolchain configuration , and saw
that everything is correct. I'm attached here several files, could you
please check this files, and let me know if there is something not
configured correctly.
 
In current version  (svn) , there was a dependency from mplayer on
live555 package, this created a compilation problem. I saw a fix  (
http://osdir.com/ml/video.mplayer.cygwin/2007-01/msg00036.html
<http://osdir.com/ml/video.mplayer.cygwin/2007-01/msg00036.html> )  in
Google, that suggested to remove the "--with-livelibdir=DIR" from
configure,  and  add instead ,  --with-extraincdir=DIR &
--with-extralibdir=DIR  (both points to $(HOST_CROSS_LIB_DIR)/live , and
remove "--enable-live" from Makefile  (Makefile from
workspace-nokia770_layer-dist-mplayer). I applied this changes and got
this link error.

Please let me know if some other info you might needed.

P.S. Sorry if this gets reposted, I had previously attached my
configure  &  configure.log but the message was too large.
 
Thanks,
Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.mak from _prj-build-mplayer-checkout-20007-06-01
Type: application/octet-stream
Size: 12043 bytes
Desc: config.mak from _prj-build-mplayer-checkout-20007-06-01
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070604/d288b663/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile from _prj-build
Type: application/octet-stream
Size: 9304 bytes
Desc: Makefile from _prj-build
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070604/d288b663/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile from workspace-nokia770_layer-dist-mplayer
Type: application/octet-stream
Size: 1781 bytes
Desc: Makefile from workspace-nokia770_layer-dist-mplayer
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070604/d288b663/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rpm-macros from _prj-scripts
Type: application/octet-stream
Size: 10793 bytes
Desc: rpm-macros from _prj-scripts
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070604/d288b663/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile fom _prj-build-mpalyer-checkout-2007-06-01
Type: application/octet-stream
Size: 11925 bytes
Desc: Makefile fom _prj-build-mpalyer-checkout-2007-06-01
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070604/d288b663/attachment-0004.obj>


More information about the MPlayer-dev-eng mailing list