AllTray fails to build with an error from glibtop.h

Created by Michael B. Trausch on on 2009-09-04
Keywords:
Last updated by:
Michael B. Trausch on on 2009-09-04

Older versions of glibtop include files from glib that glib considers to be private. Newer versions of glib throw an error when this happens. The only (reasonable) solution is to update your copy of glibtop. glibtop as it is in Ubuntu 9.04 (Jaunty) and the to-be-released 9.10 (Karmic) are known to work.

This build error looks like this:

In file included from /usr/include/libgtop-2.0/glibtop.h:25,
                 from gtop_glue.c:10:
/usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."
make[3]: ** [gtop_glue.o] Erro 1
make[3]: Saindo do diretório `/home/reynaldo/alltray/alltray-0.7.3dev/src'
make[2]: ** [all] Erro 2
make[2]: Saindo do diretório `/home/reynaldo/alltray/alltray-0.7.3dev/src'
make[1]: ** [all-recursive] Erro 1
make[1]: Saindo do diretório `/home/reynaldo/alltray/alltray-0.7.3dev'
make: ** [all] Erro 2