Where to compile GCC: Now, abiword won't compile

Net Llama! netllama
Mon May 17 11:44:52 PDT 2004


On 02/26/03 19:34, Joel Hammer wrote:
>  Well, things are better. The thing  (gcc) compiled and installed.
>  I now have two version of gcc on my computer:
>  
>  -rwxr-xr-x   2 root     root       216884 Feb 26 21:17 /usr/local/bin/gcc
>  -rwxr-xr-x   1 root     root       203694 Dec 14 12:46 /usr/bin/gcc
>  I have a similar pair of files for g++.
>  
>  Now, the old g++ won't compile things, giving a library error. This is
>  the entire reason for this exercise. The new g++ seems to work. My
>  problem is, when I try to configure abiword, the configure script only
>  tries the old version. So, I just renamed the old version to something
>  other than g++ or gcc, and the configure script finds the new versions
>  of gcc and g++. Is this kosher?

It is if your $PATH looks in /usr/bin before /usr/local/bin.  You should 
prolly remove the older version of gcc completely, or you're going to 
run into alot of problems.

>  Anyway, the configure script now  runs for abiword, but now I get the following
>  error during configure, which doesn't stop the configuration but stops the
>  make.
>  
>  checking for jpeg_start_decompress in -ljpeg
>  gcc -o conftest    conftest.c -ljpeg   >&5       
>  /usr/lib/libjpeg.so: undefined reference to `atexit@@GLIBC_2.0'  
>  
>  This happens while it is configuring wv. This GLIBC_2.0 is suspicious, since
>  I have  2.2.5, I think.
>  
>  Do I need a new jpg library? jpeg is  a link to libjpeg.so.62.0.0 

Looks like your libjpeg is compiled against glibc-2.0.  You'll need to 
(re)build it against the new glibc.  libjpeg is funny that way.  be 
forwarned, anything that relies on libjpeg will also need to be rebuild, 
unless you want multiple copies of libjpeg on your box.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman                       	       netllama at linux-sxs.org
Linux Step-by-step & TyGeMo: 		    http://netllama.ipfox.com

   7:35pm  up 44 days,  3:00,  2 users,  load average: 0.11, 0.19, 0.17



More information about the Linux-users mailing list