Re: [linux-audio-dev] [OT] seriously screwed up Gtk installation ?

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] [OT] seriously screwed up Gtk installation ?
From: Dave Phillips (dlphilp_AT_bright.net)
Date: Thu Apr 11 2002 - 21:10:47 EEST


Frank Neumann wrote:

> Check: Did you run ldconfig (as root) after removing those
> duplicate/outdated libraries in order to re-create the /etc/ld.so.cache?
> Does "ldconfig -v" show any errors about links to non-existing shared
> library objects?

I ran ldconfig, no fear. 'ldconfig -v' reported no links to non-existing
objects.
 
> When a configure script runs, it creates a config.log file - look into
> it to see the actual reason why the program could not be run (I could
> imagine something like "shared library could not be found", which would
> confirm my suspicion above about your /etc/ld.so.cache being outdated).

In the original instance (configuring SoundTracker) here's what
config.log had to say:

        [snip]
configure:4991: checking for GTK - version >= 1.2.2
configure:5094: gcc -o conftest -g -O2 -Wall
-I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2
-I/usr/local/lib/glib/include -D_REENTRANT -I/usr/X11R6/include conft
est.c -L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule
-lgthread -lglib -lpthread -ldl -lXext -lX11 -lm >&5
configure:5097: $? = 0
configure:5099: ./conftest
./configure: line 1: 23146 Segmentation fault ./conftest$ac_exeext
configure:5102: $? = 139
configure: program exited with status 139
configure: failed program was:
#line 5015 "configure"
        [snip]
configure:5122: result: no
configure:5152: gcc -o conftest -g -O2 -Wall
-I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2
-I/usr/local/lib/glib/include -D_REENTRANT -I/usr/X11R6/include conft
est.c -L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule
-lgthread -lglib -lpthread -ldl -lXext -lX11 -lm >&5
configure:5155: $? = 0
configure:5158: test -s conftest
configure:5161: $? = 0
configure:5192: error: Cannot find GTK: Is gtk-config in path?

> If the binary suddenly grows in size, you have probably linked against a
> static version if libgtk/libglib, probably because the "libxxx.so" link
> stubs for the shared libraries have gone. Look at what "gtk-config
> --libs" actually outputs as its search path ("-L") so you can tell from
> where it tries to bring in the link libraries.

Here's the output from 'gtk-config --libs' :

        -L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule
-lglib -ldl -lXext -lX11 -lm

which looks kosher to me.

Btw, I removed the static libs (gtk, glib, gmodule, gthread) from
/usr/local/lib, did ldconfig, then recompiled the Trommler binary. It
still built the big binary and still segfaulted. Curiously, running ldd
on the older binary and the new one reported identical library
dependencies.

  I'm wondering how badly I must have screwed things up. I can't
recompile either Gtk 1.2.10 or Glib 1.2.10, both die with the following
error:

Making all in gmodule
make[2]: Entering directory `/home/dlphilp/glib-1.2.10/gmodule'
/bin/sh ../libtool --mode=link gcc -g -O2 -Wall -D_REENTRANT -o
libgmodule.la -rpath /usr/local/lib -rdynamic -version-info
0:10:0 -release 1.2 -export-dynamic gmodule.lo -ldl
rm -fr .libs/libgmodule.la .libs/libgmodule.* .libs/libgmodule-1.2.*
gcc -shared gmodule.lo -ldl -lc -Wl,-soname -Wl,libgmodule-1.2.so.0
-o .libs/libgmodule-1.2.so.0.0.10
!!!---> /usr/bin/ld: .libs/libgmodule-1.2.so.0.0.10: undefined versioned
symbol name readlink@@GLIBC_2.0
!!!---> /usr/bin/ld: failed to set dynamic section sizes: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libgmodule.la] Error 1
make[2]: Leaving directory `/home/dlphilp/glib-1.2.10/gmodule'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dlphilp/glib-1.2.10'
make: *** [all-recursive-am] Error 2

My arrows point to the error also reported by Gtk when I try recompiling
it (I know it depends on Glib, but I had a previously-configured
makefile ready to go). I imagine my problems will be resolved if I can
recompile and reinstall these libs, but now I can't even get past that
point.

Best regards,

== Dave Phillips

        The Book Of Linux Music & Sound at http://www.nostarch.com/lms.htm
        The Linux Soundapps Site at http://linux-sound.org


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Thu Apr 11 2002 - 20:41:06 EEST