tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: [mod_jk] 1.2.22 won't build (libtool error) :(
Date Fri, 11 May 2007 21:22:07 GMT
Hash: SHA1


Rainer Jung wrote:
> that means the guys who built APR (and most likely httpd) for Debian
> used i486-linux-gnu-gcc and not gcc as their compiler. Those might be
> the same (symlinks or so), but libtool remembers the compilatrion
> environment it was created in and refuses to work in another one.

Gotcha. Here's what I've got on the system in question:

$ which i486-linux-gnu-gcc

$ ls -l `which cc`
lrwxrwxrwx 1 root root 20 Apr 29  2004 /usr/bin/cc -> /etc/alternatives/cc

$ ls -l /etc/alternatives/cc
lrwxrwxrwx 1 root root 12 Jan 19 14:33 /etc/alternatives/cc -> /usr/bin/gcc

$ ls -l /usr/bin/gcc
lrwxrwxrwx 1 root root 7 Jan 19 14:31 /usr/bin/gcc -> gcc-4.1

$ ls -l /usr/bin/gcc-4.1
- -rwxr-xr-x 1 root root 183444 Dec 10 09:46 /usr/bin/gcc-4.1

/usr/bin/gcc-4.1 is actually a binary.

$ ls -l /usr/bin/i486-linux-gnu-gcc
lrwxrwxrwx 1 root root 7 Jan 19 14:31 /usr/bin/i486-linux-gnu-gcc -> gcc-4.1

So, it looks like everything points to gcc-4.1 no matter what name is
used (which sounds good to me).

> So the *correct* solution should be:
> export CC=i486-linux-gnu-gcc
> configure ..
> make

Okay, I tried this:

$ export CC=i486-linux-gnu-gcc
$ make clean
$ ./configure --with-apxs=/usr/bin/apxs2
$ make

Looks like it works this way. Weird. Why should the name of the compiler

Here's another question: why does the configure script build a 'libtool'
script in the current directory and then not use it? Also, "CC" is set
correctly in /usr/share/apr-1.0/build/libtool (which appears to be the
actual libtool being invoked, since I get that debugging output I added
to it earlier), so what am I missing, here?

- -chris
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla -


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message