[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help getting gcc-2.95.3 to work w/glibc-2.2.5
From: |
Andreas Jaeger |
Subject: |
Re: Help getting gcc-2.95.3 to work w/glibc-2.2.5 |
Date: |
Wed, 24 Apr 2002 20:48:18 +0200 |
User-agent: |
Gnus/5.090006 (Oort Gnus v0.06) XEmacs/21.4 (Artificial Intelligence, i386-suse-linux) |
Jeffrey Stephens <address@hidden> writes:
> 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
You should have configured glibc with --prefix=/usr
> 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
If you're a linux novice, I strongly suggest to get yourself a real
distribution. Upgrading glibc is one of the most advanced topics in
Linux.
Andreas
> 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
>
>
>
> _______________________________________________
> Bug-glibc mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-glibc
>
--
Andreas Jaeger
SuSE Labs address@hidden
private address@hidden
http://www.suse.de/~aj