libgtop-2.0 includes glib/gmacros.h directly instead of only glib.h

Bug #405716 reported by ingegnerlillo on 2009-07-28
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
AllTray
Undecided
Unassigned
libgtop2 (Ubuntu)
Undecided
Unassigned

Bug Description

Trying to compile alltray 0.7.3 on ubuntu intrepid, I've got the following errors:

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] Error 1
make[3]: Leaving directory `/-myhomedir-/alltray-0.7.3dev/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/-myhomedir-/alltray-0.7.3dev/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/-myhomedir-/alltray-0.7.3dev'
make: *** [all] Error 2

some ideas?

Michael B. Trausch (mtrausch) wrote :

It looks like the headers for libgtop try to include glib/gmacros.h when it should only be including glib.h, so this would be a bug in Ubuntu. Will re-target this bug.

Changed in alltray:
status: New → Invalid
summary: - Error compiling alltray 0.7.3
+ libgtop-2.0 includes glib/gmacros.h directly instead of only glib.h

I download the source for libgtop 2.26.1 : http://linux.softpedia.com/get/Programming/Libraries/libgtop-15718.shtml
... and works.

thanks Michael!

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers