build failure: implicit declaration of function 'g_clear_pointer'

Bug #1027333 reported by Pim Vullers
This bug report is a duplicate of:  Bug #1023533: should update glib requirement. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
indicator-power
Fix Committed
Low
Unassigned

Bug Description

When trying to build indicator-power I get the following error:
...
make[2]: Entering directory `/tmp/portage/sys-power/indicator-power-9999/work/indicator-power-9999_build/src'
  CC libpower_la-dbus-listener.lo
  CC libpower_la-device.lo
  CC libpower_la-indicator-power.lo
/tmp/portage/sys-power/indicator-power-9999/work/indicator-power-9999/src/device.c: In function 'indicator_power_device_finalize':
/tmp/portage/sys-power/indicator-power-9999/work/indicator-power-9999/src/device.c:147:3: error: implicit declaration of function 'g_clear_pointer' [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
make[2]: *** [libpower_la-device.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/tmp/portage/sys-power/indicator-power-9999/work/indicator-power-9999_build/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/portage/sys-power/indicator-power-9999/work/indicator-power-9999_build'
make: *** [all] Error 2

This is indicator-power from trunk on Gentoo Linux. Full build log attached.

Revision history for this message
Pim Vullers (pimvullers) wrote :
Revision history for this message
Pim Vullers (pimvullers) wrote :

This seems to be resolved with a newer glib. In that case the configure script should check for this (I had glib 2.32.4 now 2.33.6).

Revision history for this message
Sebastien Bacher (seb128) wrote :
Changed in indicator-power:
status: New → Fix Committed
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.