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

Bug #405716 reported by ingegnerlillo
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
AllTray
Invalid
Undecided
Unassigned
libgtop2 (Ubuntu)
New
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?

Revision history for this message
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
Revision history for this message
Reynaldo Matos Hortensi (lasanhadeberinjela) wrote :

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

Revision history for this message
Reynaldo Matos Hortensi (lasanhadeberinjela) wrote :

thanks Michael!

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.