LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   complie GLIBC_2.9 with the error: cannot compute sizeof (long double) (https://www.linuxquestions.org/questions/linux-software-2/complie-glibc_2-9-with-the-error-cannot-compute-sizeof-long-double-4175604553/)

CCHBB 04-25-2017 02:00 AM

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

knudfl 04-25-2017 06:19 AM

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

CCHBB 05-03-2017 04:50 AM

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/


All times are GMT -5. The time now is 11:20 AM.