LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 05-20-2010, 10:50 AM   #1
Geriao
Member
 
Registered: Dec 2009
Distribution: Ubuntu Karmic Koala, Slackware 13.0
Posts: 66

Rep: Reputation: 16
Error building gnome-power-manager 2.30


I use Slackware 13.0 with the 2.6.33.2 kernel, and I use GnomeSlackbuild.
I tried to get help on their discussion group, but I didn't get any.

I'm trying to build gnome-power-manager 2.30, because it uses the new upower interface (so it seems). I have GTK+ 2.18.9.

But when I try and compile it, I get this:

Code:
make  all-recursive
make[1]: Entering directory `/home/thales/downloads/builds/gnome-power-manager/gnome-power-manager-2.30.0'
Making all in src
make[2]: Entering directory `/home/thales/downloads/builds/gnome-power-manager/gnome-power-manager-2.30.0/src'
make  all-am
make[3]: Entering directory `/home/thales/downloads/builds/gnome-power-manager/gnome-power-manager-2.30.0/src'
  CCLD   gnome-power-manager
libtool: link: warning: library `/usr/local/lib/libuuid.la' was moved.
libtool: link: warning: library `/usr/local/lib/libuuid.la' was moved.
libtool: link: warning: library `/usr/local/lib/libuuid.la' was moved.
/usr/lib/gcc/i486-slackware-linux/4.3.3/../../../../i486-slackware-linux/bin/ld: warning: libltdl.so.7, needed by /usr/lib/libcanberra-gtk.so, may conflict with libltdl.so.3
gnome_power_manager-gsd-media-keys-window.o: In function `fade_timeout':
/home/thales/builds/gnome-power-manager/gnome-power-manager-2.30.0/src/gsd-media-keys-window.c:80: undefined reference to `gtk_widget_get_allocation'
gnome_power_manager-gsd-media-keys-window.o: In function `gsd_media_keys_window_real_realize':
/home/thales/builds/gnome-power-manager/gnome-power-manager-2.30.0/src/gsd-media-keys-window.c:974: undefined reference to `gtk_widget_get_allocation'
collect2: ld returned 1 exit status
make[3]: *** [gnome-power-manager] Error 1
make[3]: Leaving directory `/home/thales/downloads/builds/gnome-power-manager/gnome-power-manager-2.30.0/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/thales/downloads/builds/gnome-power-manager/gnome-power-manager-2.30.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/thales/downloads/builds/gnome-power-manager/gnome-power-manager-2.30.0'
make: *** [all] Error 2
I checked /usr/local/include/gtk-2.0/gtk/gtkwidget.h, and there is a function declaration for gtk_widget_get_allocation, yet it seems the compiler can't see it.

Can anyone help?

Thanks in advance.
 
Old 05-22-2010, 03:13 AM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,746

Rep: Reputation: 458Reputation: 458Reputation: 458Reputation: 458Reputation: 458
Don't mix /usr/local with /usr. If you upgrade something, build it so that it replaces the old version instead of installing to some other location. Having libs and headers present in more than one location will nearly always cause problems such as you are having.
 
Old 05-23-2010, 03:55 PM   #3
Geriao
Member
 
Registered: Dec 2009
Distribution: Ubuntu Karmic Koala, Slackware 13.0
Posts: 66

Original Poster
Rep: Reputation: 16
Yes, I had something like that while upgrading glib2... But as I checked the source file that is the font of this error, it includes gtk/gtk.h, and gtk.h includes /usr/local/include/gtk-2.0/gtk/gtkwidget.h, which has a declaration for the function that the compiler says is undefined.
How do I amend that?

Also, a bit off topic, when I just used "make" to compile a new version of glib2, it seemed , even without "make install", that further programs that used it were searching for it in, e.g., /tmp/building/glib2 (where my sources were). What command the "make install" of glib does that registers that location as the place where the libraries are?

Thanks in advance!
 
Old 05-24-2010, 06:13 AM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,746

Rep: Reputation: 458Reputation: 458Reputation: 458Reputation: 458Reputation: 458
'amke install' finalizes the libs, *.la and *.pc files to use the final path which is determined by the prefix. As I said, get rid of everything in /usr/local and start over from the beginning and put everything in prefix=/usr, overwriting the existing versions and you'll have much better success.
 
  


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
compiling gnome power manager from source ninja master Linux - Software 1 09-17-2009 09:06 PM
GNOME power manager problem etessua Linux - Newbie 5 09-16-2009 02:44 AM
gnome power manager with Xfce 4.4.3? joutlancpa Slackware 1 05-03-2009 02:35 PM
gnome-power-manager crash tomwang Fedora 0 06-26-2007 05:13 AM
where is gnome-power-manager? panagopoulos Linux - Software 0 04-29-2006 07:50 AM


All times are GMT -5. The time now is 09:27 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration