Subject: Re: graphics/gdk-pixbuf can't find build problem
To: None <tech-pkg@netbsd.org>
From: Chuck Cranor <chuck@ece.cmu.edu>
List: tech-pkg
Date: 01/06/2004 16:29:00
hi-

    i found at least one problem/difference:


	on my new system i get this from "gtk-config":

		% gtk-config --cflags
		-I/usr/X11R6/include/gtk-1.2 -I/usr/X11R6/include
		% 

	on my old laptop, I get this:

		% ~chuck/OLD/root/usr/X11R6/bin/gtk-config --cflags
		-I/usr/X11R6/include/gtk-1.2 -I/usr/pkg/include/glib/glib-1.2 -I/usr/pkg/lib/glib/include -I/usr/X11R6/include
		% 



so, the new "gtk-config" doesn't provide the -I/usr/pkg/include/glib/glib-1.2
this causes an earlier error in "configure" that seems to get ignored:

...
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
checking whether make is GNU Make... _usr_pkg_bin_gmake: not found
no
checking for x.gnome-config.x... no
Not building GnomeCanvasPixbuf library
...


config.log says:

configure:8838: checking for GTK - version >= 1.2.0
configure:8941: cc -o conftest -O2 -I/usr/pkg/include -I/usr/X11R6/include -I/us
r/X11R6/include/gtk-1.2 -I/usr/X11R6/include   -I/usr/pkg/include -I/usr/X11R6/i
nclude  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib
conftest.c -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -L/usr/X11
R6/lib -L/usr/X11R6/lib -lgtk -lgdk -Wl,-R/usr/pkg/lib -lgmodule -lglib -lintl -
lXi -lXext -lX11 -lm  -lintl >&5
In file included from /usr/home/netbsd/cur/pkgsrc/graphics/gdk-pixbuf/work/.buil
dlink-x11/include/gtk-1.2/gdk/gdk.h:31,
                 from /usr/home/netbsd/cur/pkgsrc/graphics/gdk-pixbuf/work/.buil
dlink-x11/include/gtk-1.2/gtk/gtk.h:31,
                 from configure:8864:
/usr/home/netbsd/cur/pkgsrc/graphics/gdk-pixbuf/work/.buildlink-x11/include/gtk-
1.2/gdk/gdktypes.h:33:18: glib.h: No such file or directory



chuck