Hi Dave,
> 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. :)
Don't let this become a habit ;-)

> 
>   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
locate libgtk+.so and verify the dates of it with  the date of 
/usr/local/bin/gtk-config.
check if there are any other 'gtk-config' around (again use locate/find).
If this is the one of the old gtk+ installation, it would be an explanation.


>       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@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.
generally in such cases search the ld-library-path
(for linux consult /etc/ld.so.conf) and the binary exec path for duplicates.
hope this helps.

Stefan
-- 
       \|/
      <@ @> Stefan Kost  private                   business
+-oOO-(_)-OOo------------------------------------------------------------- - - -  -   -
|        __    Address  Zwenkauer Str. 24         HTWK Leipzig, Fb IMN, Postfach 300066
|       ///             04277 Leipzig             04277 Leipzig
|  __  ///              Germany                   Germany
|  \\\///      Phone    +49341 3910483            +49341 30766101
|   \__/       EMail    [EMAIL PROTECTED]           [EMAIL PROTECTED]
|              WWW      http://www.sonicpulse.de  
|http://www.imn.htwk-leipzig.de/~kost/about.html
===-=-=--=---=---------------------------------- - - -  -    -

Reply via email to