Subject: pkgsrc on solaris trouble
To: None <jlam@netbsd.org>
From: Hubert Feyrer <hubert@feyrer.de>
List: tech-pkg
Date: 03/23/2004 15:08:07
After bootstrapping pkgsrc on solaris, building of libtool fails like this
(from config.log):

	configure:2331: checking for C compiler version
	configure:2334: gcc --version </dev/null >&5
	/net/rfhs8012/home3/bedienst/feyrer/OS/OS-SunOS/tmp/devel/libtool-base/work.i386
	/shlibtool/.buildlink/bin/gcc[59]: syntax error at line 60 : `"' unmatched
	configure:2337: $? = 2

See below for output of 'make configure' and config.log.
Line 60 of the gcc file reads:

	$echo "<.>" $cmd >> $wrapperlog


 - Hubert


=> Fixing buildlink references in files-to-be-installed.
cd /net/rfhs8012/home1/NetBSD/cvs/pkgsrc/devel/libtool-base && /net/rfhs8012/home3/bedienst/feyrer/OS/OS-SunOS/pkg/bin/bmake build BUILDING_SHLIBTOOL=YES WRKDIR=/net/rfhs8012/home3/bedienst/feyrer/OS/OS-SunOS/tmp/devel/libtool-base/work.i386/shlibtool
===> *** No /net/rfhs8012/home3/bedienst/feyrer/OS/OS-SunOS/../distfiles/pkg-vulnerabilities file found,
===> *** skipping vulnerability checks. To fix, install
===> *** the pkgsrc/security/audit-packages package and run
===> *** '/net/rfhs8012/home3/bedienst/feyrer/OS/OS-SunOS/pkg/sbin/download-vulnerability-list'.
=> Checksum OK for libtool-1.5.2.tar.gz.
===> Extracting for libtool-base-1.5.2nb5
===> Required installed package patch>=2.2: patch-2.5.4nb2 found
===> Patching for libtool-base-1.5.2nb5
===> Applying pkgsrc patches for libtool-base-1.5.2nb5
===> Overriding tools for libtool-base-1.5.2nb5
===> Buildlinking for libtool-base-1.5.2nb5
===> Configuring for libtool-base-1.5.2nb5
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/ucb/install -c -o feyrer -g bedienst
checking whether build environment is sane... yes
checking for gawk... /usr/bin/nawk
checking whether bmake sets $(MAKE)... yes
checking for i386-sun-solaris2-strip... no
checking for strip... strip
checking for i386-sun-solaris2-gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
*** Error code 77

Stop.
bmake: stopped in /net/rfhs8012/home1/NetBSD/cvs/pkgsrc/devel/libtool-base
*** Error code 1

Stop.
bmake: stopped in /net/rfhs8012/home1/NetBSD/cvs/pkgsrc/devel/libtool-base
*** Error code 1

Stop.
bmake: stopped in /net/rfhs8012/home1/NetBSD/cvs/pkgsrc/devel/libtool-base
*** Error code 1

Stop.
bmake: stopped in /net/rfhs8012/home1/NetBSD/cvs/pkgsrc/devel/libtool-base








configure:1922: checking for strip
configure:1938: found /usr/ccs/bin/strip
configure:1949: result: strip
configure:2023: checking for i386-sun-solaris2-gcc
configure:2049: result: gcc
configure:2331: checking for C compiler version
configure:2334: gcc --version </dev/null >&5
/net/rfhs8012/home3/bedienst/feyrer/OS/OS-SunOS/tmp/devel/libtool-base/work.i386/shlibtool/.buildlink/bin/gcc[59]: syntax error at line 60 : `"' unmatched
configure:2337: $? = 2
configure:2339: gcc -v </dev/null >&5
/net/rfhs8012/home3/bedienst/feyrer/OS/OS-SunOS/tmp/devel/libtool-base/work.i386/shlibtool/.buildlink/bin/gcc[59]: syntax error at line 60 : `"' unmatched
configure:2342: $? = 2
configure:2344: gcc -V </dev/null >&5
/net/rfhs8012/home3/bedienst/feyrer/OS/OS-SunOS/tmp/devel/libtool-base/work.i386/shlibtool/.buildlink/bin/gcc[59]: syntax error at line 60 : `"' unmatched
configure:2347: $? = 2
configure:2370: checking for C compiler default output file name
configure:2373: gcc -O   conftest.c  >&5
/net/rfhs8012/home3/bedienst/feyrer/OS/OS-SunOS/tmp/devel/libtool-base/work.i386/shlibtool/.buildlink/bin/gcc[59]: syntax error at line 60 : `"' unmatched
configure:2376: $? = 2
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "libtool"
| #define PACKAGE_TARNAME "libtool"
| #define PACKAGE_VERSION "1.5.2"
| #define PACKAGE_STRING "libtool 1.5.2"
| #define PACKAGE_BUGREPORT "bug-libtool@gnu.org"
| #define PACKAGE "libtool"
| #define VERSION "1.5.2"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2414: error: C compiler cannot create executables
See `config.log' for more details.

-- 
Hubert Feyrer <hubert@feyrer.de>