Active Topics

 


Reply
Thread Tools
Posts: 64 | Thanked: 9 times | Joined on Jun 2007 @ abuja, nigeria (currently)
#11
can anyone supply a hint or fix for the binutils ld not finding shared libraries?

Code:
Nokia-N800-26:~# ldconfig -v | grep crypto
        libcrypto.so.0.9.7 -> libcrypto.so.0.9.7
Nokia-N800-26:~# ldconfig --print-cache | grep crypto
        libcrypto.so.0.9.7 (libc6) => /usr/lib/libcrypto.so.0.9.7
Nokia-N800-26:~# ld -lcrypto
ld: cannot find -lcrypto
Nokia-N800-26:~# ls /usr/lib/libcrypto*
/usr/lib/libcrypto.so.0.9.7
Nokia-N800-26:~# ls /usr/lib/libc.*
/usr/lib/libc.a   /usr/lib/libc.so
Nokia-N800-26:~# ld -lc
ld: BFD 2.16.91 20051213 assertion fail /home/ed/su18-2006se-armel-sandbox.gcc34qemu.distcc/work/binutils-2.16.91cs2005q3.2/bfd/elf32-arm.c:2320
ld: warning: cannot find entry symbol _start; defaulting to 00008100
Nokia-N800-26:~#
?

thanks,

rob.

edit:

the problem is with libs that do not end in .so :

Code:
Nokia-N800-26:~/code# ls /usr/lib/libcrypto*
/usr/lib/libcrypto.so.0.9.7
Nokia-N800-26:~/code# cd /usr/lib
Nokia-N800-26:/usr/lib# ld -lcrypto
ld: cannot find -lcrypto
Nokia-N800-26:/usr/lib# ln -s libcrypto.so.0.9.7 libcrypto.so
Nokia-N800-26:/usr/lib# ld -lcrypto
ld: BFD 2.16.91 20051213 assertion fail /home/ed/su18-2006se-armel-sandbox.gcc34qemu.distcc/work/binutils-2.16.91cs2005q3.2/bfd/elf32-arm.c:2320
ld: warning: cannot find entry symbol _start; defaulting to 00008248
Nokia-N800-26:/usr/lib#
rob.

Last edited by robmiller; 2007-07-22 at 16:48. Reason: found solution
 
Posts: 8 | Thanked: 1 time | Joined on Aug 2007
#12
I had some errors when i was trying to install g++. A file was missed in the wget step and another one that was downloaded wasn't installed.
Here is the modified script that worked for me.

Code:
wget http://repository.maemo.org/pool/maemo2.2/free/g/gcc-3.4/libstdc++6_3.4.4cs2005q3.2-5.osso3_armel.deb http://repository.maemo.org/pool/maemo2.2/free/g/gcc-3.4/gcc-3.4_3.4.4cs2005q3.2-5.osso3_armel.deb http://repository.maemo.org/pool/maemo2.2/free/g/gcc-3.4/libstdc++6-dev_3.4.4cs2005q3.2-5.osso3_armel.deb  http://repository.maemo.org/pool/maemo2.2/free/g/gcc-3.4/g++-3.4_3.4.4cs2005q3.2-5.osso3_armel.deb  http://repository.maemo.org/pool/maemo3.1/free/binary/libc6_2.3.5cs2005q3.2-5.osso12_armel.deb  http://repository.maemo.org/pool/maemo3.2/free/binary/libc6-dev_2.3.5cs2005q3.2-5.osso12_armel.debhttp://repository.maemo.org/pool/maemo3.1/free/binary/linux-kernel-headers_2.6.16.osso7_armel.deb  http://repository.maemo.org/pool/maemo2.2/free/b/binutils/binutils_2.16.91cs2005q3.2-5.osso1_armel.debhttp://repository.maemo.org/pool/maemo2.2/free/g/gcc-3.4/cpp-3.4_3.4.4cs2

dpkg -i binutils_2.16.91cs2005q3.2-5.osso1_armel.deb
dpkg -i linux-kernel-headers_2.6.16.osso7_armel.deb 
dpkg -i libc6_2.3.5cs2005q3.2-5.osso12_armel.deb
dpkg -i libc6-dev_2.3.5cs2005q3.2-5.osso12_armel.deb
dpkg -i cpp-3.4_3.4.4cs2005q3.2-5.osso3_armel.deb
dpkg -i gcc-3.4_3.4.4cs2005q3.2-5.osso3_armel.deb

dpkg -i libstdc\+\+6-dev_3.4.4cs2005q3.2-5.osso3_armel.deb
dpkg -i g\+\+-3.4_3.4.4cs2005q3.2-5.osso3_armel.deb

apt-get -f install
I hope i haven't missed anything.
 

The Following User Says Thank You to i.rachita For This Useful Post:
torx's Avatar
Posts: 231 | Thanked: 21 times | Joined on May 2007 @ Singapore
#13
Thanks rob and i.rachita for the update/fix!

Anyway rob, does that mean that libraries that end in .so will work now? Is it only libcrypto that is affected or are there other libraries that don't end in .so too?
 
Posts: 31 | Thanked: 0 times | Joined on Aug 2007 @ Amsterdam
#14
Hi,

This looks brilliant, and i'll try it out soon. Should i consider converting/creating a new partition (efs and jffs2 are mentioned) on my internal memory card for this?
 
torx's Avatar
Posts: 231 | Thanked: 21 times | Joined on May 2007 @ Singapore
#15
Originally Posted by gotanga View Post
Hi,

This looks brilliant, and i'll try it out soon. Should i consider converting/creating a new partition (efs and jffs2 are mentioned) on my internal memory card for this?
That's really up to you, it takes up 50mb on my uncompressed filesystem. On a jffs2 partition, it should take up a lot lesser.
 
Posts: 7 | Thanked: 0 times | Joined on Feb 2008
#16
Great post, thanks for the info!

Much appreciated.
 
Posts: 755 | Thanked: 406 times | Joined on Feb 2008 @ UK
#17
Agreed. Just followed a modified version to get gcc working on an N800 in OS2008 and it works a treat. Portable c++ development here I come.
 
Posts: 3 | Thanked: 0 times | Joined on Feb 2008
#18
Hi,

Then, it's possible to compile a c or c++ app source like in any other linux dist?

I'm thinking that if we have the make utilitie and c/c++ libs, it's possible to make ./configure make make install/or buid package with dpkg utilitie, is it true?

sorry if this is an stupid question, i'm new with the IT, and escuse my poor english.
 
Posts: 334 | Thanked: 55 times | Joined on Aug 2007 @ Eastern Ontario, Canada
#19
I would love to see a complete replacement for Scratchbox that runs on the tablet. Plus Glade.

This is way beyond my capabilities to create but I would cheer heartily from the sidelines.
 
OSEmuTech's Avatar
Posts: 466 | Thanked: 142 times | Joined on Jan 2008 @ Temple Terrorist, FL
#20
This is so cool. As I read a PDF about C++ using the Evince Document reader, I can try out the examples using SciTE.

__________________
16-Bit x86 DOS: DOSBox
Amiga 68k: UAE
Apple II: Winapple
Apple 68k Mac: Basilisk II
Commodore 64: Frodo
Palm OS: Access GarnetVM
TI-89 Calculator: TiEmu 2
 
Reply


 
Forum Jump


All times are GMT. The time now is 23:13.