[desktop-discuss] Re: Latest MPlayer

Doug Scott dougs at truemail.co.th
Tue Jun 13 23:06:53 PDT 2006


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.

You could also stick the following in a header file somewhere -
 
/[i]*
 * Provide G_GNUC_INTERNAL that is used for marking library functions
 * as being used internally to the lib only, to not create inefficient PLT entries
 */
#if defined (__GNUC__) 
#define G_GNUC_INTERNAL __attribute((visibility("hidden")))
#else
#define G_GNUC_INTERNAL
#endif[/i]

Doug
 
> BAH!
> 
> Same problem I have when i just build from
> source.....
> 
> pkgbuild: /usr/include/glib-2.0/gobject/gtype.h:431:
> error: syntax error before "void"
> pkgbuild: /usr/include/glib-2.0/gobject/gtype.h:432:
> error: syntax error before "void"
> pkgbuild: /usr/include/glib-2.0/gobject/gtype.h:433:
> error: syntax error before "void"
> pkgbuild: /usr/include/glib-2.0/gobject/gtype.h:434:
> error: syntax error before "void"
> pkgbuild: /usr/include/glib-2.0/gobject/gtype.h:435:
> error: syntax error before "void"
> pkgbuild: /usr/include/glib-2.0/gobject/gtype.h:436:
> error: syntax error before "void"
> pkgbuild: /usr/include/glib-2.0/gobject/gtype.h:437:
> error: syntax error before "void"
> pkgbuild: /usr/include/glib-2.0/gobject/gtype.h:438:
> error: syntax error before "void"
> pkgbuild: /usr/include/glib-2.0/gobject/gtype.h:439:
> error: syntax error before "void"
> pkgbuild: interface.c: In function
> `gconvert_uri_to_filename':
> pkgbuild: interface.c:191: warning: passing arg 2 of
> `iconv' from incompatible pointer type
> pkgbuild: gmake[1]: *** [interface.o] Error 1
> pkgbuild: gmake[1]: Leaving directory
> `/jds/packages/BUILD/MPlayer-1.0pre8/Gui'
> pkgbuild: gmake: *** [Gui/libgui.a] Error 2
> pkgbuild: Bad exit status from
> /var/tmp/pkgbuild-tmp-2.802398 (%build)
> --- command output ends --- finished at Tue Jun 13
> 22:23:33 CDT 2006
 
 
This message posted from opensolaris.org



More information about the desktop-discuss mailing list