linker problems



Hi - I'm trying to build gtk+-1.2.10 on Solaris 8. 

I started off by building glib-1.2.10. I ran the configure script, did a make, 
followed by a make install. See the attached file (lib_list) for a list of 
libraries that were installed as a result of the make install.

I then tried to build gtk+-1.2.10. I can not get the configure script to 
complete successfully. The error is

-------------------------------------------------------------------------
*** 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.8 or better is required. The latest version of GLIB
*** is always available from ftp://ftp.gtk.org/.
-------------------------------------------------------------------------

I've set the LD_LIBRARY_PATH as requested. Here is what the LD_LIBRARY_PATH is 
set to:

/usr/lib:/usr/ucblib:/usr/dt/lib:/usr/openwin/lib:/usr/ccs/lib:/opt/SUNWspro/lib
:/opt1/SUNWspro/lib:/opt/galaxy/lib:/opt/SUNWmotif/lib:/opt/softbench/lib:/users
/davidf/lib:/usr/local/lib/glib/include:/usr/local/lib:/usr/local/lib/pkgconfig

You can see that the location of the GLIB libs (/usr/loacl/lib) appears in the 
LD_LIBRARY_PATH variable.

Can you give me any idea why configure fails when I have correctly specified the 
path to the glib libraries.

Thanks - Paul Moore.
Script started on Fri Feb 01 12:57:40 2002
DISPLAY already set to: blade:2.0
khan[paulm]> ./configure
loading cache ./config.cache
checking for a BSD compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking host system type... sparc-sun-solaris2.8
checking build system type... sparc-sun-solaris2.8
checking for ranlib... (cached) ranlib
checking for gcc... (cached) cc
checking whether the C compiler (cc  ) works... yes
checking whether the C compiler (cc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) no
checking whether cc accepts -g... (cached) yes
checking for non-GNU ld... (cached) /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... (cached) no
checking for BSD-compatible nm... (cached) /usr/ccs/bin/nm -p
checking whether ln -s works... (cached) yes
loading cache ./config.cache within ltconfig
checking whether we are using GNU C... no
checking for object suffix... o
checking for executable suffix... (cached) no
checking for cc option to produce PIC... -KPIC
checking if cc PIC flag -KPIC works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.lo... no
checking if cc static flag -Bstatic works... -Bstatic
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... yes
checking command to parse /usr/ccs/bin/nm -p output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/ccs/bin/ld option to reload object files... -r
checking dynamic linker characteristics... solaris2.8 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
loading cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... sparc-sun-solaris2.8
checking whether build environment is sane... yes
checking for gcc... (cached) cc
checking whether the C compiler (cc -g ) works... yes
checking whether the C compiler (cc -g ) is a cross-compiler... no
checking whether we are using GNU C... (cached) no
checking whether cc accepts -g... (cached) yes
checking for POSIXized ISC... no
checking for cc option to accept ANSI C... none needed
checking for a BSD compatible install... ./install-sh -c
checking whether make sets ${MAKE}... (cached) yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking for perl5... no
checking for perl... perl
checking for indent... indent
checking whether make is GNU Make... no
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for working const... yes
checking for inline... no
checking for off_t... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for unistd.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for argz.h... no
checking for limits.h... yes
checking for locale.h... yes
checking for nl_types.h... yes
checking for malloc.h... yes
checking for string.h... yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getcwd... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... no
checking for setlocale... yes
checking for strchr... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for __argz_count... no
checking for __argz_stringify... no
checking for __argz_next... no
checking for stpcpy... no
checking for LC_MESSAGES... yes
checking whether NLS is requested... yes
checking for libintl.h... yes
checking for dgettext in libc... yes
checking for msgfmt... /bin/msgfmt
checking for dcgettext... yes
checking for gmsgfmt... /bin/msgfmt
checking for xgettext... /bin/xgettext
found xgettext program is not GNU xgettext; ignore it
checking for catalogs to be installed...  az ca cs da de el es et eu fi fr ga gl hr hu it ja ko lt nl no nn pl pt pt_BR ro ru sk sl sp sr sv tr uk vi wa zh_CN.GB2312 zh_TW.Big5
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.8... 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.8 or better is required. The latest version of GLIB
*** is always available from ftp://ftp.gtk.org/.
khan[paulm]> exit
script done on Fri Feb 01 12:58:14 2002
total 3904
-rw-r--r--   1 root     other       8096 Feb 21  2001 a2ps.header.ps
drwxrwxr-x   3 paulm    vicpol       512 Jan 31 18:58 glib
lrwxrwxrwx   1 paulm    vicpol        21 Jan 31 19:33 libglib-1.2.so.0 -> libglib-1.2.so.0.0.10
-rwxr-xr-x   1 paulm    vicpol    549796 Jan 31 19:33 libglib-1.2.so.0.0.10
-rw-r--r--   1 paulm    vicpol   1267956 Jan 31 19:33 libglib.a
-rwxr-xr-x   1 paulm    vicpol       668 Jan 31 19:33 libglib.la
lrwxrwxrwx   1 paulm    vicpol        21 Jan 31 19:33 libglib.so -> libglib-1.2.so.0.0.10
lrwxrwxrwx   1 paulm    vicpol        24 Jan 31 19:33 libgmodule-1.2.so.0 -> libgmodule-1.2.so.0.0.10
-rwxr-xr-x   1 paulm    vicpol     21492 Jan 31 19:33 libgmodule-1.2.so.0.0.10
-rw-r--r--   1 paulm    vicpol     49908 Jan 31 19:33 libgmodule.a
-rw-r--r--   1 paulm    vicpol       694 Jan 31 19:33 libgmodule.la
lrwxrwxrwx   1 paulm    vicpol        24 Jan 31 19:33 libgmodule.so -> libgmodule-1.2.so.0.0.10
lrwxrwxrwx   1 paulm    vicpol        24 Jan 31 19:33 libgthread-1.2.so.0 -> libgthread-1.2.so.0.0.10
-rwxr-xr-x   1 paulm    vicpol     17304 Jan 31 19:33 libgthread-1.2.so.0.0.10
-rw-r--r--   1 paulm    vicpol     47040 Jan 31 19:33 libgthread.a
-rwxr-xr-x   1 paulm    vicpol       698 Jan 31 19:33 libgthread.la
lrwxrwxrwx   1 paulm    vicpol        24 Jan 31 19:33 libgthread.so -> libgthread-1.2.so.0.0.10
drwxrwxr-x   2 paulm    vicpol       512 Jan 31 19:33 pkgconfig


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