Ticket #1101 (reopened defect)
parse error in c2hs in gobject.i
| Reported by: | guest | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | C2Hs (Gtk2Hs fork) | Version: | |
| Keywords: | locale | Cc: | jesusalbertosanchez@… |
Description
This problem was originally reported as a reply of #1099 but I think it's different.
I have the same problem compiling the development version in ubuntu 7.10 32bit with the official binary distribution of ghc 6.8.2, it seems that the problem is that c2hsLocan can't parse glib-objcet.i, i get the following message, trying to make the glib bindings:
./tools/c2hs/c2hsLocal +RTS -RTS -C-I/usr/include/glib-2.0 -C-I/usr/lib/glib-2.0/include --cppopts='-include"gtk2hsconfig.h"' --precomp=glib/glib.precomp glib-object.h En el fichero incluído de /usr/include/glib2.0/glib/gthread.h:32, de /usr/include/glib-2.0/glib/gasyncqueue.h:30, de /usr/include/glib-2.0/glib.h:32, de /usr/include/glib2.0/gobject/gtype.h:26, de /usr/include/glib-2.0/gobject/gboxed.h:26, de /usr/include/glib-2.0/glib-object.h:25: /usr/include/glib-2.0/glib/gutils.h:426:1: aviso: se redefinió "GLIB_CHECK_VERSION" En el fichero incluído de <línea deorden>:1: ./gtk2hs-config.h:179:1: aviso: esta es la ubicación de la definición previa c2hsLocal: Error in C header file. <interno>:1: (column 0) [FATAL] >>> Lexical error! The character '#' does not fit here. make[2]: *** [glib/glib.precomp] Error 1 make[2]: se sale del directorio '/home/alberto/tmp/gtk2hs' make[1]: *** glib/System/Glib/Types.hs] Error 2 make[1]: se sale del directorio `/home/alberto/tmp/gtk2hs'}}}
Attachments
Change History
Note: See
TracTickets for help on using
tickets.