LinuxQuestions.org
Help answer threads with 0 replies.
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 11-10-2008, 10:40 PM   #1
posix_memalign
Member
 
Registered: Aug 2008
Posts: 81

Rep: Reputation: 15
GLIBC fails to compile!


When attempting to compile (by running 'make') glibc 2.4 the following error occurs.

Code:
CPP='gcc -E -x c-header'  /root/temp_install/glibc-2.4/build/elf/ld-linux.so.2 --library-path /root/temp_install/glibc-2.4/build:/root/temp_install/glibc-2.4/build/math:/root/temp_install/glibc-2.4/build/elf:/root/temp_install/glibc-2.4/build/dlfcn:/root/temp_install/glibc-2.4/build/nss:/root/temp_install/glibc-2.4/build/nis:/root/temp_install/glibc-2.4/build/rt:/root/temp_install/glibc-2.4/build/resolv:/root/temp_install/glibc-2.4/build/crypt:/root/temp_install/glibc-2.4/build/nptl /root/temp_install/glibc-2.4/build/sunrpc/rpcgen -Y ../scripts -c rpcsvc/bootparam_prot.x -o /root/temp_install/glibc-2.4/build/sunrpc/xbootparam_prot.T
cannot set up thread-local storage: set_thread_area failed when setting up thread-local storage

make[2]: *** [/root/temp_install/glibc-2.4/build/sunrpc/xbootparam_prot.stmp] Error 127
make[2]: Leaving directory `/root/temp_install/glibc-2.4/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/root/temp_install/glibc-2.4'
make: *** [all] Error 2
I'm using a --prefix=/usr.

My system is:

Linux x86_18 2.4.33.3 #1 Fri Sep 1 01:48:52 CDT 2006 i686 pentium4 i386 GNU/Linux
Currently with glibc 2.3.6.
Slackware 11.0
 
Old 11-11-2008, 10:25 AM   #2
posix_memalign
Member
 
Registered: Aug 2008
Posts: 81

Original Poster
Rep: Reputation: 15
When attempting to compile glibc 2.7 instead, the following happens:

Code:
init.c: In function `__pthread_initialize_minimal_internal':
init.c:259: error: `__NR_set_tid_address' undeclared (first use in this function)
init.c:259: error: (Each undeclared identifier is reported only once
init.c:259: error: for each function it appears in.)
make[2]: *** [/root/temp_install/glibc-2.7/BUILD/nptl/init.o] Error 1
make[2]: Leaving directory `/root/temp_install/glibc-2.7/nptl'
make[1]: *** [nptl/subdir_lib] Error 2
make[1]: Leaving directory `/root/temp_install/glibc-2.7'
make: *** [all] Error 2
 
Old 11-11-2008, 06:12 PM   #3
posix_memalign
Member
 
Registered: Aug 2008
Posts: 81

Original Poster
Rep: Reputation: 15
glibc-2.5:

Code:
pthread_mutex_timedlock.c: In function `pthread_mutex_timedlock':
pthread_mutex_timedlock.c:276: error: `__NR_clock_gettime' undeclared (first use in this function)
pthread_mutex_timedlock.c:276: error: (Each undeclared identifier is reported only once
pthread_mutex_timedlock.c:276: error: for each function it appears in.)
make[2]: *** [/root/temp_install/glibc-2.5/build/nptl/pthread_mutex_timedlock.o] Error 1
make[2]: Leaving directory `/root/temp_install/glibc-2.5/nptl'
make[1]: *** [nptl/subdir_lib] Error 2
make[1]: Leaving directory `/root/temp_install/glibc-2.5'
make: *** [all] Error 2
 
Old 11-11-2008, 06:13 PM   #4
posix_memalign
Member
 
Registered: Aug 2008
Posts: 81

Original Poster
Rep: Reputation: 15
Anyone, any ideas?
 
Old 01-29-2011, 01:15 PM   #5
sinuhe
Member
 
Registered: Apr 2010
Location: Utah
Distribution: Slackware
Posts: 50

Rep: Reputation: 4
Quote:
Originally Posted by posix_memalign View Post
make[2]: Leaving directory `/root/temp_install/glibc-2.7/nptl'
make[1]: *** [nptl/subdir_lib] Error 2
make[1]: Leaving directory `/root/temp_install/glibc-2.7'
make: *** [all] Error 2[/code]
You're building against the 2.4 kernel, which didn't use nptl. You might look at glibc 2.5 and linuxthreads.
 
Old 01-29-2011, 01:29 PM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Really old thread
 
  


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
(SVN)- arts-3.5.9 fails to build with glibc-2.8 moonfrog Linux From Scratch 1 10-26-2008 12:16 AM
glibc fails to build pauledwards03 Linux - Software 5 10-31-2007 11:16 PM
Glibc compile fails in chapter 5 Weedman Linux From Scratch 6 01-25-2007 11:04 AM
Compiling glibc-2.3.5 or glibc 2.3.5-r1 on Gentoo fails ghrellin Linux - Software 2 07-19-2005 01:01 AM
glibc configure: fails sanity check Mr. Eek Linux From Scratch 4 05-19-2003 01:24 AM

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

All times are GMT -5. The time now is 04:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration