From: Cesare T. <nor...@al...> - 2007-07-31 15:41:33
|
Dear all, we have a failure to build from source in Ubuntu 7.10. This seems caused by c2hs chocking on the glib header file gmessages.h: . . . ./tools/c2hs/c2hsLocal +RTS -RTS -C-I/usr/include/glib-2.0 -C-I/usr/lib/glib-2.0/include --cppopts='-include "gtk2hs-config.h"' --precomp=glib/glib.precomp glib-object.h In file included from /usr/include/glib-2.0/glib/gthread.h:32, from /usr/include/glib-2.0/glib/gasyncqueue.h:30, from /usr/include/glib-2.0/glib.h:32, from /usr/include/glib-2.0/gobject/gtype.h:26, from /usr/include/glib-2.0/gobject/gboxed.h:26, from /usr/include/glib-2.0/glib-object.h:25: /usr/include/glib-2.0/glib/gutils.h:426:1: warning: "GLIB_CHECK_VERSION" redefined In file included from <command line>:1: ./gtk2hs-config.h:140:1: warning: this is the location of the previous definition c2hsLocal: Error in C header file. /usr/include/glib-2.0/glib/gmessages.h:106: (column 1) [FATAL] >>> Syntax error! The symbol `__attribute__' does not fit here. make[4]: *** [glib/glib.precomp] Error 1 make[4]: Leaving directory `/tmp/buildd/gtk2hs-0.9.11' . . . The relevant line in gmessages.h is: __attribute__((visibility("hidden"))) void _g_log_fallback_handler I'm wondering if you were already aware of this, apparently one of the changelog entry for 0.9.12 is: >>c2hs no longer chokes on some system headers (eg glibc-2.4) Any light you can shed will be highly appreciated. Cesare Bigmac wasn't an athlete. If there was an Olympic Sick Note event, he would've won the 100 metres I've Got Asthma, the half marathon Lurk in the Changing Rooms, and the freestyle Got to Go to the Doctor. (Johnny and the Bomb) |