[Scribus] Problem compiling cvs on Slack 9.1

Simon Munton simon
Sat Oct 25 20:08:53 CEST 2003


Hi,

I just tried building Scribus from cvs (25 Oct) on my Slackware 9.1 system. 
The first problem I had was with finding the Python header files. Slack 9.1 
has Python 2.3.1 installed, and configure only checks for 2.2 and below.

I got round this by adding a check for 2.3 in admin/acinclude.m4.in and 
rerunning make -f Makefile.dist.

The second problem came when compiling:

In file included from /usr/include/python2.3/Python.h:69,
                 from cmddialog.h:4,
                 from cmddialog.cpp:2:
/usr/include/python2.3/object.h:343: syntax error before `;' token
make[5]: *** [cmddialog.lo] Error 1

The line in question in object.h is in the declaration of PyHeapTypeObject:
        PyObject *name, *slots;

Python.h is being included after the QT headers; qt #defines slots to be 
nothing; the compiler sees:
	PyObject *name, *;

and reports a syntax error.
As a quick fix, I added a #undef slots before every include of Python.h
Scribus then compiled OK

Simon




More information about the scribus mailing list