mate-desktop/mate-power-manager — Issue #2: unknown type name ‘G_CONST_RETURN’
Author: samtygier
Created: 2011-12-28 12:24:46+00:00
State: open

I have a problem building mate-power-manager. it is not finding G_CONST_RETURN, which is deprecated define from GLIB.
https://mail.gnome.org/archives/commits-list/2011-June/msg03847.html

I think the problem is that fedora16 has a old version of libunique, missing this patch
http://git.gnome.org/browse/unique/commit/?id=03526f8d95910c207170391c1b6594905a71e4e9
so maybe this is not really Mate's fault

The makefile in src/ has` -DG_DISABLE_DEPRECATED` from somewhere. so maybe getting rid of that is the answer

````In file included from /usr/include/unique-1.0/unique/uniqueapp.h:26:0,
from /usr/include/unique-1.0/unique/unique.h:24,
from egg-unique.c:26:
/usr/include/unique-1.0/unique/uniquemessage.h:51:1: error: unknown type name ‘G_CONST_RETURN’
/usr/include/unique-1.0/unique/uniquemessage.h:51:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/include/unique-1.0/unique/uniquemessage.h:66:1: error: unknown type name ‘G_CONST_RETURN’
/usr/include/unique-1.0/unique/uniquemessage.h:66:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from /usr/include/unique-1.0/unique/unique.h:25:0,
from egg-unique.c:26:
/usr/include/unique-1.0/unique/uniquebackend.h:97:1: error: unknown type name ‘G_CONST_RETURN’
/usr/include/unique-1.0/unique/uniquebackend.h:97:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/include/unique-1.0/unique/uniquebackend.h:100:1: error: unknown type name ‘G_CONST_RETURN’
/usr/include/unique-1.0/unique/uniquebackend.h:100:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
make[3]: *** [egg-unique.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/mate/mate-power-manager/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/mate/mate-power-manager/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/mate/mate-power-manager'
make: *** [all] Error 2
````