Subject: Stupid Question About Building libtool
To: None <tech-pkg@netbsd.org>
From: J. Alexander Jacocks <jjacocks@mac.com>
List: tech-pkg
Date: 06/23/2003 12:06:26
I'm quite new to the package collection, so please excuse my ignorance.

I'm having trouble building the meta-package libtool.  Configure fails 
with an invalid 'test' parameter.  I have tried all three test binaries 
supplied on my system, but they all seem to return this message.

The only idea that I had was that this might be a conflict with a shell 
buit-in, but I can't tell wether or not bmake is calling an absolute path.

Any help would be greatly appreciated.

The error:

$ echo $SHELL
/bin/sh
$ echo $PATH
/usr/pkg/bin:/usr/pkg/sbin:/usr/bin:
$ pwd
/usr/pkgsrc/devel/libtool
$ bmake
===> Checking for vulnerabilities in libtool-1.4.20010614nb14
===> Extracting for libtool-1.4.20010614nb14
===> Required package libtool-base-1.4.20010614nb14: NOT found
===> Verifying reinstall for ../libtool-base
===> Checking for vulnerabilities in libtool-base-1.4.20010614nb14
===> Configuring for libtool-base-1.4.20010614nb14
loading cache ./config.cache
checking for a BSD compatible install... /usr/ucb/install -c -o root -g root
checking whether build environment is sane... yes
checking whether bmake sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing

----------------------------------------------------------
Configuring libtool 1.4a (1.641.2.255 2001/05/22 10:39:30)
----------------------------------------------------------

checking for gcc... gcc
checking whether the C compiler (gcc -O -I/usr/pkg/include 
-Wl,-R/usr/pkg/lib -L/usr/pkg/lib) works... yes
checking whether the C compiler (gcc -O -I/usr/pkg/include 
-Wl,-R/usr/pkg/lib -L/usr/pkg/lib) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking host system type... config.sub: invalid option -sun-solaris
Try `config.sub --help' for more information.
checking build system type... config.sub: invalid option -sun-solaris
Try `config.sub --help' for more information.
checking for ld used by GCC... ld
checking if the linker (ld) is GNU ld... no
checking for BSD-compatible nm... /usr/ccs/bin/nm -p
checking whether ln -s works... yes
checking for mawk... /usr/bin/nawk
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for ld option to reload object files... -r
checking how to recognise dependant libraries... pass_all
checking for object suffix... o
checking for executable suffix... no
./configure: test: unknown operator invalid
*** Error code 1

Stop.
bmake: stopped in /usr/local/pkgsrc/devel/libtool-base
*** Error code 1

Stop.
bmake: stopped in /usr/local/pkgsrc/devel/libtool-base
*** Error code 1

Stop.
bmake: stopped in /usr/local/pkgsrc/devel/libtool-base
*** Error code 1

Stop.
bmake: stopped in /usr/local/pkgsrc/devel/libtool
*** Error code 1

Stop.
bmake: stopped in /usr/local/pkgsrc/devel/libtool

My environment:

Solaris 9 04/03
sun4u
gcc-3.2.3 from SMC

Thanks!