Subject: ./configure errors in new package
To: None <tech-pkg@NetBSD.org>
From: None <adrianp@stindustries.net>
List: tech-pkg
Date: 10/13/2003 16:09:57
Hi,

I've got two applications at the moment I'm trying to get into pkgsrc-wip
but 'make configure' keeps coming up with an error.

The application works when using a straight './configure && make' but when
I try and package the application I get this:

configure: running /bin/sh './configure' --prefix=/usr/pkg
'--host=i386--netbsdelf' '--prefix=/usr/pkg' 'LDFLAGS= -Wl,-R/usr/pkg/lib
-L/usr/pkg/lib' 'CFLAGS=-O2 -I/usr/pkg/include' 'CPPFLAGS=
-I/usr/pkg/include' 'CXX=c++' 'host_alias=i386--netbsdelf' 'CC=cc'
'CXXFLAGS=-O2 -I/usr/pkg/include' --cache-file=/dev/null --srcdir=.
configure: warning: LDFLAGS= -Wl,-R/usr/pkg/lib -L/usr/pkg/lib: invalid
host type
configure: warning: CFLAGS=-O2 -I/usr/pkg/include: invalid host type
configure: error: can only configure for one host and one target at a time
configure: error: /bin/sh './configure' failed for libs-external/USI++/src
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/wip/Xprobe2
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/wip/Xprobe2

If I remove the LDFLAGS, CFLAGS, CPPFLAGS, CC, CXX, CXXFLAGS the program
compiles OK. It seems to be interpreting any of the above as host types.

Any ideas ?

Thanks,

Adrian.