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 Can anyone help? Thanks in advance. |
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.
|
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! |
'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.
|
All times are GMT -5. The time now is 12:39 AM. |