2010-01-20 05:16:15     porting wvdial: linking failure when using bfin-uclinux-g++

Document created by Aaronwu Employee on Aug 20, 2013
Version 1Show Document
  • View in full screen mode

2010-01-20 05:16:15     porting wvdial: linking failure when using bfin-uclinux-g++

Suganiya K (INDIA)

Message: 84846   

 

Hi,

 

I am porting wvdial to blackfin. Its dependencies are openssl and wvstream.

 

Building openssl is successfull. However, during compiling wvstream, i have faced lot of problems, after crossing those hurdles, finally during linking, it fails, I do not know where is the problem, i am struck...

 

Following is the error log...

 

make -C argp

make[1]: Entering directory `/root/wvdial/wvstreams-4.6.1/argp'

make  all-recursive

make[2]: Entering directory `/root/wvdial/wvstreams-4.6.1/argp'

Making all in .

make[3]: Entering directory `/root/wvdial/wvstreams-4.6.1/argp'

make[3]: Nothing to be done for `all-am'.

make[3]: Leaving directory `/root/wvdial/wvstreams-4.6.1/argp'

Making all in testsuite

make[3]: Entering directory `/root/wvdial/wvstreams-4.6.1/argp/testsuite'

make[3]: Nothing to be done for `all'.

make[3]: Leaving directory `/root/wvdial/wvstreams-4.6.1/argp/testsuite'

make[2]: Leaving directory `/root/wvdial/wvstreams-4.6.1/argp'

make[1]: Leaving directory `/root/wvdial/wvstreams-4.6.1/argp'

bfin-uclinux-g++ -L/root/harish/lib -Lyes  -L.   -Wl,-z,defs -Wl,-soname,libwvbase.so.4.6 -shared -o libwvbase.so utils/wvbuffer.o utils/wvbufferstore.o utils/wvcont.o utils/wverror.o streams/wvfdstream.o utils/wvfork.o utils/wvhash.o utils/wvhashtable.o utils/wvlinklist.o utils/wvmoniker.o utils/wvregex.o utils/wvscatterhash.o utils/wvsorter.o utils/wvattrs.o utils/wvstring.o utils/wvstringlist.o utils/wvstringmask.o utils/strutils.o utils/wvtask.o utils/wvtimeutils.o streams/wvistreamlist.o utils/wvstreamsdebugger.o streams/wvlog.o streams/wvstream.o uniconf/uniconf.o uniconf/uniconfgen.o uniconf/uniconfkey.o uniconf/uniconfroot.o uniconf/unihashtree.o uniconf/unimountgen.o uniconf/unitempgen.o utils/wvbackslash.o utils/wvencoder.o utils/wvtclstring.o utils/wvstringcache.o uniconf/uniinigen.o uniconf/unilistiter.o streams/wvfile.o streams/wvstreamclone.o streams/wvconstream.o utils/wvcrashbase.o xplc-cxx/factory.o xplc-cxx/getiface.o xplc-cxx/strtouuid.o xplc-cxx/uuidtostr.o xplc-cxx/xplc.o xplc/category.o xplc/catiter.o xplc/catmgr.o xplc/loader.o xplc/moduleloader.o xplc/modulemgr.o xplc/monikers.o xplc/new.o xplc/servmgr.o xplc/statichandler.o uniconf/unigenhack.o  -lz  -lm

/opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/3.4.5/../../../../bfin-uclinux/bin/ld.real: BFD 2.15.94 20041120 assertion fail /usr/src/packages/BUILD/binutils/binutils-2.15/bfd/elf32-bfin.c:5173

/opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/3.4.5/../../../../bfin-uclinux/bin/ld.real: BFD 2.15.94 20041120 assertion fail /usr/src/packages/BUILD/binutils/binutils-2.15/bfd/elf32-bfin.c:5173

/opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/3.4.5/../../../../bfin-uclinux/bin/ld.real: utils/wvbufferstore.o(.text+0xa8): unresolvable relocation against symbol `_memcpy'

/opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/3.4.5/../../../../bfin-uclinux/bin/ld.real: final link failed: Nonrepresentable section on output

collect2: ld returned 1 exit status

make: *** [libwvbase.so] Error 1

 

 

Thanks and Regards,

 

Suganiya.K

 

error-out-log

QuoteReplyEditDelete

 

 

2010-01-20 11:31:57     Re: porting wvdial: linking failure when using bfin-uclinux-g++

Robin Getz (UNITED STATES)

Message: 84859   

 

Sugeniya:

 

I'm assuming you are using libssl from the dist?

 

You will need to re-work streams/wvdaemon.cc: and utils/wvfork.cc and streams/t/wvloopback.t.cc  to get rid of the fork usage.

 

-Robin

QuoteReplyEditDelete

 

 

2010-01-21 01:07:23     Re: porting wvdial: linking failure when using bfin-uclinux-g++

Mike Frysinger (UNITED STATES)

Message: 84875   

 

you're using a very old toolchain.  try the latest release (2009R1.1) to see if it throws the same errors ... if it does, we can take a look then.

Attachments

Outcomes