> I had this problem with a few apps not finding the
> macro "G_GNUC_INTERNAL". In my spec files I have
> either zero'd it in CPPFLAGS or CFLAGS to get apps
> built on my machine. This macro defines (in GCC) that
> the function is private to the library. Really, the
> definition these functions in gnome should be moved
> to a private header file, where external apps will
> not trip over them.
glib was recently patched (in 41c AFAIK) to define G_GNUC_INTERNAL for the Sun 
Studio compiler:
#define G_GNUC_INTERNAL __hidden

In modules that use the macro we had to change them like follows:
-void _gnome_ui_gettext_init (gboolean) G_GNUC_INTERNAL;
+G_GNUC_INTERNAL void _gnome_ui_gettext_init (gboolean);
i.e. move the macro to the front of the line.
We had to do this in gimp, gnome-vfs and libgnomeui (the patches have 'hidden' 
in the name if you want to view them).
 
 
This message posted from opensolaris.org

Reply via email to