cannot configure gtk 1.2.0



Hello,

I am unable to compile gtk 1.2.0.  I have compiled glib 1.2.0
no problem, and ldconfig -p reports:

        libglib.so (ELF-libc5) => /usr/local/lib/libglib.so
        libglib-1.2.so.0 (ELF-libc5) => /usr/local/lib/libglib-1.2.so.0

The libraries are in /usr/local/lib:
bigdell:/home/torsten# ls /usr/local/lib
Mesa/                     libgdk_imlib.so.1@        libgthread-1.2.so.0.0.0*
cvs/                      libgdk_imlib.so.1.8.1     libgthread.a
glib/                     libglib-1.2.so.0@         libgthread.la*
libImlib.a                libglib-1.2.so.0.0.0*     libgthread.so@
libImlib.la               libglib.a                 libpng.a
libImlib.so@              libglib.la*               libpng.so@
libImlib.so.1@            libglib.so@               libpng.so.2@
libImlib.so.1.8.1         libgmodule-1.2.so.0@      libpng.so.2.1.0.2*
libMesaGL.so.3@           libgmodule-1.2.so.0.0.0   libwine.a
libMesaGLU.so.3@          libgmodule.a              libz.a
libgdk_imlib.a            libgmodule.la             wine.sym
libgdk_imlib.la           libgmodule.so@            xemacs/
libgdk_imlib.so@          libgthread-1.2.so.0@      xemacs-20.4/
bigdell:/home/torsten# 


/usr/local/lib is in ld.so.conf:
bigdell:/home/torsten# cat /etc/ld.so.conf     
/usr/local/lib
/usr/X11R6/lib
/usr/i486-linuxaout/lib
/usr/openwin/lib
bigdell:/home/torsten# 


and finally:
bigdell:/home/torsten# glib-config --version
1.2.0


So, I know glib is there installed properly, can be found, and even that the test
program is compiling.  When I run ./configure in gtk+-1.2.0, I get:


checking for extra flags to get ANSI library prototypes... none needed
checking for extra flags for POSIX compliance... none needed
checking for glib-config... /usr/local/bin/glib-config
checking for GLIB - version >= 1.2.0... 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
***
*** If you have a RedHat 5.0 system, you should remove the GTK package that
*** came with the system with the command
***
***    rpm --erase --nodeps gtk gtk-devel
configure: error: 
*** GLIB 1.2.0 or better is required. The latest version of GLIB
*** is always available from ftp://ftp.gtk.org/.
bigdell:/home/torsten/gtk+-1.2.0# 


So I took a peek at the source code, and found the section telling me the glib test
program compiles, but does not link.  So I went to the glib directory, and did a make
clean;make in the tests directory:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..    -g -O2 -Wall  -D_REENTRANT -c relation-test.c
/bin/sh ../libtool --mode=link gcc  -g -O2 -Wall  -D_REENTRANT  -o relation-test
relation-test.o ../libglib.la 
gcc -g -O2 -Wall -D_REENTRANT -o .libs/relation-test relation-test.o -Wl,--rpath
-Wl,/usr/local/lib ../.libs/libglib.so
creating relation-test
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..    -g -O2 -Wall  -D_REENTRANT -c slist-test.c
/bin/sh ../libtool --mode=link gcc  -g -O2 -Wall  -D_REENTRANT  -o slist-test
slist-test.o ../libglib.la 
gcc -g -O2 -Wall -D_REENTRANT -o .libs/slist-test slist-test.o -Wl,--rpath
-Wl,/usr/local/lib ../.libs/libglib.so
creating slist-test
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..    -g -O2 -Wall  -D_REENTRANT -c string-test.c
/bin/sh ../libtool --mode=link gcc  -g -O2 -Wall  -D_REENTRANT  -o string-test
string-test.o ../libglib.la 
gcc -g -O2 -Wall -D_REENTRANT -o .libs/string-test string-test.o -Wl,--rpath
-Wl,/usr/local/lib ../.libs/libglib.so
creating string-test
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..    -g -O2 -Wall  -D_REENTRANT -c strfunc-test.c
/bin/sh ../libtool --mode=link gcc  -g -O2 -Wall  -D_REENTRANT  -o strfunc-test
strfunc-test.o ../libglib.la 
gcc -g -O2 -Wall -D_REENTRANT -o .libs/strfunc-test strfunc-test.o -Wl,--rpath
-Wl,/usr/local/lib ../.libs/libglib.so
creating strfunc-test
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..    -g -O2 -Wall  -D_REENTRANT -c tree-test.c
/bin/sh ../libtool --mode=link gcc  -g -O2 -Wall  -D_REENTRANT  -o tree-test
tree-test.o ../libglib.la 
gcc -g -O2 -Wall -D_REENTRANT -o .libs/tree-test tree-test.o -Wl,--rpath
-Wl,/usr/local/lib ../.libs/libglib.so
creating tree-test
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..    -g -O2 -Wall  -D_REENTRANT -c type-test.c
/bin/sh ../libtool --mode=link gcc  -g -O2 -Wall  -D_REENTRANT  -o type-test
type-test.o ../libglib.la 
gcc -g -O2 -Wall -D_REENTRANT -o .libs/type-test type-test.o -Wl,--rpath
-Wl,/usr/local/lib ../.libs/libglib.so
creating type-test
bigdell:/home/torsten/glib-1.2.0/tests# 





As you can see, everything is compiling and the programs run just fine.  
So any idea WTF is going on here?

I will be checking archives, as I am not subscribed.  Please feel free to e-mail me,
if you would like to work interactively.

mailto:torsten@inetw.net

Many thanks for all help in advance,
Torsten



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]