[XML-SIG] Don't get the PyXML package installed

Joachim Werner joachim.werner@iuveno.de
Mon, 4 Sep 2000 12:30:02 +0200


Hello!

I don't succeed in compiling the PyXML package on SuSE 6.4. This is the output
of the setup.py script:


zope@promotor:~/PyXML-0.5.5 > python setup.py build

Executing 'build' action...

Running command: make -f Makefile.pre.in boot
rm -f *.o *~
rm -f `find . -name '*.pyc'`
rm -f `find . -name '*.o'`
rm -f `find . -name '*~'`
cd expat ; make clean
make[1]: Entering directory `/home/zope/PyXML-0.5.5/extensions/expat'
rm -f xmltok/xmltok.o xmltok/xmlrole.o xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlparse/xmlparse.o xmlparse/hashtable.o xmlwf/unixfilem
ap.o xmlwf/xmlwf
make[1]: Leaving directory `/home/zope/PyXML-0.5.5/extensions/expat'
rm -f *.a tags TAGS config.c Makefile.pre python sedscript
rm -f *.so *.sl so_locations
cd expat ; make clobber
make[1]: Entering directory `/home/zope/PyXML-0.5.5/extensions/expat'
rm -f xmltok/xmltok.o xmltok/xmlrole.o xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlparse/xmlparse.o xmlparse/hashtable.o xmlwf/unixfilem
ap.o xmlwf/xmlwf
rm -f libexpat.a
make[1]: Leaving directory `/home/zope/PyXML-0.5.5/extensions/expat'
VERSION=`python -c "import sys; print sys.version[:3]"`; \
installdir=`python -c "import sys; print sys.prefix"`; \
exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \
make -f ./Makefile.pre.in VPATH=. srcdir=. \
        VERSION=$VERSION \
        installdir=$installdir \
        exec_installdir=$exec_installdir \
        Makefile
make[1]: Entering directory `/home/zope/PyXML-0.5.5/extensions'
sed -n \
 -e '1s/.*/1i\\/p' \
 -e '2s%.*%# Generated automatically from Makefile.pre.in by sedscript.%p' \
 -e '/^VERSION=/s/^VERSION=[    ]*\(.*\)/s%@VERSION[@]%\1%/p' \
 -e '/^CC=/s/^CC=[      ]*\(.*\)/s%@CC[@]%\1%/p' \
 -e '/^CCC=/s/^CCC=[    ]*\(.*\)/s%#@SET_CCC[@]%CCC=\1%/p' \
 -e '/^LINKCC=/s/^LINKCC=[      ]*\(.*\)/s%@LINKCC[@]%\1%/p' \
 -e '/^SGI_ABI=/s/^SGI_ABI=[    ]*\(.*\)/s%@SGI_ABI[@]%\1%/p' \
 -e '/^OPT=/s/^OPT=[    ]*\(.*\)/s%@OPT[@]%\1%/p' \
 -e '/^LDFLAGS=/s/^LDFLAGS=[    ]*\(.*\)/s%@LDFLAGS[@]%\1%/p' \
 -e '/^LDLAST=/s/^LDLAST=[      ]*\(.*\)/s%@LDLAST[@]%\1%/p' \
 -e '/^DEFS=/s/^DEFS=[  ]*\(.*\)/s%@DEFS[@]%\1%/p' \
 -e '/^LIBS=/s/^LIBS=[  ]*\(.*\)/s%@LIBS[@]%\1%/p' \
 -e '/^LIBM=/s/^LIBM=[  ]*\(.*\)/s%@LIBM[@]%\1%/p' \
 -e '/^LIBC=/s/^LIBC=[  ]*\(.*\)/s%@LIBC[@]%\1%/p' \
 -e '/^RANLIB=/s/^RANLIB=[      ]*\(.*\)/s%@RANLIB[@]%\1%/p' \
 -e '/^MACHDEP=/s/^MACHDEP=[    ]*\(.*\)/s%@MACHDEP[@]%\1%/p' \
 -e '/^SO=/s/^SO=[      ]*\(.*\)/s%@SO[@]%\1%/p' \
 -e '/^LDSHARED=/s/^LDSHARED=[  ]*\(.*\)/s%@LDSHARED[@]%\1%/p' \
 -e '/^prefix=/s/^prefix=\(.*\)/s%^prefix=.*%prefix=\1%/p' \
 -e '/^exec_prefix=/s/^exec_prefix=\(.*\)/s%^exec_prefix=.*%exec_prefix=\1%/p' \
 /usr/local/lib/python1.5/config/Makefile >sedscript
echo "/^#@SET_CCC@/d" >>sedscript
echo "/^installdir=/s%=.*%=     /usr/local%" >>sedscript
echo "/^exec_installdir=/s%=.*%=/usr/local%" >>sedscript
echo "/^srcdir=/s%=.*%=         .%" >>sedscript
echo "/^VPATH=/s%=.*%=          .%" >>sedscript
echo "/^LINKPATH=/s%=.*%=       %" >>sedscript
echo "/^BASELIB=/s%=.*%=        %" >>sedscript
echo "/^BASESETUP=/s%=.*%=      %" >>sedscript
sed -f sedscript ./Makefile.pre.in >Makefile.pre
cp ./Setup.in Setup
/usr/local/lib/python1.5/config/makesetup \
         -m Makefile.pre -c /usr/local/lib/python1.5/config/config.c.in Setup -n  /usr/local/lib/python1.5/config/Setup
make -f Makefile do-it-again
make[2]: Entering directory `/home/zope/PyXML-0.5.5/extensions'
/usr/local/lib/python1.5/config/makesetup \
         -m Makefile.pre -c /usr/local/lib/python1.5/config/config.c.in Setup -n  /usr/local/lib/python1.5/config/Setup
make[2]: Leaving directory `/home/zope/PyXML-0.5.5/extensions'
make[1]: Leaving directory `/home/zope/PyXML-0.5.5/extensions'
 
Running command: make
gcc -fpic  -Iexpat/xmlparse -g -O2 -I/usr/local/include/python1.5 -I/usr/local/include/python1.5 -DHAVE_CONFIG_H -c ./pyexpat.c
In file included from /usr/include/errno.h:36,
                 from /usr/local/include/python1.5/Python.h:59,
                 from ./pyexpat.c:32:
/usr/include/bits/errno.h:25: linux/errno.h: Datei oder Verzeichnis nicht gefunden
In file included from /usr/include/bits/posix1_lim.h:126,
                 from /usr/include/limits.h:30,
                 from /usr/lib/gcc-lib/i486-suse-linux/2.95.2/include/limits.h:117,
                 from /usr/lib/gcc-lib/i486-suse-linux/2.95.2/include/syslimits.h:7,
                 from /usr/lib/gcc-lib/i486-suse-linux/2.95.2/include/limits.h:11,
                 from /usr/local/include/python1.5/longobject.h:58,
                 from /usr/local/include/python1.5/Python.h:76,
                 from ./pyexpat.c:32:
/usr/include/bits/local_lim.h:27: linux/limits.h: Datei oder Verzeichnis nicht gefunden
make: *** [pyexpat.o] Error 1
Traceback (innermost last):
  File "setup.py", line 185, in ?
    func()
  File "setup.py", line 155, in build_unix
    shutil.copy('extensions/' + filename, 'build/xml/parsers/')
  File "/usr/local/lib/python1.5/shutil.py", line 52, in copy
    copyfile(src, dst)
  File "/usr/local/lib/python1.5/shutil.py", line 17, in copyfile
    fsrc = open(src, 'rb')
IOError: [Errno 2] Datei oder Verzeichnis nicht gefunden: 'extensions/pyexpat.so'    


I suppose that some stuff in the /usr/include/bits directory is missing, but I
don't know enough about Linux/gcc to fix it myself. These are the critical
lines from the above output:

/usr/include/bits/errno.h:25: linux/errno.h: Datei oder Verzeichnis nicht
gefunden

/usr/include/bits/local_lim.h:27: linux/limits.h: Datei oder Verzeichnis nicht gefunden


Could you please give me a hint? A hint where I can find a working binary of
PyXML would be cool, too (I need it for a Zope product called "NewsCenter"!)

Thanks!

Joachim.


-- 
Iuveno - Smart Communication


Joachim Werner


_________________________________________

Marie-Curie-Straße 6
85055 Ingolstadt

Tel.: +49 841/90 14-325 (Fax -322)
Mobil: +49 179/39 60 327
E-Mail: joachim.werner@iuveno.de/joachim.werner@iuveno-net.de
WWW: www.iuveno.de/www.iuveno-net.de