Subject: pkg/18860: net/gtk-gnutella fails to build
To: None <>
From: None <>
List: netbsd-bugs
Date: 10/30/2002 13:29:26
>Number:         18860
>Category:       pkg
>Synopsis:       gtk-gnutella build fails to find gtk headers
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 30 04:30:01 PST 2002
>Originator:     Eric Jacoboni
>Release:        NetBSD 1.6J
System: NetBSD 1.6J NetBSD 1.6J (TITINE-$Revision: 1.519 $) #18: Thu Oct 24 19:05:48 CEST 2002 i386
Architecture: i386
Machine: i386
# make
=> Checksum OK for gtk-gnutella-0.91.tar.gz.
===> Extracting for gtk-gnutella-0.91
===> Required installed package libxml2>=2.4.24nb1: libxml2-2.4.26 found
===> Required installed package libiconv>=1.8: libiconv-1.8 found
===> Required installed package gtk+>=1.2.8: gtk+-1.2.10nb3 found
===> Required installed package glib>=1.2.8: glib-1.2.10nb3 found
===> Required installed package pth>=1.4.1nb2: pth-1.4.1nb5 found
===> Required installed package gmake>=3.78: gmake-3.80 found
===> Required installed package x11-links>=0.8: x11-links-0.8 found
===> Patching for gtk-gnutella-0.91
===> Applying NetBSD patches for gtk-gnutella-0.91
===> Buildlinking for gtk-gnutella-0.91
===> Configuring for gtk-gnutella-0.91
checking for ANSI C header files... yes
checking for bison... yacc
checking for gtk-config... /usr/X11R6/bin/gtk-config
checking for GTK - version >= 1.2.0... no
*** Could not run GTK test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK was incorrectly installed
*** or that you have moved GTK since it was installed. In the latter case, you
*** may want to edit the gtk-config script: /usr/X11R6/bin/gtk-config
configure: error: Cannot find GTK: Is gtk-config in path?
*** Error code 1

# gtk-config --version

config.log claims it can find gtk.h :

configure:1853: cc -o conftest -O2 -I/usr/local/include 
                   -I/usr/X11R6/include -I/usr/X11R6/include/gtk-1.2\
                   -I/usr/X11R6/include  -I/usr/local/include\
                   -I/usr/X11R6/include -Wl,-R/usr/X11R6/lib\
                   -L/usr/X11R6/lib -Wl,-R/usr/local/lib\
                   -L/usr/local/lib conftest.c  -lintl -L/usr/X11R6/lib\
                   -Wl,-R/usr/X11R6/lib -Wl,-R/usr/X11R6/lib\
                   -L/usr/X11R6/lib -L/usr/X11R6/lib\
                   -lgtk -lgdk -L/usr/local/lib 
                   -Wl,-R/usr/local/lib -lgmodule -lglib -lintl -lXi\
                   -lXext -lX11 -lm 1>&5
configure:1845: gtk/gtk.h: No such file or directory

# pkg_info|grep gtk
gtk+-1.2.10nb3      Gimp toolkit. Libraries for building X11 user interfaces
gtk2+-2.0.6nb3      Gimp toolkit. Libraries for building X11 user interfaces

# ls /usr/X11R6/include/gtk-1.2/gtk/gtk.h

See above