LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-24-2006, 04:41 PM   #1
Styno
LQ Newbie
 
Registered: May 2003
Location: The Netherlands
Distribution: Debian
Posts: 5

Rep: Reputation: 0
Upgrading glibc on embedded system question


The Newisys NA-1400 is an Intel XScale based NAS device for which I'm trying to compile additional software (e.g. Apache, mysql, CUPS) in order to enhance it's usefullness. For crosscompiling software I installed a scratchbox scrosscompile toolchain for ARM processors. I compiled and succesfully tested a simple 'hello world' program to check if the toolchain is properly functioning.

The problem is the difference between the glibc version used by the toolchain (2.3.2) and the installed glibc version on the NAS device (2.2.6). Because the NAS toolchain is older, the new programs who need glibc refuse to run.

My question is:
Can there be two versions of glibc on the same system? I searched for this but couldn't find anything, so I guess not.

An alternative would be to upgrade the glibc version to 2.3.2 but I admit to have no clue on how to do this. Normally this process is handled by yum, apt or any other package tool, but these are not present on the embedded system. Can someone please give me a pointer on howto upgrade glibc and it's fellow libraries?

Thanks in advance.

Some system info:
Intel XScale 80219 ARM based cpu at 600 MHz
256 MB DDR ram with ECC
16 MB flash + 4 x 250 GB harddisks
Linux kernel 2.6.10-sanmina-aw
glibc 2.2.6
 
Old 06-27-2006, 02:39 AM   #2
Styno
LQ Newbie
 
Registered: May 2003
Location: The Netherlands
Distribution: Debian
Posts: 5

Original Poster
Rep: Reputation: 0
So it seems to difficult the replace glibc by hand, as there is no response...

In the mean time I focussed my attention to Crosstool and have succesfully build an ARM-Xscale Crosstool toolchain for gcc 3.5.4 and glibc 2.2.5. As the glibc library version of this toolchain is less of that on the Newisys NA-1400 (2.2.6), the resulting binaries should function just fine.

So problem not solved, but worked around. Thanks
 
Old 06-27-2006, 03:08 AM   #3
openbsd
LQ Newbie
 
Registered: May 2006
Distribution: Walnut Creek-Slackware 2.0 , August 1994
Posts: 8

Rep: Reputation: 0
Yes, use ldd to find the libraries needed by the executable file and put these libfiles
in a separate directory. To run the exec with these special libs set the environment variable LD_LIBRARY_PATH

or

you can run it by runing this command:
/lib/ld-linux.so.2 --library-path /usr/local/mylib myprog

or compile gcc -static if you have memory enough.


Check documents with the know-how for jails and chroot environments.
Use tools and tips from trac.cross-lfs.org
 
  


Reply

Tags
crosscompile, embedded, glibc, upgrade



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
upgrading glibc 2.3.2 to glibc 2.3.3 =cop=Jesse Linux - Newbie 3 12-08-2004 11:00 PM
Upgrading Glibc? AFI_Flame Linux - Software 3 09-19-2004 07:30 PM
Upgrading glibc-2.2.4 to glibc-2.3.2 on redhat 7.2 Shuja Linux From Scratch 2 07-30-2004 12:34 AM
Embedded GLIBC problem ksnash Programming 0 08-18-2003 11:54 AM
Upgrading GLIBC ryanstrayer Linux - General 9 02-11-2002 04:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration