[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ld.so problem in glibc 2.2 compilation



Hi,

I also tried once to upgrade my glibc. In the end I succeeded in compiling
first 2.1.3 and then 2.2.2 on top of it. I used the gcc 2.95 though.

I also never managed to compile and install the libstc++
My problems where also with the locale stuff and the termcap stuff so that
in the end I just gave up and installed some RPMS from a newer distro...

Schlomo

PS: The docs are really between lousy to nonexistant for all the programs
in this area (make, gcc, binutils, glibc ...)

This is REALLY the bad side of Linux.


On Mon, 2 Apr 2001 milesteg@surfree.net.il wrote:

> 
> Hello, everybody
> 
> Sorry if I'm not going to be _very_ specific but it's just too darn late
> . :P
> 
> Well, after fiddling around with strace and the such I reached to the
> conclusion that the locale implementation in the glibc 2.1 I got with my
> slackware7.0 is broken. So, I decided to compile glibc 2.2 since I've read
> here that it works with code compiled for glibc2.1 (read that here, i
> believe). After reading the FAQ and INSTALL I understood that I have to
> upgrade binutils, gcc and gnu make in order for the compilation to
> work.
> Well, I hit the road and got all of those. compiled GCC 2.95.3 right over
> the previous 2.92.something and so did with gmake and ld .. Note that I
> had to specify --prefix=/usr in each of those to overwrite the previous
> versions since I wanted to save myself the trouble of symlinking and
> reconfiguring stuff I didn't even know existed to use the new
> compilations.
> Now, everything compiled just great, and I recompiled that 2.4.3 kernel I
> got today as well to check that everything works, and even got a kernel
> smaller by 50KB or so .. they obviously did some optimization with gcc :P
> 
> Anyway .. now I went to compile that monstrous glibc .. I told the
> configure script to install in /usr and overwrite previous stuff, include
> the "locale" and "linuxthreads" addons and with kernel 2.4.3 in mind also
> giving it the include dir of the kernel. The script was happy with most of
> it besides some unknown app named 'mig' it was looking for - and I wasn't
> aware of its existance up to that point. I asked people around EFNet and
> did a quick scan through my system and through freshmeat to find nothing
> of slight resemblance to what the configure script was looking for. Does
> any of you?
> But that's not the major issue, since configure "swallowed" its abscense
> and continued .. with giving me some warning about the locale addon being
> unconfigured even though the README insists I have to configure it after
> installation ..
> The compilation went fine for a while until the following error appeared:
> 
> ) > /tmp/glibc/build/sysd-versionsT
> no versions defined for ld.so
> cpp: output pipe has been closed
> make[1]: *** [/tmp/glibc/build/sysd-versions] Error 1
> make[1]: Leaving directory `/tmp/glibc/glibc-2.2.2'
> make: *** [all] Error 2
> 
> since I remembered I just compiled binutils I went to check the docs
> there. NO DOCS. hmpf! I tried running the glibc configure script again and
> exlicitly specifiyng the binutils (ld) prefix, but it didn't work. since I
> have only the slightest idea about ld.so and ld\binutils in general (care
> to explain it to me?) there wasn't much I could do .. the ld.so manpage
> made things clearer to some extent .. and i did found ld.so and ld-linux
> in /lib:
> 
>  76364 Sep 101999 ld-2.1.2.so
>   17 Mar 18 19:52 ld-linux.so.1 ->ld-linux.so.1.9.9
>  79508 Jun 261999 ld-linux.so.1.9.9
>          11 Mar 18 19:52 ld-linux.so.2 ->ld-2.1.2.so
> 104060 Jun 261999 ld.so
> 
> but couldn't find and occurances of it in /usr/lib, (I installed binutils
> with the /usr prefix).
> I am totally stuck, and as the average linux\unix guru would probably
> notice by now my approach is totally intuitive since my knowledge is near
> to nil in whatever I was attempted to do. Would anyone bother and generate
> a lenghty reply which would be both informative , constructive and help me
> actually COMPILE the goddamn library? :P
> 
> Thankyou!
> 
> 
> =================================================================
> To unsubscribe, send mail to linux-il-request@linux.org.il with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail linux-il-request@linux.org.il
> 

-- 
Schlomo Schapiro
Computation Authority
Hebrew University of Jerusalem

Tel: ++972 / 2 / 65-84404
Fax:             65-27349
email: schapiro@clerk.pi.huji.ac.il
WWW:   http://shum.cc.huji.ac.il/~schapiro


=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il