Subject: trouble configuring x11/gtk
To: None <>
From: Georg Schwarz <>
List: tech-pkg
Date: 07/18/2004 01:56:32
I am trying to build x11/gtk on IRIX 5.3. It fails in the configure
stage because it does not find glib.h. Config.log says:
configure:4448: cc -o conftest -O2 -Xcpluscomm -I/usr/local/pkg/include
-I/usr/local/pkg/include/glib/glib-1.2 -I/usr/local/pkg/lib/glib/include
-D_REENTRANT -I/usr/local/pkg/include -Wl,-rpath,/usr/local/pkg/lib
-L/usr/lib32 -Wl,-rpath,/usr/lib32 conftest.c -lintl -liconv -lintl
-liconv -L/usr/local/pkg/lib -Wl,-R/usr/local/pkg/lib -lgmodule
-lgthread -lglib -lpthread 1>&5
cfe: Error: configure: 4440: Cannot open file glib.h for #include

Buildlink3 translates this into (cf. .work.log):

<.> /usr/people/schwarz/pkgsrc/x11/gtk/work/.ido/bin/cc -o conftest -O2
-Olimit 5000 -Xcpluscomm
lib/include -D_REENTRANT -Wl,-rpath,/usr/local/pkg/lib conftest.c
-L/usr/people/schwarz/pkgsrc/x11/gtk/work/.buildlink/lib -lintl -liconv
-lintl -liconv -lgmodule -lgthread -lglib -lpthread

The problem is pkgsrc/x11/gtk/work/.x11-buildlink/local does not exist!
Why does buildlink3 use such a mapping?

To work around that problem I manually did in
ln -s . local
ln -s . pkg

This makes x11/gtk configure and build successfully.
My LOCALBASE is /usr/local/pkg, and I would suspect that this is where
somehow the mapping comes from. But why, and how can I fix it? 

Georg Schwarz     +49 177 8811442