[pygtk] 2.15.1 build error on Solaris
Jedy Wang
Jedy.Wang at Sun.COM
Fri Sep 18 13:05:45 WST 2009
Hi Pietro,
It's not in .py files. It's in .override file. Please refer to line 157
of http://git.gnome.org/cgit/pygtk/tree/gtk/gtk.override.
Thanks,
Jedy
On Fri, 2009-09-18 at 06:45 +0200, Pietro Battiston wrote:
> Il giorno ven, 18/09/2009 alle 10.40 +0800, Jedy Wang ha scritto:
> > Does anyone has any idea?
>
> I really don't know much of what you're talking for, and sorry if what I
> write it trivial to you, but "import * as * for *" doesn't exist in
> python syntax (certainly not 2.x, and it also gives SyntaxError in
> python 3.0.1).
>
> Pietro
>
>
>
> > Thanks,
> >
> > Jedy
> > On Thu, 2009-09-17 at 15:47 +0800, Jedy Wang wrote:
> > > Hi all,
> > >
> > > I tried to build pygtk 2.15.1 on Solaris and encountered the following
> > > error:
> > >
> > > "./gtk.override", line 7549: warning: argument #3 is incompatible with prototype:
> > > prototype: pointer to pointer to const char : "/usr/include/gtk-2.0/gtk/gtkrecentmanager.h", line 187
> > > argument : pointer to pointer to char
> > > "gtk.c", line 105225: warning: initializer does not fit or is out of range: -1
> > > "gtkbuilder.override", line 258: warning: initializer does not fit or is out of range: -1
> > > "gtk.c", line 123323: undefined symbol: PyGMountOperation_Type
> > > cc: acomp failed for gtk.c
> > >
> > > I checked gtk.c at line 123323 and it's
> > >
> > > pygobject_register_class(d, "GtkMountOperation", GTK_TYPE_MOUNT_OPERATION, &PyGtkMountOperation_Type, Py_BuildValue("(O)", &PyGMountOperation_Type));
> > >
> > > So it seems the problem is cased by lacking definition of
> > > PyGMountOperation_Type which should be defined in pygobject. I am not
> > > familiar with pygtk. I guess codegen.py uses some .defs files to
> > > generate gtk.c and because GMountOperation is used by
> > > gtk-2.14-types.defs so it's also used in generated gtk.c. I tried to
> > > edit gtk.override to change
> > > import gio.MountOperation as PyGMountOperation_Type for GMountOperation
> > > to
> > > import gio.MountOperation as PyGMountOperation_Type
> > > . And the problem is gone. I do not know what import * as * for * means.
> > > So I am not sure if this is a correct fix.
> > >
> > > Regards,
> > >
> > > Jedy
> > >
> > > _______________________________________________
> > > pygtk mailing list pygtk at daa.com.au
> > > http://www.daa.com.au/mailman/listinfo/pygtk
> > > Read the PyGTK FAQ: http://faq.pygtk.org/
> >
> >
> > _______________________________________________
> > pygtk mailing list pygtk at daa.com.au
> > http://www.daa.com.au/mailman/listinfo/pygtk
> > Read the PyGTK FAQ: http://faq.pygtk.org/
>
More information about the pygtk
mailing list