[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Building Sketch 0.7.11 under RH 8.0
From: |
Bernhard Herzog |
Subject: |
Re: Building Sketch 0.7.11 under RH 8.0 |
Date: |
14 Jan 2003 21:30:15 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 |
Paul Dickson <address@hidden> writes:
> I added the -I/usr/include/pygtk-2.0 to gcc's compilation options.
Since I apparently can't convince you that Sketch 0.7 won't work with
GTK2 you might want to try the Patch just I posted about :)
> Now I
> think I hit a bug is GCC 3.2. It won't allow the use of a define within a
> structure:
>
> In file included from /usr/include/pygtk-2.0/pygtk/pygtk.h:6,
> from _skgtkmodule.h:30,
> from _skgtkmodule.c:36:
> /usr/include/pygtk-2.0/pygobject.h:12: parse error before "GObject"
> /usr/include/pygtk-2.0/pygobject.h:17: parse error before '}' token
> /usr/include/pygtk-2.0/pygobject.h:25: parse error before "GType"
> /usr/include/pygtk-2.0/pygobject.h:27: parse error before '}' token
>
> The structure is (lines 10-17):
>
> typedef struct {
> PyObject_HEAD
> GObject *obj;
> gboolean hasref; /* the GObject owns this reference */
> PyObject *inst_dict; /* the instance dictionary -- must be last */
> PyObject *weakreflist; /* list of weak references */
> GSList *closures;
> } PyGObject;
>
> And PyObject_HEAD is defined as:
>
> #define PyObject_HEAD \
> int ob_refcnt; \
> struct _typeobject *ob_type;
>
> I wonder if RedHat used the shipped compiler to compile anything python
> related.
It seems unlikely that your GCC version can't handle this. It should
have had problems with most of the Python header files as well and with
many of the Sketch c-files that are compiled before _skgtkmodule.c.
The parse error could also mean that PyObject_HEAD simply isn't defined
at all. What messages were printed before the one above?
Bernhard
--
Intevation GmbH http://intevation.de/
Sketch http://sketch.sourceforge.net/
MapIt! http://www.mapit.de/