Subject: libtool problems
To: None <tech-pkg@netbsd.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: tech-pkg
Date: 05/30/2003 13:20:30
Hi!

I have problems with our pkgsrc libtool while looking at the latest
PHP distribution. With the current LIBTOOL_OVERRIDE setting I get this:


libtool: link: `ext/ctype/ctype.lo' is not a valid libtool object
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/www/php4/work/php-4.3.2

# ls -l work/php-4.3.2/ext/ctype/ctype.*o
-rw-r--r--  1 root  wheel     1 May 30 13:11 work/php-4.3.2/ext/ctype/ctype.lo
-rw-r--r--  1 root  wheel  4136 May 30 13:11 work/php-4.3.2/ext/ctype/ctype.o

# ls -l work/php-4.3.2/libtool
lrwxr-xr-x  1 root  wheel  20 May 30 12:44 libtool -> /usr/pkg/bin/libtool

# work/php-4.3.2/libtool --version
ltmain.sh (GNU libtool) 1.4a (1.641.2.255 2001/05/22 10:39:30)


If I now remove LIBTOOL_OVERRIDE and try again everything is okay:


# ls -l work/php-4.3.2/ext/ctype/ctype.*o
-rw-r--r--  1 root  wheel     1 May 30 13:14 work/php-4.3.2/ext/ctype/ctype.lo
-rw-r--r--  1 root  wheel  4136 May 30 13:14 work/php-4.3.2/ext/ctype/ctype.o

# ls -l work/php-4.3.2/libtool
-rwxr-xr-x  1 root  wheel  151380 May 30 13:14 work/php-4.3.2/libtool

# work/php-4.3.2/libtool --version
ltmain.sh (GNU libtool) 1.4.3 (1.922.2.110 2002/10/23 01:39:54)


How "bad" would it be to use the PHP supplied libtool instead of our own?

Martti