After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 315046 - gnome-power-preferences fails to link when built without libnotify support
gnome-power-preferences fails to link when built without libnotify support
Status: RESOLVED FIXED
Product: gnome-power-manager
Classification: Deprecated
Component: gnome-power-preferences
unspecified
Other Linux
: Normal blocker
: ---
Assigned To: GNOME Power Manager Maintainer(s)
GNOME Power Manager Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2005-09-01 15:14 UTC by Joseph Sacco
Modified: 2005-09-15 11:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Joseph Sacco 2005-09-01 15:14:44 UTC
Version details: 0.2.0
Distribution/Version: YDL-4.0.1

gnome-power-preferences fails to link when built without libnotify support.

The cause of the problem is a failure to include libdbus-glib-1 in

   gnome_power_preferences_LDADD

One way to fix this is to add $(DBUS_LIBS) to the definition of 

   gnome_power_preferences_LDADD

when 

   HAVE_LIBNOTIFY=no

--- gnome-power-manager-0.2.0/src/Makefile.am-  2005-09-01 11:06:01.000000000 -0400
+++ gnome-power-manager-0.2.0/src/Makefile.am   2005-09-01 11:06:38.000000000 -0400
@@ -52,7 +52,7 @@
        $(LIBNOTIFY_LIBS) $(GLIB_LIBS) $(GNOME_LIBS) $(HAL_LIBS)
 else
 gnome_power_preferences_LDADD =                                \
-       $(GLIB_LIBS) $(GNOME_LIBS) $(HAL_LIBS)
+       (GLIB_LIBS) $(GNOME_LIBS) $(HAL_LIBS) $(DBUS_LIBS)
 endif

 gnome_power_manager_SOURCES =                          \

gnome-power-preferences does link when built with libnotify support. The reason
for this is $(LIBNOTIFY_LIBS) includes

       libdbus-glib-1

-Joseph
Comment 1 Richard Hughes 2005-09-15 11:56:38 UTC
Fixed in 0.3.0, Thanks.