LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-04-2005, 04:18 PM   #1
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,455

Rep: Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172
Updating glibc - from source, cont'd


My first effort toward updating glibc from source did not ... ... go well... although my emergency-recovery arrangements for that eventuality did.

Which leads me back to, what did I do wrong?

The show-stopping problem was init. This process, somewhat to my surprise and chagrin, isn't statically linked, and everything came a'crashing down when it couldn't make the connection to the new library.

Questions...

(1) Is it correct to configure glibc with --prefix=/usr or is it usually configured with [i]--prefix=/[/] ?

(2) Is it advisable, or even worth-considering, to install into a separate directory, i.e. off of /usr/lib/whatever, and include this in /etc/ld.so.conf? Basically, the idea being that the "old" libraries found in /lib and /usr/lib would be permanently "hidden from view."

(3) I would like for init to be statically linked, but where is it? (Oh nevermind... sysvinit...) Anyhow, it puzzles me greatly that it encountered something so drastically-different between the older and the newer glibc that it could not work with both. ... ...

"Experience is the best teacher, but it's hell on your (dwindling... ) hair supply."

Last edited by sundialsvcs; 09-04-2005 at 04:51 PM.
 
Old 09-04-2005, 04:46 PM   #2
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,455

Original Poster
Rep: Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172
Now this surprised me!

I tried compiling sysvinit-2.86 from source with make LDFLAGS="-s -static" and got this message several times:
Quote:
warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
(The same message appearing in reference to other routines as well, such as getgrnam, getgrdid...)

I certainly would have expected such a dependency or requirement not to exist anywhere. "Either the library references are static, I would have thought, or they are dynamic."

Furthermore, when I tested the results of a static-compile (aforementioned) with ldd, the results were not happy at all. Only a regular, dynamic-linked make was at all acceptable. So it does not seem that the sysvinit source can be compiled without dependency upon a runtime library.
 
  


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
Updating glibc - from source sundialsvcs Linux - Software 3 08-30-2005 12:41 AM
updating glibc-2.3.2-11.9 to glibc-2.3.4 under rh9 bloodiestmarry Linux - Software 5 02-27-2005 06:43 AM
updating glibc problem overlord73 Linux - Software 3 02-11-2005 06:51 AM
Problem Updating glibc 2.2.5-34 to 2.3.2 FinalSolution Linux - Software 2 10-17-2003 06:22 AM
Updating glibc KennyG944 Linux - General 3 03-25-2001 11:19 AM


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