GNOME Bugzilla – Bug 580812
missing libgnomeui dependency in libpanelappletmm
Last modified: 2009-05-16 19:45:07 UTC
init.cc:29:19: error: gnome.h: No such file or directory init.cc: In function ‘void Gnome::Panel::init(const Glib::ustring&, const Glib::ustring&, int, char**)’: init.cc:41: error: ‘LIBGNOMEUI_MODULE’ was not declared in this scope init.cc:41: error: ‘GNOME_CLIENT_PARAM_SM_CONNECT’ was not declared in this scope make[4]: *** [init.lo] Erreur 1 This is because it looks for "gnome.h" from libgnomeui, without requesting that library in the configure script.
Created attachment 133610 [details] [review] add dependency on libgnomeui
Feel free to commit, though it would be nice if we could avoid this dependency somehow.
Agree, it would certainly be possible to replace the gnome_program_init() call with gtk_init() and bonobo_init(), just like it is done in PANEL_APPLET_BONOBO_FACTORY. commit 3bc87f8d8647e8076fce7ab24f7fafecd294e66a Author: Frederic Peters <fpeters@0d.be> Date: Fri May 1 14:37:35 2009 +0200 declare dependency on libgnomeui It is required in order to pass LIBGNOMEUI_MODULE to gnome_program_init. (GNOME #580812)
(In reply to comment #2) > Feel free to commit, though it would be nice if we could avoid this dependency > somehow. > The dependency was implicit before, but the panel dropped it. We can see if we can remove it for 2.28.
While Fred patch fixes the build, the best is to actually get rid of the dependency altogether. I'll cook up a fix for that.
fixed in master.