Problems building GTK+ apps in 9.3

I am having problems building application using GTK with the new version of 9.3 professional for AMD64. I am trying to build Xscreensaver. All of the hacks build fine, but when it gets to the demo program, I get errors during linking. So, after doing a configure and build, it fails in the driver directory. The last lines i get are : edward@ws:/buildarea/xscreensaver-4.22/driver> make gcc -pedantic -Wall -Wstrict-prototypes -Wnested-externs -std=c89 - U__STRICT_ANSI__ -L/usr/local/lib -o xscreensaver-demo-Gtk prefs.o dpms.o remote.o exec.o ../utils/resources.o ../utils/usleep.o ../utils/visual.o demo-Gtk.o demo-Gtk-conf.o -L/usr/X11R6/lib64 \ -Wl,--export-dynamic -L/ usr/lib64 -L/opt/gnome/lib64 -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lpthread -lz - lgdk-x11-2.0 -latk-1.0 -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 - lgdk_pixbuf_xlib-2.0 -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lgmodule-2.0 -ldl - lglib-2.0 -lXmu -lXpm -Wl,--export-dynamic -L/opt/gnome/lib64 - lgdk_pixbuf_xlib-2.0 -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lgmodule-2.0 -ldl - lglib-2.0 -lSM -lICE \ -lXt -lX11 -lXinerama -lXext /opt/gnome/lib64/ libglade-2.0.so: undefined reference to `gtk_menu_tool_button_get_type' /opt/ gnome/lib64/libglade-2.0.so: undefined reference to `gtk_file_chooser_button_get_type' /opt/gnome/lib64/libglade-2.0.so: undefined reference to `gtk_icon_view_get_type' /opt/gnome/lib64/ libglade-2.0.so: undefined reference to `gtk_about_dialog_get_type' collect2: ld returned 1 exit status make: *** [xscreensaver-demo-Gtk] Error 1 This is a machine that was updated from Suse 9.1 (no 9.2 in the middle). I don't know if there are older versions of gtk2 that are expected, or what. I also get this message when i try to configure : checking for pkg-config... / usr/bin/pkg-config checking for GTK+ - version >= 2.0.0... *** 'pkg-config --modversion gtk+-2.0' returned 2.6.4, but GTK+ (2.4.4) *** was found! If pkg-config was correct, then it is best *** to remove the old version of GTK+. You may also be able to fix the error *** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing *** /etc/ld.so.conf. Make sure you have run ldconfig if that is *** required on your system. *** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH *** to point to the correct configuration files I am thinking that they may be related. Has anyone else run into this? If so, what did you do to get around the problem? Thanks, edward

One additional piece of information, here is what i get when I do a rpm -qa | grep gtk2 gtk2-doc-2.6.4-6 gtk2-engines-32bit-9.3-7 gtk2-32bit-9.3-7 gtk2-2.6.4-6 gtk2-devel-2.6.4-6 gtk2-engines-2.6.2-4 gtk2-themes-0.1-637

* edward winston (ewinston@kdi.com) [20050623 23:40]:
I am trying to build Xscreensaver. All of the hacks build fine, but when it gets to the demo program, I get errors during linking. So, after doing a configure and build, it fails in the driver directory. The last lines i get are :
Have a look at the xscreensaver.spec inside our xscreensaver.rpm and you'll see what we do to compile it. Maybe that'll give you a hint. Philipp -- Anything whose specification is too complicated to explain easily probably needs to be redesigned. David Abrahams on boost

Ok, I looked at the spec file but didn't see anything different in the configure line. I will look at it a bit closer later today. I was able to build the source rpm. When I did just an rpmbuild -- recompile, everything built fine. But when I go to the build directory and try to run xscreensaver-demo, i get the following error : xscreensaver: symbol lookup error: /opt/gnome/lib64/libglade-2.0.so.0: undefined symbol: gtk_about_dialog_get_type According to rpm, here is the vesrion of libglade I have installed : libglade2-2.5.1-6 Thanks, Edward On Fri, 24 Jun 2005 14:34:05 +0200 Philipp Thomas <pth@suse.de> wrote:
* edward winston (ewinston@kdi.com) [20050623 23:40]:
I am trying to build Xscreensaver. All of the hacks build fine, but when it gets to the demo program, I get errors during linking. So, after doing a configure and build, it fails in the driver directory. The last lines i get are :
Have a look at the xscreensaver.spec inside our xscreensaver.rpm and you'll see what we do to compile it. Maybe that'll give you a hint.
Philipp
-- Anything whose specification is too complicated to explain easily probably needs to be redesigned. David Abrahams on boost
-- Check the List-Unsubscribe header to unsubscribe For additional commands, email: suse-amd64-help@suse.com

Upon closer inspection it turned out that I had some old copies of GTK in /usr/local that I had installed and those were being picked up instead of the RPM versions. Once I removed those versions everything compiled fine. Thanks, Edward
participants (2)
-
edward winston
-
Philipp Thomas