LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 02-25-2015, 09:32 AM   #1
allagar
LQ Newbie
 
Registered: May 2014
Posts: 11

Rep: Reputation: Disabled
multiple versions of GLIBC on target machine


My target system is arm and my current applications had been built with
g++ (GCC) 4.2.4

I created a new application but needed to use
arm-linux-gnueabi-g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

When I try to execute this on my arm target system I get
root@at91sam9m10g45ek:~# ./myapp
./myapp: /lib/libc.so.6: version `GLIBC_2.15' not found (required by ./myapp)

I am trying to add support on my target system for multiple version of GLIBC to coexist by putting the newer version libraries and loader in a different directory. When configuring my build environment I am trying to use --rpath to tell the linker where the new libraries are located on the target and using --dynamic-linker to add the new path to the application where the loader is located. I get the following error when tying to do this.

./configure --build i686-pc-linux-gnu --host arm-linux-gnueabi --prefix=/work/build/ CPPFLAGS=-DLINUX_VERSION_A Wl,--rpath=/usr/local/lib Wl,--dynamic-linker=/usr/local/lib/ld-linux.so.3
configure: error: invalid variable name: `Wl,--rpath'

I am not an expert in auto make and possibly there is a better way of doing this... Thanks
 
Old 02-25-2015, 10:39 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
You may read the old glibc-howto from tldp.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Glibc installation in target machine fails Prabhu.Are Linux From Scratch 1 12-19-2012 02:19 PM
Glibc installation in target machine fails Prabhu.Are Linux From Scratch 1 12-18-2012 10:19 AM
using multiple glibc versions on slackware 10.1 gnp Slackware 7 06-01-2005 04:04 PM
Multiple versions of GLIBC El Craigo Red Hat 2 08-12-2004 12:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 08:06 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