Subject: trouble installing x11/gtk2 on FreeBSD 5.4
To: None <tech-pkg@netbsd.org>
From: Georg Schwarz <georg.schwarz@freenet.de>
List: tech-pkg
Date: 05/29/2005 14:33:37
Trying to install x11/gtk2 on FreeBSD 5.4 I end up as follows:

checking for extra flags for POSIX compliance... none needed
checking for pkg-config... /usr/local/pkg/bin/pkg-config
checking for GLIB - version >= 2.6.0... Abort trap (core dumped)
no
*** Could not run GLIB test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding GLIB or finding the wrong
*** version of GLIB. If it is not finding GLIB, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to
point
*** to the installed location  Also, make sure you have run ldconfig if
that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it,
although
*** you may also be able to get things to work by modifying
LD_LIBRARY_PATH
configure: error:
*** GLIB 2.6.0 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/pub/gtk/.
*** Error code 1

Stop.
bmake: stopped in /usr/src/pkgsrc/pkgsrc/x11/gtk2


config.log is not very conclusive. The last lines are:

configure:23206: cc -o conftest -O3 -march=pentium -pthread
-I/usr/local/pkg/include -D_THREAD_SAFE -I/usr/include
-I/usr/local/pkg/include/freetype2 -Wall -pth
read -I/usr/local/pkg/include/glib/glib-2.0
-I/usr/local/pkg/lib/glib-2.0/includ
e   -DPREFIX="\"/usr/local/pkg\"" -I/usr/local/pkg/include
-D_THREAD_SAFE -I/usr
/include -I/usr/local/pkg/include/freetype2 -L/usr/local/pkg/lib
-Wl,-R/usr/loca
l/pkg/lib -pthread -L/usr/lib -Wl,-R/usr/lib -L/usr/X11R6/lib
-Wl,-R/usr/X11R6/l
ib conftest.c -lintl -lpthread  -Wl,-R/usr/local/pkg/lib -pthread
-L/usr/local/p
kg/lib -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -liconv
>&5
configure:23212: $? = 0
configure:23216: test -z
                         || test ! -s conftest.err
configure:23219: $? = 0
configure:23222: test -s conftest
configure:23225: $? = 0
configure:23254: error:
*** GLIB 2.6.0 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/pub/gtk/.

Any idea what is going wrong here? Could anyone please test it on
another FreeBSD installation?

-- 
Georg Schwarz    http://home.pages.de/~schwarz/
 georg.schwarz@freenet.de     +49 178 8545053