Subject: x11/gtk doesn't build on -current
To: None <>
From: HIRAMATSU Yoshifumi <>
List: tech-pkg
Date: 02/19/2005 03:18:01

When I tried to build x11/gtk on NetBSD-current(2.99.11), it failed at the begenning of
configure stage. Any suggestion for debug?

creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking whether gmake sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking host system type... i386--netbsdelf
checking build system type... i386--netbsdelf
checking for ranlib... ranlib
checking for gcc... cc
checking whether the C compiler (cc -O2 -I/usr/pkg/include -I/usr/include  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
*** Error code 1

and config.log:
configure:1141: checking whether the C compiler (cc -O2 -I/usr/pkg/include -I/usr/
include  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/X11R6/
lib -Wl,-R/usr/X11R6/lib) works
configure:1157: cc -o conftest -O2 -I/usr/pkg/include -I/usr/include   -I/usr/pkg/
include -I/usr/include  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/li
b -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib conftest.c  -lintl -liconv 1>&5
ld: cannot find -liconv


I have found two work around, but I'm not sure why these works.

1. Add ".include "../../converters/libiconv/" to Makefile of gtk.
2. install devel/gettext-lib.

// Hiramatsu Yoshifumi