LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-25-2017, 02:00 AM   #1
CCHBB
LQ Newbie
 
Registered: Apr 2017
Posts: 2

Rep: Reputation: Disabled
complie GLIBC_2.9 with the error: cannot compute sizeof (long double)


hi:
i am an Chinese ,this my first time to post my question on this site .

when i use the commod hcid on my linux,i encountered this error:

hcid: /lib/libc.so.6: version `GLIBC_2.9' not found (required by /usr/lib/libglib-2.0.so.0)

i fond the version GLIBC is 2.8 ,so i want to complie and install the GLIBC_2.9. i downloaded two packages : glibc-2.9.tar.gz and glibc-ports-2.9.tar.gz .

but,i encountered this error :checking size of long double... configure: error: cannot compute sizeof (long double)

gcc : arm-none-linux-gnueabi-gcc-4.4.1

configure : LD_LIBRARY_PATH=/usr/lib CC=arm-none-linux-gnueabi-gcc-4.4.1
../glibc-2.9/configure --prefix=/usr/glibc-2.9 --host=arm-none-linux-gnueabi

thinks very much
 
Old 04-25-2017, 06:19 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Be aware that glibc is your OS (together with the kernel), and can usually not be changed.

However, you can install an extra glibc to a hidden location, and export the location when starting your application.

Example : ../glibc-2.9/configure --prefix=/opt/glibc29/ ( --prefix=/usr/glibc-2.9 may be OK.)

Building old 2.9 http://archive.linuxfromscratch.org/...r05/glibc.html
and http://archive.linuxfromscratch.org/...r06/glibc.html

Last edited by knudfl; 04-25-2017 at 06:22 AM.
 
1 members found this post helpful.
Old 05-03-2017, 04:50 AM   #3
CCHBB
LQ Newbie
 
Registered: Apr 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
The question had been solved .

The linux file system was made of busybox-1.21.1.tar.bz2 about four years ago by my colleague .

the Cross Compiler my colleague used was different from my . so i copy my Cross Compiler`s lib to my linux`s lib,every thing is ok.

like this :

cp /usr/local/arm/arm-2009q3/arm-none-Linux-gnueabi/libc/lib/* /lib/
 
  


Reply



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
building glibc...configure: error: cannot compute sizeof (long double) alirezan1 Linux - Newbie 1 01-25-2012 04:45 PM
Configure: error: cannot compute sizeof (long double) in glibc pass 2 irfanali Linux From Scratch 29 02-03-2010 06:48 AM
[SOLVED] A very basic question of sizeof(long double) debianD Programming 2 08-11-2009 01:17 PM
error: cannot compute sizeof (short) RooZ Linux - Software 1 08-09-2008 09:05 AM
Help! 2.4.29 + nptl = glibc error: cannot compute (long double), 77 Yerp Linux From Scratch 3 03-25-2005 06:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:55 PM.

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