Can't compile 0.36.2

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't compile 0.36.2

Curtis Maloney

System:
        Debian testing

I have installed Python2.4, and the associated Pyrex, as well as changing the
sym-link for /usr/bin/pyrex to use the 2.4 version.  Debian seems reluctant to
embrace Python 2.4 as yet... perhaps there's more things I need to change?

I get the following error after an otherwise uneventful build from "./configure
--enable-python":

make[3]: Entering directory `/home/curtis/src/dbus-0.36.2/python'
pyrexc ./dbus_bindings.pyx -I. -o ./dbus_bindings.c
/home/curtis/src/dbus-0.36.2/python/./dbus_bindings.pxd:95:45: Expected ')'
/home/curtis/src/dbus-0.36.2/python/./dbus_bindings.pyx:183:20: Syntax error in
C variable declaration
make[3]: [dbus_bindings.c] Error 1 (ignored)
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
-I./.. -I./../dbus  -I/usr/include/python2.4 -DDBUS_COMPILATION=1
-DDBUS_API_SUBJECT_TO_CHANGE=1   -g -O2 -Wall -Wchar-subscripts
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith
-Wcast-align -Wfloat-equal -Wsign-compare -MT dbus_bindings.lo -MD -MP -MF
".deps/dbus_bindings.Tpo" -c -o dbus_bindings.lo dbus_bindings.c; \
then mv -f ".deps/dbus_bindings.Tpo" ".deps/dbus_bindings.Plo"; else rm -f
".deps/dbus_bindings.Tpo"; exit 1; fi
  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./.. -I./../dbus -I/usr/include/python2.4
-DDBUS_COMPILATION=1 -DDBUS_API_SUBJECT_TO_CHANGE=1 -g -O2 -Wall
-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs
-Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -MT dbus_bindings.lo
-MD -MP -MF .deps/dbus_bindings.Tpo -c dbus_bindings.c  -fPIC -DPIC -o
.libs/dbus_bindings.o
gcc: dbus_bindings.c: No such file or directory
gcc: no input files
make[3]: *** [dbus_bindings.lo] Error 1

So, two questions:
        1) why is pyrex complaining?
        2) why is the error being ignored?

--
Curtis Maloney
[hidden email]
_______________________________________________
dbus mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/dbus
Reply | Threaded
Open this post in threaded view
|

Re: Can't compile 0.36.2

John Palmieri-2
What version of Pyrex?  You need the latest plus a patch if you are
compiling with GCC4.0.  Pyrex for some reason ignores errors and keeps
on going.

On Tue, 2005-08-30 at 10:22 +1000, Curtis Maloney wrote:

> System:
> Debian testing
>
> I have installed Python2.4, and the associated Pyrex, as well as changing the
> sym-link for /usr/bin/pyrex to use the 2.4 version.  Debian seems reluctant to
> embrace Python 2.4 as yet... perhaps there's more things I need to change?
>
> I get the following error after an otherwise uneventful build from "./configure
> --enable-python":
>
> make[3]: Entering directory `/home/curtis/src/dbus-0.36.2/python'
> pyrexc ./dbus_bindings.pyx -I. -o ./dbus_bindings.c
> /home/curtis/src/dbus-0.36.2/python/./dbus_bindings.pxd:95:45: Expected ')'
> /home/curtis/src/dbus-0.36.2/python/./dbus_bindings.pyx:183:20: Syntax error in
> C variable declaration
> make[3]: [dbus_bindings.c] Error 1 (ignored)
> if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
> -I./.. -I./../dbus  -I/usr/include/python2.4 -DDBUS_COMPILATION=1
> -DDBUS_API_SUBJECT_TO_CHANGE=1   -g -O2 -Wall -Wchar-subscripts
> -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith
> -Wcast-align -Wfloat-equal -Wsign-compare -MT dbus_bindings.lo -MD -MP -MF
> ".deps/dbus_bindings.Tpo" -c -o dbus_bindings.lo dbus_bindings.c; \
> then mv -f ".deps/dbus_bindings.Tpo" ".deps/dbus_bindings.Plo"; else rm -f
> ".deps/dbus_bindings.Tpo"; exit 1; fi
>   gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./.. -I./../dbus -I/usr/include/python2.4
> -DDBUS_COMPILATION=1 -DDBUS_API_SUBJECT_TO_CHANGE=1 -g -O2 -Wall
> -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs
> -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -MT dbus_bindings.lo
> -MD -MP -MF .deps/dbus_bindings.Tpo -c dbus_bindings.c  -fPIC -DPIC -o
> .libs/dbus_bindings.o
> gcc: dbus_bindings.c: No such file or directory
> gcc: no input files
> make[3]: *** [dbus_bindings.lo] Error 1
>
> So, two questions:
> 1) why is pyrex complaining?
> 2) why is the error being ignored?
>
> --
> Curtis Maloney
> [hidden email]
> _______________________________________________
> dbus mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/dbus
--
John (J5) Palmieri <[hidden email]>

_______________________________________________
dbus mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/dbus
Reply | Threaded
Open this post in threaded view
|

Re: Can't compile 0.36.2

Curtis Maloney
John (J5) Palmieri wrote:
> What version of Pyrex?  You need the latest plus a patch if you are
> compiling with GCC4.0.

Current version in Debian unstable:

Pyrex version 0.9.3
gcc version 3.4.5 20050821 (prerelease) (Debian 3.4.4-8)

> Pyrex for some reason ignores errors and keeps on going.

 From what I see, it's make that's ignoring the error -

>>make[3]: [dbus_bindings.c] Error 1 (ignored)

--
Curtis Maloney
[hidden email]
_______________________________________________
dbus mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/dbus
Reply | Threaded
Open this post in threaded view
|

Re: Can't compile 0.36.2

John Palmieri-2
Ok then something is wrong when generating the dbus_bindings.pxd file.
Can you send that to me?  Thanks.

On Tue, 2005-08-30 at 10:59 +1000, Curtis Maloney wrote:

> John (J5) Palmieri wrote:
> > What version of Pyrex?  You need the latest plus a patch if you are
> > compiling with GCC4.0.
>
> Current version in Debian unstable:
>
> Pyrex version 0.9.3
> gcc version 3.4.5 20050821 (prerelease) (Debian 3.4.4-8)
>
> > Pyrex for some reason ignores errors and keeps on going.
>
>  From what I see, it's make that's ignoring the error -
>
> >>make[3]: [dbus_bindings.c] Error 1 (ignored)
>
> --
> Curtis Maloney
> [hidden email]
--
John (J5) Palmieri <[hidden email]>

_______________________________________________
dbus mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/dbus
Reply | Threaded
Open this post in threaded view
|

Re: Can't compile 0.36.2

John Palmieri-2
Interesting, in your install it is not picking up size_t and defining
it.  Mine reads like this:

ctypedef unsigned int size_t

We basically spider dbus_h_wrapper.h to generate all the defines we will
need.  We use the c preprocessor to do a lot of this so if the standard
include directories are not in your default include path this might be
the cause of your problems.

On Mon, 2005-08-29 at 21:18 -0400, John (J5) Palmieri wrote:

> Ok then something is wrong when generating the dbus_bindings.pxd file.
> Can you send that to me?  Thanks.
>
> On Tue, 2005-08-30 at 10:59 +1000, Curtis Maloney wrote:
> > John (J5) Palmieri wrote:
> > > What version of Pyrex?  You need the latest plus a patch if you are
> > > compiling with GCC4.0.
> >
> > Current version in Debian unstable:
> >
> > Pyrex version 0.9.3
> > gcc version 3.4.5 20050821 (prerelease) (Debian 3.4.4-8)
> >
> > > Pyrex for some reason ignores errors and keeps on going.
> >
> >  From what I see, it's make that's ignoring the error -
> >
> > >>make[3]: [dbus_bindings.c] Error 1 (ignored)
> >
> > --
> > Curtis Maloney
> > [hidden email]
--
John (J5) Palmieri <[hidden email]>

_______________________________________________
dbus mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/dbus