tomcat-users mailing list archives

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

Rainer,

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
/usr/bin/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
matter?

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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGRN5/9CaO5/Lv0PARAm+fAJ45MpkFoMmiVOftRI3s/bPCoOhw5ACgmZGE
KBKAUCjUcGLIMyTeuSIDxZ4=
=1t1j
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message