majorde n00b

Joined: 12 Jun 2007 Posts: 3
|
Posted: Fri Jan 11, 2008 6:37 am Post subject: gnome overlay: glib issues |
|
|
I added the gnome overlay via layman and began to update my gnome packages to the development versions, including an updated version of glib, but some of the packages are failing (evolution, control-center and some others) with errors similar to this
| Code: | In file included from camel-arg.c:29:
camel-arg.h:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'enum'
camel-arg.c:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
make[3]: *** [camel-arg.lo] Error 1
|
Looking at the files in question I was able to determine that the G_BEGIN_DECLS and G_END_DECLS macros were not being defined. On further investigation I found that some make files were including the glib-1.2 include directory before the glib-2.0 directory on the command line in some places, causing glib include directives to grab the 1.2 glib.h which doesn't define the macros.
My work-around for this is installing as many things as will install normally, then unmerging glib-1.2, installing the packages with this issue, and then reinstalling glib-1.2. It seems to work, but I can't imagine it's the best way to go.
Does anyone know of a simple way that I can disable glib-1.2 or mark glib-2.0 as being preferred so the 2.0 glib.h is always selected when it's needed? |
|