Installing Pirxx1.2

Ravi ravi_b_m at yahoo.com
Mon Dec 8 11:46:46 EST 2003


Hi All,
          I am trying to build and install pirxx1.2 on Redhat Linux8.0
and am getting error while building pirxx1.2 from source. I has
installed Pyxml-0.8.3 and xerces-c-src2_4_0. Could somebody help me as
to what I am doing wrong ??

  Following is the error message I get:

python setup.py build
*** PIRXX for Xerces v2.4.0
running build
running build_py
creating build
creating build/lib.linux-i686-2.2
creating build/lib.linux-i686-2.2/pirxx
copying pirxx/__init__.py -> build/lib.linux-i686-2.2/pirxx
copying pirxx/drv_xerces.py -> build/lib.linux-i686-2.2/pirxx
copying pirxx/version.py -> build/lib.linux-i686-2.2/pirxx
running build_ext
building 'pirxx._pirxx' extension
creating build/temp.linux-i686-2.2
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
-I/homes/mamidrx/xerces-c-src2_4_0/src -I/usr/local/include/python2.2
-c src/PirxxLocator.cpp -o build/temp.linux-i686-2.2/PirxxLocator.o
In file included from src/PirxxLocator.cpp:8:
src/PirxxLocator.h:15:34: util/PlatformUtils.hpp: No such file or
directory
In file included from src/PirxxLocator.h:18,
                 from src/PirxxLocator.cpp:8:
src/PirxxUtil.h:20:34: util/PlatformUtils.hpp: No such file or
directory
In file included from src/PirxxLocator.h:18,
                 from src/PirxxLocator.cpp:8:
src/PirxxUtil.h:35: looser throw specifier for `virtual
   PirxxException::~PirxxException()'
/usr/include/c++/3.2/exception:54:   overriding `virtual
   std::exception::~exception() throw ()'
src/PirxxUtil.h:120: parse error before `*' token
src/PirxxUtil.h:121: parse error before `*' token
src/PirxxUtil.h:122: parse error before `*' token
src/PirxxUtil.h:125: parse error before `*' token
src/PirxxUtil.h:132: parse error before `*' token
In file included from src/PirxxLocator.cpp:8:
src/PirxxLocator.h:49: parse error before `*' token
src/PirxxLocator.cpp:16:27: sax/Locator.hpp: No such file or directory
src/PirxxLocator.cpp:26: array size missing in
`PirxxSAX2Locator_Methods'
src/PirxxLocator.cpp: In function `PyObject*
   PirxxSAX2Locator_getColumnNumber(PirxxSAX2Locator*, PyObject*)':
src/PirxxLocator.cpp:101: invalid use of undefined type `struct
Locator'
src/PirxxLocator.h:20: forward declaration of `struct Locator'
src/PirxxLocator.cpp: In function `PyObject*
   PirxxSAX2Locator_getLineNumber(PirxxSAX2Locator*, PyObject*)':
src/PirxxLocator.cpp:110: invalid use of undefined type `struct
Locator'
src/PirxxLocator.h:20: forward declaration of `struct Locator'
src/PirxxLocator.cpp: In function `PyObject*
   PirxxSAX2Locator_getPublicId(PirxxSAX2Locator*, PyObject*)':
src/PirxxLocator.cpp:122: ISO C++ forbids declaration of `XMLCh' with
no type
src/PirxxLocator.cpp:122: uninitialized const `XMLCh'
src/PirxxLocator.cpp:122: parse error before `*' token
src/PirxxLocator.cpp:123: `pubid' undeclared (first use this function)
src/PirxxLocator.cpp:123: (Each undeclared identifier is reported only
once for
   each function it appears in.)
src/PirxxLocator.cpp:122: warning: unused variable `const int XMLCh'
src/PirxxLocator.cpp: In function `PyObject*
   PirxxSAX2Locator_getSystemId(PirxxSAX2Locator*, PyObject*)':
src/PirxxLocator.cpp:140: ISO C++ forbids declaration of `XMLCh' with
no type
src/PirxxLocator.cpp:140: uninitialized const `XMLCh'
src/PirxxLocator.cpp:140: parse error before `*' token
src/PirxxLocator.cpp:141: `sysid' undeclared (first use this function)
src/PirxxLocator.cpp:146: invalid use of undefined type `struct
Locator'
src/PirxxLocator.h:20: forward declaration of `struct Locator'
src/PirxxLocator.cpp:140: warning: unused variable `const int XMLCh'
src/PirxxLocator.cpp: At global scope:
src/PirxxLocator.cpp:150: redefinition of `PyMethodDef
   PirxxSAX2Locator_Methods[]'
src/PirxxLocator.cpp:26: `PyMethodDef PirxxSAX2Locator_Methods[1]'
previously
   declared here
src/PirxxLocator.cpp:185: array size missing in
`PirxxExcLocator_Methods'
src/PirxxLocator.cpp:285: redefinition of `PyMethodDef
   PirxxExcLocator_Methods[]'
src/PirxxLocator.cpp:185: `PyMethodDef PirxxExcLocator_Methods[1]'
previously
   declared here
src/PirxxLocator.cpp:296: parse error before `*' token
src/PirxxLocator.cpp: In function `PirxxObject
PirxxExcLocator_New(...)':
src/PirxxLocator.cpp:313: `line' undeclared (first use this function)
src/PirxxLocator.cpp:314: `col' undeclared (first use this function)
/usr/include/c++/3.2/streambuf: At top level:
src/PirxxLocator.cpp:150: warning: `PyMethodDef
PirxxSAX2Locator_Methods[5]'
   defined but not used
src/PirxxLocator.cpp:285: warning: `PyMethodDef
PirxxExcLocator_Methods[5]'
   defined but not used
error: command 'gcc' failed with exit status 1


Thanks in advance.
Ravi.




More information about the Python-list mailing list