[PyPy-issue] [issue625] compilation errors building pygtk-2.17.0 against pypy: fileno, PySys_SetArgv, PyTuple_GetSlice, PyOS_InputHook

Dave Malcolm pypy-dev-issue at codespeak.net
Mon Jan 24 22:15:51 CET 2011


New submission from Dave Malcolm <dmalcolm at redhat.com>:

Attempting to build pygtk-2.17.0 with PYTHON=pypy

I had to workaround issue 620 in order to get things to configure (see that issue).

Upon doing that, the compilation fails with these errors (most of pygtk comes from autogenerated .c code; 
.override 
contains hand-coded .c code for some specialcases).

(Is it better for me to file these individually, rather than by target extension module?)

./gtk.override: In function '_loop':
./gtk.override:119: warning: implicit declaration of function 'fileno'

   118      /* Watch for input on stdin */
>>>119      channel = g_io_channel_unix_new(fileno(stdin));
   120      g_io_add_watch(channel, G_IO_IN, _main_quit, NULL);
   121      g_io_channel_unref(channel);

./gtk.override: In function '_wrap_gtk_dialog_add_buttons':
./gtk.override:2758: warning: implicit declaration of function 'PyTuple_GetSlice'
./gtk.override:2758: warning: initialization makes pointer from integer without a cast

>>>2758          PyObject *curr_args = PyTuple_GetSlice(args, i, i + 2);


./gtk.override: In function '_wrap_gtk_init_check':
./gtk.override:446: warning: implicit declaration of function 'PySys_SetArgv'

>>> 446          PySys_SetArgv(argc, argv);


./gtk.override: In function '_wrap_set_interactive':
./gtk.override:464: error: 'PyOS_InputHook' undeclared (first use in this function)
./gtk.override:464: error: (Each undeclared identifier is reported only once
./gtk.override:464: error: for each function it appears in.)
   457  static PyObject *
   458  _wrap_set_interactive(PyGObject *self, PyObject *args)
   459  {
   460      int flag = 1;
   461      if (!PyArg_ParseTuple(args, "|i", &flag)) return NULL;
   462      if (flag)
   463      {
>>>464          if (PyOS_InputHook == NULL) {
   465              PyOS_InputHook = _loop;
   466          }
   467          else if (PyOS_InputHook != _loop)
   468              PyErr_Warn(PyExc_RuntimeWarning, "PyOS_InputHook is not available for interactive use of 
PyGTK");
   469      }

----------
effort: ???
messages: 2068
nosy: dmalcolm, pypy-issue
priority: bug
release: ???
status: unread
title: compilation errors building pygtk-2.17.0 against pypy: fileno, PySys_SetArgv, PyTuple_GetSlice, PyOS_InputHook

_______________________________________________________
PyPy development tracker <pypy-dev-issue at codespeak.net>
<https://codespeak.net/issue/pypy-dev/issue625>
_______________________________________________________



More information about the Pypy-issue mailing list