problem with python binding?

John (J5) Palmieri johnp at redhat.com
Mon May 24 06:36:51 PDT 2004


What version of Pyrex are you using?  Also can you give me the lines
surrounding line 412 in your
/var/tmp/portage/dbus-cvs-0.21.99/work/dbus-cvs/python/dbus_bindings.pyx
file.  That file is generated at compile time.

On Fri, 2004-05-21 at 02:01, Toby Smith wrote:
> Hi,
> I recently checked out dbus from cvs and it gives the
> following error when compiling:
> 
> > pyrexc dbus_bindings.pyx
> > /var/tmp/portage/dbus-cvs-0.21.99/work/dbus-cvs/python/dbus_bindings.pyx:412:56: C function declaration not allowed here
> > make: [dbus_bindings.c] Error 1 (ignored)
> > if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../glib  -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -I/usr/include/python2.3  -DDBUS_API_SUBJECT_TO_CHANGE=1   -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -MT dbus_bindings.lo -MD -MP -MF ".deps/dbus_bindings.Tpo" \
> >   -c -o dbus_bindings.lo `test -f 'dbus_bindings.c' || echo './'`dbus_bindings.c; \
> > then mv -f ".deps/dbus_bindings.Tpo" ".deps/dbus_bindings.Plo"; \
> > else rm -f ".deps/dbus_bindings.Tpo"; exit 1; \
> > fi
> > rm -f .libs/dbus_bindings.lo
> > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../glib -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/python2.3 -DDBUS_API_SUBJECT_TO_CHANGE=1 -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -MT dbus_bindings.lo -MD -MP -MF .deps/dbus_bindings.Tpo -c ./dbus_bindings.c  -fPIC -DPIC -o dbus_bindings.o
> > gcc: ./dbus_bindings.c: No such file or directory
> > gcc: no input files
> > make: *** [dbus_bindings.lo] Error 1
> 
> - Toby Smith
-- 
John (J5) Palmieri
Associate Software Engineer
Desktop Group
Red Hat, Inc.
Blog: http://martianrock.com




More information about the dbus mailing list