[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: [linux-audio-dev] [OT] seriously screwed up Gtk installation ?
From: Dave Phillips (dlphilp_AT_bright.net)
Date: Thu Apr 11 2002 - 18:23:20 EEST


Greetings:

  My apologies for writing to this list with this problem. My defense is
that there are so many accomplished Gtk programmers on this list that I
figured it would be a better and more immediate resource than any other
list or newsgroup. :)

  I've been mucking about with my system since upgrading to RH 7.2,
particularly WRT the C/C++ compiler. Recently I've been ridding the
system of duplicate and outdated libraries. I found some earlier
versions of libgtk and friends (glib, gmodule, gthread) and dumped them
into a temp file. The supposedly working version of Gtk here is 1.2.10,
ditto for Glib and Gmodule. gtk-config is located at /usr/local/bin and
is found by ./configure (in say, SoundTracker's sources) but the Gtk
test fails with this message:

        checking for gtk-config... /usr/local/bin/gtk-config
        checking for GTK - version >= 1.2.2... no
        *** Could not run GTK test program, checking why...
        *** The test program compiled, but did not run. This usually means
        *** that the run-time linker is not finding GTK or finding the wrong
        *** version of GTK. If it is not finding GTK, 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: Cannot find GTK: Is gtk-config in path?

  I recompiled Trommler (it doesn't use autoconf) :

        [dlphilp_AT_localhost Trommler]$ make
        cc -Wall -O9 `gtk-config --cflags` -c -o drummer.o drummer.c
        cc -Wall -O9 `gtk-config --cflags` -c -o gui.o gui.c
        cc -Wall -O9 `gtk-config --cflags` -c -o soundcard.o soundcard.c
        cc -o trommler drummer.o gui.o soundcard.o `gtk-config --libs`

but the binary is now four times larger than the previous build (pre-dlp
fubar) and segfaults before it draws to the screen. Existing Gtk-based
binaries appear to be working fine.

  If this is a familiar condition could someone turn me towards the
light ? I prefer to avoid a system reinstallation if possible, but any
advice is greatly appreciated.

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 - 17:54:49 EEST