[desktop-discuss] Re: Latest MPlayer

Damien Carbery damien.carbery at sun.com
Tue Jul 4 02:11:38 PDT 2006


> I just did a fresh install of build 42, and
> glibconfig.h
> unconditionally defines G_GNUC_INTERNAL to
> __hidden:
> 
> #define G_GNUC_INTERNAL __hidden
> 
> Apparently, nothing that links to glib can be built 
> using GCC, which makes life extremely problematic.

This was corrected in build 44:
#if defined(__SUNPRO_C) || (__SUNPRO_C >= 0x550)
#define G_GNUC_INTERNAL __hidden
#else
#define G_GNUC_INTERNAL
#endif

> In addition, glib/gmessages.h makes use of this
> #define without including glibconfig.h.  So open
> source
> packages which fail to include <glibconfig.h> first
> fail to compile (the one I was trying simply did an
> include of glib-object.h).
On my machine with build 44, /usr/include/glib-2.0/glib/gmessages.h begins with:
  #include <stdarg.h>
  #include <glib/gtypes.h>
  #include <glib/gmacros.h>
and /usr/include/glib-2.0/glib/gtypes.h has:
  #include <glibconfig.h>

I got the following to compile:
  #include <glib-object.h>  /* Yes, a single line. */
with the command line:
  cc -c -I /usr/include/glib-2.0 -I /usr/lib/glib-2.0 -I /usr/lib/glib-2.0/include just-glib-object.c

> This all came from an attempt to build inkscape,
> which IMHO should be shipped wherever the
> GIMP is shipped.  I had it working on build 40
> by linking against blastwave packages, but the
> current JDS components don't seem very
> cooperative.
If you get inkscape to build I'd be happy to include the spec file in our svn repository.
A while back I made a few attempts to get it to build.
 
 
This message posted from opensolaris.org



More information about the desktop-discuss mailing list