LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-2009, 01:14 AM   #1
bufo
LQ Newbie
 
Registered: Sep 2009
Posts: 7

Rep: Reputation: 0
need assistance building glibc


Hi Everyone,

I am trying to run Celtx on SuSE 10.0 which requires glibc-2.4+ (current version is 2.3.5-40). The error message I am getting from celtx is /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by /usr/local/celtx/celtx-bin). I've tried building glibc-2.4, 2.5.1, 2.6, 2.8, and 2.10.1 using gcc-4.0.2 with mixed error messages. The most promising are 2.4 and 2.8, since I'm getting past the 'configure' and 'make' phases with only minor 'make check' errors. I was not able to build gcc-4.3.4 which would allow me to build the latest glibc-2.10.1, I think because I am missing mpfr headers even though I built mpfr-2.4.1 library successfully. Unfortunately the easy way out by upgrading to a new flavor *nix is not an option, as SuSE 10 exists on one monolithic partition together with /home directory, and Open SuSE would require new install, not an upgrade. I have glibc-2.8 built in /usr/local/lib/glibc_testing/ but I am not able to "coax" celtx to launch using
Code:
/usr/local/lib/glibc_testing/lib/ld-linux.so.2 --library-path /usr/local/lib/glibc_testing/lib:/lib:/usr/lib /usr/local/celtx/celtx
When I query gcc --print-file-name=libc.so.6 I get /lib/libc.so.6 (old version) although I have libc.so.6 @-> libc-2.8.so in the built directory. Celtx responds with "invalid ELF headers" message. If I could get celtx to run, I would go ahead with the new library. Is there any other way to test it?

For example, the following works
Code:
/usr/local/lib/glibc_testing/lib/ld-linux.so.2 --library-path /usr/local/lib/glibc_testing/lib:/lib /usr/bin/find --version
GNU find version 4.2.23
Features enabled: D_TYPE O_NOFOLLOW(enabled)
Regards,

Jack

Last edited by bufo; 09-04-2009 at 04:36 AM. Reason: clarification
 
Old 09-04-2009, 01:03 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,430

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Did you try something like this :

cd <path-to-celtx>/celtx/
Code:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/glibc_testing/lib:/usr/lib
( This line should hopefully exclude :/lib ,
holding the old libc.co.6 ).

./celtx
.. and celtx should display the GUI.
If / when it works, you can just add the "export line"
to the script celtx/celtx , line 54.
.....
 
Old 09-04-2009, 05:00 PM   #3
bufo
LQ Newbie
 
Registered: Sep 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for the tip, however, I am getting "segmentation fault" using the LD_LIBRARY_PATH constant. A new can of worms. Could not launch gdb or any other program unfortunately.

Jack
 
Old 09-05-2009, 02:49 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,430

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Well, first : you can't have Suse 10.0 forever ( probably.)
Celtx or no Celtx, you will need a plan how to backup /
reinstall your /home etc. : theoretically the hard disk
can stop working to-morrow.
After having a full backup on both an extra hard disk
and some DVD rom's /home can be re-established
anywhere.
Or set up Suse 10.3 ( glibc 2.6 ) on a spare hard disk
or partition.

Or build a new set of tools in e.g. /usr/local/new-tools/,
using the LFS method to create binutils / gcc / glibc
all knowing that the linker is in new-tools/lib .
( If the linker .. ld.. is installed correctly.)
.. Only to be used by e.g. Celtx. Changing the system
glibc may not be possible.
.....
LFS 6.3
http://www.linuxfromscratch.org/lfs/view/6.3/
6.4
http://www.linuxfromscratch.org/lfs/view/6.4/
( 6.5 )
http://www.linuxfromscratch.org/news.html
.....

Last edited by knudfl; 09-05-2009 at 03:33 AM.
 
Old 09-06-2009, 01:08 AM   #5
bufo
LQ Newbie
 
Registered: Sep 2009
Posts: 7

Original Poster
Rep: Reputation: 0
You are absolutely correct! I'm running no fewer than five different flavors of Linux. I must be "crackers," can't get enough of this stuff. The problem that I wanted to solve was an 'incremental' upgrade, so you'd think 2.3.5-40 is only a few millimeters from 2.40. Yeah, let me introduce you to the folks, they have a bridge for sale! With gcc-4.0.2 it should be *possible* to walk on water. I've built all the major glibc versions (almost). The dep libs you can build without a hitch, but not so for the major sys library, the list of requirements is a mile long. It could be done, in 3 weeks! The build begins with a fresh, clean slate and you builds components from sources, not upgrading 5-6 year old dog to do new tricks. I'm sorry to say, I've disestablished myself from Software und Systems Entwickelung. Guess which flavors I have considered. (You have only three guesses!) Hint this is a single core Centrino 1.60 with 512 RAM and 60 GB disk.

With kindest regards,

Jack
 
Old 09-07-2009, 07:39 PM   #6
bufo
LQ Newbie
 
Registered: Sep 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Hi,

Out of curiosity I've tried building glibc-2.10.1 on the new system, and it also failed. There is no mystery here, the body of the function syslog.c cannot find function vsyslog_chk. Good luck tracking that one. The problem here is negligence. There ought to be 2 versions of the library, one fully documented with all the *mysterious* dependencies, and the release version from which the documentation has been either stripped or extracted into a supporting doc file. That would be asking too much, since programmers don't have all 10 fingers in general.

/tmp/glibc-2.10.1/build_glibc_2101/misc/syslog.o.dt -MT /home/bufo/tmp/glibc-2.10.1/build_glibc_2101/misc/syslog.o
../misc/syslog.c: In function ‘__vsyslog_chk’:
../misc/syslog.c:123: sorry, unimplemented: inlining failed in call to ‘syslog’: function body not available
../misc/syslog.c:155: sorry, unimplemented: called from here
make[2]: *** [/home/bufo/tmp/glibc-2.10.1/build_glibc_2101/misc/syslog.o] Error 1
make[2]: Leaving directory `/home/bufo/tmp/glibc-2.10.1/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory `/home/bufo/tmp/glibc-2.10.1'
make: *** [all] Error 2
 
  


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 2.5.1 building problem sergi6666 Linux From Scratch 0 08-10-2009 09:10 AM
errors while building glibc-2.7 oussama Linux - Software 13 07-31-2008 05:39 PM
Problems building glibc-2.5 sorenp Slackware 6 10-12-2007 02:13 AM
Building glibc-2.5 Error chiefsmurph Linux - Software 7 04-27-2007 11:00 PM
Problems building glibc-2.3.2 CodeRed Linux - Software 0 07-10-2003 08:45 AM

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

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