Subject: build failure in pkgsrc
To: None <tech-pkg@netbsd.org, netbsd-users@netbsd.org>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: netbsd-users
Date: 02/12/2005 15:03:44
I'm trying to bring my packages up to date.  When trying to build x11/gtk2,
it's failing.  Here is what I think is the relevant text from 
config.log:

## ----------- ##
## Core tests. ##
## ----------- ##

configure:1602: checking for a BSD-compatible install
configure:1657: result: /usr/bin/install -c -o root -g wheel
configure:1668: checking whether build environment is sane
configure:1711: result: yes
configure:1744: checking for gawk
configure:1770: result: /usr/bin/awk
configure:1780: checking whether gmake sets $(MAKE)
configure:1800: result: yes
configure:1870: checking for i386--netbsdelf-strip
configure:1899: result: no
configure:1908: checking for strip
configure:1924: found /usr/bin/strip
configure:1935: result: strip
configure:2029: checking build system type
configure:2047: result: i386-unknown-netbsdelf2.99.15
configure:2055: checking host system type
configure:2069: result: i386--netbsdelf
configure:2079: checking for native Win32
configure:2090: result: no
configure:2106: checking for i386--netbsdelf-gcc
configure:2132: result: cc  
configure:2414: checking for C compiler version
configure:2417: cc --version </dev/null >&5
gcc (GCC) 3.3.3 (NetBSD nb3 20040520)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2420: $? = 0
configure:2422: cc -v </dev/null >&5
Using built-in specs.
Configured with: /home/nick/work/netbsd/src/tools/gcc/../../gnu/dist/gcc/configure --enable-long-long --disable-multilib --enable-threads --disable-symvers --build=i386-unknown-netbsdelf2.0. --h
ost=i386--netbsdelf --target=i386--netbsdelf : (reconfigured) /home/nick/work/netbsd/src/tools/gcc/../../gnu/dist/gcc/configure --enable-long-long --disable-multilib --enable-threads --disable-s
ymvers --build=i386-unknown-netbsdelf2.0. --host=i386--netbsdelf --target=i386--netbsdelf
Thread model: posix
gcc version 3.3.3 (NetBSD nb3 20040520)
configure:2425: $? = 0
configure:2427: cc -V </dev/null >&5
gcc: couldn't run `/usr/bin/i386--netbsdelf-gcc--I/usr/pkgsrc/x11/gtk2/work/.buildlink/include': No such file or directory
configure:2430: $? = 1
configure:2453: checking for C compiler default output file name
configure:2456: cc -O2 -pthread -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2  -DPREFIX=\"\\\"/usr/pkg\\\"\"  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2  -L/
usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -pthread -L/usr/pkg/xorg/lib -Wl,-R/usr/pkg/xorg/lib conftest.c  -lintl >&5
<command line>:6:9: missing terminating " character
configure:2459: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "gtk+"
| #define PACKAGE_TARNAME "gtk+"
| #define PACKAGE_VERSION "2.6.2"
| #define PACKAGE_STRING "gtk+ 2.6.2"
| #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=gtk+"
| #define GETTEXT_PACKAGE "gtk20"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2497: error: C compiler cannot create executables
See `config.log' for more details.


The only thing I have in mk.conf that looks at all relevant is

	X11_TYPE=xorg


		--Prof. Steven M. Bellovin, http://www.cs.columbia.edu/~smb