Subject: Re: graphics/gdk-pixbuf can't find build problem
To: Juan RP <juan@xtraeme.unixbsd.org>
From: Chuck Cranor <chuck@ece.cmu.edu>
List: tech-pkg
Date: 01/06/2004 20:14:45
On Wed, Jan 07, 2004 at 12:07:36AM +0100, Juan RP wrote:
> >     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
> > 		% 
> 
> Maybe, that's the cause.


it is definitely the cause!


so, if i goto graphics/gdk-pixbuf, do "make clean" and then 
"make configure", I get this:

	% work/gtk+-1.2.10/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
	% 

if i do plain old "make" and then ^Z it while it is compiling, i get
the same thing.   However, when the make finishes, it does this
step: "=> Fixing buildlink references in files-to-be-installed."

after that happens, then I get this:
	% work/gtk+-1.2.10/gtk-config --cflags
	-I/usr/X11R6/include/gtk-1.2 -I/usr/X11R6/include
	% 


that is definitely causing the graphics/gdk-pixbuf configure error:

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


because the test program needs the -I's for glib and gtk-config no
longer emits them once "=> Fixing buildlink references" gets a hold of it.


it is also causing the compiler error I initially report.   i'm sure
of it, because if you revert the output of "gtk-config --cflags" back
to:
	-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


you can successfully compile graphics/gdk-pixbuf (or at least I can).


> Can you send me config.log file? Also I would like to know if the headers
> are properly buildlinked before run configure script.
> 
> Try to run `make buildlink' and show me the contents of
> ${WRKDIR}/.buildlink/include.

sure, get this file:

	http://www.netbsd.org/~chuck/work.tar.gz


chuck