python 2.3 z devel zepsuty inklud?

Piotr Szymański djurban w averne.net
Pon, 19 Maj 2003, 17:54:54 CEST


Hi,
Wiem ze python z devel ma 0.1 release ale mysle ze to w niczym nie przeszkadza 
zeby spojrzec chociaz na taki jeden blad w koffice:
/usr/include/python2.3/object.h:343: error: parse error before `;' token

Linijka ta wyglada tak:
typedef struct _heaptypeobject {
        /* Note: there's a dependency on the order of these members
           in slotptr() in typeobject.c . */
        PyTypeObject type;
        PyNumberMethods as_number;
        PyMappingMethods as_mapping;
        PySequenceMethods as_sequence; /* as_sequence comes after as_mapping,
                                          so that the mapping wins when both
                                          the mapping and the sequence define
                                          a given operator (e.g. __getitem__).
                                          see add_operators() in typeobject.c 
. */
        PyBufferProcs as_buffer;
343:        PyObject *name, *slots;
        /* here are optional user slots, followed by the members. */
} PyHeapTypeObject;


Pelny log:
-----------
source='kivio_py_stencil.cpp' object='kivio_py_stencil.lo' libtool=yes \
depfile='.deps/kivio_py_stencil.Plo' tmpdepfile='.deps/kivio_py_stencil.TPlo' 
\
depmode=gcc3 /bin/sh ../../../admin/depcomp \
/bin/sh ../../../libtool --silent --mode=compile --tag=CXX 
athlon-pld-linux-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. 
-I../../../kivio/kiviopart -I../../../kivio/kiviopart/tklib 
-I../../../lib/kofficeui -I../../../lib/kofficeui -I../../../lib/kofficecore 
-I../../../lib/kofficecore -I../../../lib/store -I../../../lib/store 
-I../../../lib/kwmf -I../../../lib/kwmf -I../../../lib/kopainter 
-I../../../lib/kopainter -I../../../lib/kotext -I../../../lib/kotext 
-I/usr/include/qt -I/usr/X11R6/include  -I/usr/include/python2.3  
-DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef 
-Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi 
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts 
-DNDEBUG -DNO_DEBUG -O2 -D_GNU_SOURCE -O3 -march=athlon -fno-check-new 
-Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new 
-fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT  -c -o 
kivio_py_stencil.lo `test -f 'kivio_py_stencil.cpp' || echo 
'./'`kivio_py_stencil.cpp
In file included from /usr/include/python2.3/Python.h:8,
                 from kivio_py_stencil.h:35,
                 from kivio_py_stencil.cpp:2:
/usr/include/python2.3/pyconfig.h:829:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/string.h:26,
                 from /usr/include/qt/qcstring.h:46,
                 from /usr/include/qt/qstring.h:42,
                 from /usr/include/qt/qwindowdefs.h:44,
                 from /usr/include/qt/qfont.h:42,
                 from kivio_stencil.h:22,
                 from kivio_py_stencil.h:27,
                 from kivio_py_stencil.cpp:2:
/usr/include/features.h:131:1: warning: this is the location of the previous 
definition
In file included from /usr/include/python2.3/Python.h:69,
                 from kivio_py_stencil.h:35,
                 from kivio_py_stencil.cpp:2:
/usr/include/python2.3/object.h:344: error: parse error before `;' token
kivio_py_stencil.cpp: In constructor `KivioPyStencil::KivioPyStencil()':
kivio_py_stencil.cpp:53: warning: deprecated conversion from string constant 
to
   `char*'
kivio_py_stencil.cpp:65: warning: deprecated conversion from string constant 
to
   `char*'
kivio_py_stencil.cpp: In member function `virtual bool
   KivioPyStencil::loadXML(const QDomElement&)':
kivio_py_stencil.cpp:114: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp:116: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp: In member function `virtual QDomElement
   KivioPyStencil::saveXML(QDomDocument&)':
kivio_py_stencil.cpp:188: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp:190: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp:192: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp: In member function `virtual void
   KivioPyStencil::rescaleShapes(PyObject*)':
kivio_py_stencil.cpp:282: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp:289: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp:296: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp:303: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp:310: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp:317: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp:299: warning: unused variable `PyObject*o_y2'
kivio_py_stencil.cpp: In member function `virtual KivioStencil*
   KivioPyStencil::duplicate()':
kivio_py_stencil.cpp:359: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp:361: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp:363: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp: In member function `virtual void
   KivioPyStencil::paint(KivioIntraStencilData*, bool)':
kivio_py_stencil.cpp:475: warning: passing `double' for argument 1 of `virtual
   void KivioPainter::drawText(int, int, int, int, int, const QString&)'
kivio_py_stencil.cpp:475: warning: passing `double' for argument 2 of `virtual
   void KivioPainter::drawText(int, int, int, int, int, const QString&)'
kivio_py_stencil.cpp:475: warning: passing `double' for argument 3 of `virtual
   void KivioPainter::drawText(int, int, int, int, int, const QString&)'
kivio_py_stencil.cpp:475: warning: passing `double' for argument 4 of `virtual
   void KivioPainter::drawText(int, int, int, int, int, const QString&)'
kivio_py_stencil.cpp:440: warning: unused variable `double x2'
kivio_py_stencil.cpp:441: warning: unused variable `double y2'
kivio_py_stencil.cpp: In member function `virtual void
   KivioPyStencil::setStyle(KivioIntraStencilData*, PyObject*, int&)':
kivio_py_stencil.cpp:807: warning: passing `double' for argument 1 of `void
   QFont::setPointSize(int)'
kivio_py_stencil.cpp:813: warning: passing `double' for argument 1 of `void
   QFont::setPointSize(int)'
kivio_py_stencil.cpp: In member function `virtual void
   KivioPyStencil::setFGColor(QColor)':
kivio_py_stencil.cpp:869: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp: In member function `virtual void
   KivioPyStencil::setBGColor(QColor)':
kivio_py_stencil.cpp:884: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp: In member function `virtual void
   KivioPyStencil::setTextColor(QColor)':
kivio_py_stencil.cpp:899: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp: In member function `virtual void
   KivioPyStencil::setLineWidth(double)':
kivio_py_stencil.cpp:914: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp: In member function `virtual void
   KivioPyStencil::setText(const QString&)':
kivio_py_stencil.cpp:922: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp: In member function `virtual void
   KivioPyStencil::setTextFont(const QFont&)':
kivio_py_stencil.cpp:944: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp:945: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp:946: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp:947: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp:948: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp: In member function `virtual void
   KivioPyStencil::setHTextAlign(int)':
kivio_py_stencil.cpp:1008: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp: In member function `virtual void
   KivioPyStencil::setVTextAlign(int)':
kivio_py_stencil.cpp:1013: warning: deprecated conversion from string constant
   to `char*'
kivio_py_stencil.cpp: In member function `virtual KivioConnectorTarget*
   KivioPyStencil::connectToTarget(KivioConnectorPoint*, int)':
kivio_py_stencil.cpp:688: warning: unused parameter `int targetID'
make: *** [kivio_py_stencil.lo] Błąd 1
[djurban w niedakh kiviosdk]$
----------------
-- 
Piotr Szymanski
djurban w averne.net



Więcej informacji o liście dyskusyjnej pld-devel-pl