LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-12-2006, 01:22 PM   #1
JacquesMaeder
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Rep: Reputation: 0
Installing GTK+


Hi,

I am running Suse 10 and want to install GTK+ in order to get the graphic version of UNISON running. For that I need to have GTK+ installed.

I downloaded and installed atk-1.10.3, glib-2.8.6, jpeg-6b, lablgtk-2.6.0, libtiffpic, pango-1.10.4, tiff-3.8.0, libjpeg-sh-linux-6b-5.noarch.

./Configure of gtk+-2.8.14 run fine but when I do a make I get the following error:

./.libs/libgtk-x11-2.0.so: undefined reference to `g_object_compat_control'
collect2: ld returned 1 exit status
make[4]: *** [gtk-query-immodules-2.0] Error 1
make[4]: Leaving directory `/home/jacques/SoftBase/GTK+/gtk+-2.8.14/gtk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/jacques/SoftBase/GTK+/gtk+-2.8.14/gtk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/jacques/SoftBase/GTK+/gtk+-2.8.14/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jacques/SoftBase/GTK+/gtk+-2.8.14'
make: *** [all] Error 2

What could I do from there on ?

Any help appreciated, thank's in advance,
Jacques
 
Old 03-12-2006, 06:59 PM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Use Yast to install GTK rather than compile it yourself, it'll be much easier.
 
Old 03-12-2006, 10:52 PM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
hi -- we need to see the entire command above the error starting with "gcc"
also did you install these gtk components using the default directory /usr/local and are there older versions in /usr
my first guess is you now have multiple versions of libraries on your machine which is a mess.
did you try just installing the developement packages to the libs you already have ?
 
Old 03-21-2006, 02:38 PM   #4
JacquesMaeder
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Original Poster
Rep: Reputation: 0
I would of course have liked to use rmp, but I could not find any for Suse 10, that's why I went the compling way :-(

In Yast I see that I also have gtk 1.2.10-888 installed, Could it be the problem ? In which case how do I remove it, just be seleting "delete" in Yast ? Does this really remove all conflicting files or just compile the kernel without it ?

Here is also the few line before the error:

make[4]: Entering directory `/home/jacques/SoftBase/GTK+/gtk+-2.8.14/gtk'
/bin/sh ../libtool --mode=link gcc -g -O2 -Wall -o gtk-query-immodules-2.0 queryimmodules.o libgtk-x11-2.0.la ../gdk-pixbuf/libgdk_pixbuf-2.0.la ../gdk/libgdk-x11-2.0.la
gcc -g -O2 -Wall -o .libs/gtk-query-immodules-2.0 queryimmodules.o ./.libs/libgtk-x11-2.0.so -L/usr/local/lib /home/jacques/SoftBase/GTK+/gtk+-2.8.14/gdk/.libs/libgdk-x11-2.0.so -L/usr/X11R6/lib -L/opt/gnome/lib /usr/local/lib/libatk-1.0.so ../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so ../gdk/.libs/libgdk-x11-2.0.so -lXrandr -lXinerama /usr/local/lib/libpangocairo-1.0.so /usr/local/lib/libpangoft2-1.0.so /usr/local/lib/libpango-1.0.so /opt/gnome/lib/libgobject-2.0.so /opt/gnome/lib/libgmodule-2.0.so /opt/gnome/lib/libglib-2.0.so /usr/lib/libcairo.so -lpng12 /usr/lib/libglitz.so /usr/lib/libfontconfig.so /usr/lib/libfreetype.so -lz /usr/lib/libexpat.so -lXcursor -lXrender -lXext -lXfixes -lX11 /home/jacques/SoftBase/GTK+/gtk+-2.8.14/gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so /usr/local/lib/libgmodule-2.0.so -ldl /usr/local/lib/libgobject-2.0.so /usr/local/lib/libglib-2.0.so -lm
./.libs/libgtk-x11-2.0.so: undefined reference to `g_object_compat_control'
collect2: ld returned 1 exit status
make[4]: *** [gtk-query-immodules-2.0] Error 1
make[4]: Leaving directory `/home/jacques/SoftBase/GTK+/gtk+-2.8.14/gtk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/jacques/SoftBase/GTK+/gtk+-2.8.14/gtk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/jacques/SoftBase/GTK+/gtk+-2.8.14/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jacques/SoftBase/GTK+/gtk+-2.8.14'
make: *** [all] Error 2
 
Old 03-21-2006, 07:11 PM   #5
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
is your glib 2.8.6 the one /opt/gnome/lib/libglib-2.0.so
the build is trying to use that one.
i bet it's not the right one

very hard to use alternate glib gtk and the like because all are called 2.0
try to put the correct version path earlier in PKG_CONFIG_PATH
and redo the config or just edit the Makefile
might be a problem at runtime which app uses which lib.

there is bound to be a decent solution to having multiple gtks
the best place to look is gtk developers
they deal with new and alternate versions as a mater of course.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing the gtk Elbryan Linux - Software 10 10-13-2007 02:17 AM
gtk installing mohama Linux - Software 9 01-03-2006 10:11 AM
Installing Mono-got stuck while installing gtk-sharp chutsu Linux - Software 11 01-18-2005 09:25 PM
installing gtk+ minm Linux - Software 1 10-26-2004 10:20 PM
installing GTK+ 2.4.2 Vindane Linux - Software 3 06-05-2004 06:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration