bug-glibc
[Top][All Lists]
Advanced

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

Help getting gcc-2.95.3 to work w/glibc-2.2.5


From: Jeffrey Stephens
Subject: Help getting gcc-2.95.3 to work w/glibc-2.2.5
Date: Wed, 24 Apr 2002 13:08:09 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2

Need help badly.

I just installed gcc-2.95.3 followed by glibc-2.2.5. Everything appeared to go OK except for an error running 'make check' on glibc with msgfmt; however, when I checked the bugs database I found that this error was already marked "closed" and the solution said to run 'make install' anyway, so I did. The only instruction I didn't follow was too go to single-user
mode to do this.

Anyway, following further instructions it was suggested to recompile gcc with the new glibc, so I downloaded 2.95.3 again and tried to run '../gcc-2.95.3/configure --enable-shared --enable threads'.
When I do this I get the following error:

$ ../gcc-2.95.3/configure --enable-shared --enable-threads
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /home/jeffs/downloads/gcc-build using "mh-frag" and "mt-frag" /usr/local/lib/libc.so.6: undefined reference to address@hidden'
/usr/local/lib/libc.so.6: undefined reference to address@hidden'
/usr/local/lib/libc.so.6: undefined reference to address@hidden'
/usr/local/lib/libc.so.6: undefined reference to address@hidden' /usr/local/lib/libc.so.6: undefined reference to address@hidden'
/usr/local/lib/libc.so.6: undefined reference to address@hidden'
/usr/local/lib/libc.so.6: undefined reference to address@hidden' /usr/local/lib/libc.so.6: undefined reference to address@hidden'
/usr/local/lib/libc.so.6: undefined reference to address@hidden'
/usr/local/lib/libc.so.6: undefined reference to address@hidden'
/usr/local/lib/libc.so.6: undefined reference to address@hidden'
/usr/local/lib/libc.so.6: undefined reference to address@hidden'
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -g -O2   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

I had previously installed gcc to /usr/local and also placed the newly installed glibc-2.2.5 in /usr/local/lib. My ld.so.conf file has /usr/local/lib in front of /usr/lib. I did note that
the instructions for recompiling gcc state:

  "You may also need to reconfigure GCC to work with the new library.
The easiest way to do that is to figure out the compiler switches to
make it work again (`-Wl,--dynamic-linker=/lib/ld-linux.so.2' should
work on Linux systems) and use them to recompile gcc.  You can also
edit the specs file (`/usr/lib/gcc-lib/TARGET/VERSION/specs'), but that
is a bit of a black art."

Though I'm pretty much of a linux novice I note that configure is trying to compile a file conftest.c to determine that all is kosher and gcc is apparently not configured correctly. This seems to be sort of a Catch-22. I need glibc-2.2 before recompiling gcc, but I need gcc configured for the new glibc before it has been recompiled. Is there somewhere in "configure" where I can place the compiler switches "-Wl, --dynamic-linker=" to solve this problem? Or, will using these switches even solve the problem given the
error shown above?  I'd greatly appreciate any help you can give.

Regards,
Jeff Stephens





reply via email to

[Prev in Thread] Current Thread [Next in Thread]