LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-08-2003, 11:26 AM   #1
LSD
Member
 
Registered: Jan 2003
Location: Northam, W.A., Australia
Distribution: Gentoo ~x86
Posts: 321

Rep: Reputation: 31
Problem compiling sawfish


I'm trying to compile GNOME 2 from sources, partly because I wanted a challenge and partly because the dropline GNOME binary distribution for Slackware sucked and I've run across a problem with the sawfish window manager, specifically it won't build the theme engine because it can't find rep-gtks libglade and gnome wrappers. rep-gtk is version 0.17 and was configured with the --with-libglade and --with-gnome options so as far as I can tell the wrappers were built but the sawfish (1.2a-gtk2 and 2.0, both had the same problem) configure script isn't picking them up. Anyone have any idea what I'm doing wrong?
 
Old 01-08-2003, 01:58 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Do you have GNOME in PATH and LIBRARY_PATH (usually: /usr/local/bin and /usr/local/lib)?
 
Old 01-08-2003, 03:00 PM   #3
LSD
Member
 
Registered: Jan 2003
Location: Northam, W.A., Australia
Distribution: Gentoo ~x86
Posts: 321

Original Poster
Rep: Reputation: 31
I assume so, I compiled pretty much everything without specifying prefix parameters so it's all in the default locations which I assume are covered by the relevant environment variables.
 
Old 01-09-2003, 12:49 AM   #4
LSD
Member
 
Registered: Jan 2003
Location: Northam, W.A., Australia
Distribution: Gentoo ~x86
Posts: 321

Original Poster
Rep: Reputation: 31
I think I've found something: I was poking around in the config.log file to see if I could gain any insight into what was happening when it was performing the rep-gtk check and discovered it was looking for the wrappers in gui/gtk/ when in actual fact mine are installed in to /gui/gtk-2 (with a prefix of /usr/local/libexec/rep/i686-pc-linux-gnu/). I tried both symlinking gtk-2 to gtk and modifying the configure script itself but neither worked, instead now I have *** Error: /usr/local/libexec/rep/i686-pc-linux-gnu/gui/gtk/libglade.so: undefined symbol: sgtk_callbak_destroy in config.log. What does this mean? Should I recompile GTK+ 2 (version 2.2.0) and then try again (after in turn recompiling librep and rep-gtk)?

This is with sawfish-1.2-gtk2 btw, I gave up on sawfish 2.0 after reading that this version was more recent.
 
Old 01-10-2003, 05:53 AM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
'Error: /usr/local/libexec/rep/i686-pc-linux-gnu/gui/gtk/libglade.so: undefined symbol: sgtk_callbak_destroy' means that libglade library can't find one of the functions it needs. Try
ldd /usr/local/libexec/rep/i686-pc-linux-gnu/gui/gtk/libglade.so
Look if all the listed libraries are available.
 
Old 01-10-2003, 10:49 AM   #6
LSD
Member
 
Registered: Jan 2003
Location: Northam, W.A., Australia
Distribution: Gentoo ~x86
Posts: 321

Original Poster
Rep: Reputation: 31
Yep, thats exactly what it was. On a hunch I went trawling through the LFS mailing list archives (I figured that if anyone else would know about this and how to fix it it'd be an LFS'er) and came across this:

http://archive.linuxfromscratch.org/...2/08/0170.html

It would seem that not only do you need gtk2/libglade2 wrappers (rep-gtk 0.17) but gtk1/libglade1 wrappers as well (rep-gtk 0.15). After following the procedure in that post I managed to get the configure script to successfully complete, themer support included but now I have another problem: After a while the compile with terminate with these messages:

gtk-style.c: In function `print_rc_style':
gtk-style.c:101: structure has no member named `font_name'
gtk-style.c:102: structure has no member named `font_name'
gtk-style.c:103: structure has no member named `fontset_name'
gtk-style.c:104: structure has no member named `fontset_name'
make[1]: *** [gtk-style] Error 1
make[1]: Leaving directory `/usr/src/sawfish-1.2-gtk2/src'
make: *** [all] Error 1

I tried uninstalling GTK1 and 2 in turn but all that accomplished was causing the configure script to start failing again. I have a strong feeling it's caused by the presence of a conflicting set of libraries as I've seen similar errors before but I can't be certain. Any one have any ideas as to what might be causing this?
 
Old 01-11-2003, 03:46 PM   #7
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
I've got GNOME2 compiled from source (some time ago) and I've got rep-gtk version 0.15 only. Maybe try to uninstall the 0.17 version (only make uninstall, without deleting it, because you may have dependencies problems).
 
Old 01-13-2003, 11:29 AM   #8
LSD
Member
 
Registered: Jan 2003
Location: Northam, W.A., Australia
Distribution: Gentoo ~x86
Posts: 321

Original Poster
Rep: Reputation: 31
What version of sawfish were you using then? Sawfish 1.2 requires rep-gtk 0.17, the configure script won't even complete without it. libglade1/rep-gtk 0.15 are required to set up the gtk-1 bindings needed to get the themer to be included by the configure script. I probably did have something in the way though. I was (an unfortunate accident, caused by stupidity on my part, caused that install to get hosed resulting in the need to rebuild it from scratch) installing, uninstalling and symlinking stuff all over the place in an effort to get this working and probably forgot to remove some of them. Now I know the correct procedure, I'll try it again later and see what happens.
 
Old 01-13-2003, 03:33 PM   #9
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
I downloaded and compied the source more than 4 months ago, and I can't check it now (it's on the other machine).
Try again. GNOME compilation is much harder than KDE, so don't worry, just try.
 
Old 01-14-2003, 12:37 PM   #10
LSD
Member
 
Registered: Jan 2003
Location: Northam, W.A., Australia
Distribution: Gentoo ~x86
Posts: 321

Original Poster
Rep: Reputation: 31
I've figured it out: I was using GTK 2.2.0. Now thats OK except for the fact that Sawfish does a check to see if the version of GTK you're using contains those two functions in the error. These were present in 1.2 but removed in 1.3 and later releases. It performs this check by looking for the minor version of GTK on your system. If this is 2 it will include the two functions. Of course, have version 2.2 validates the check and the functions are included even though they aren't actually present. Temporarily building a 2.0.x GTK and then building sawfish solved the problem (and afterwards GTK 2.2.0 was restored).
 
  


Reply



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
problem with sawfish and gnome 2. Sawfish won't load! the mirror Linux - Software 4 05-14-2011 07:48 PM
sawfish problem on fedora 2 axelmang Linux - Software 0 11-15-2004 11:01 AM
sawfish zeppelinrs Linux - General 8 06-10-2003 07:33 PM
Strange problem (sortof) with Sawfish on gtk2 on Mandy 9.0 Thymox Linux - Software 0 10-13-2002 12:48 PM
Sawfish making a problem hackgbpec Linux - General 9 06-03-2002 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:18 PM.

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