The problem is in the Python library, I guess. Former versions of expat 
consisted of libxmlparse and libxmltok libraries. The new version uses 
just libxmlparse.

Since Sablotron doesn't link any expat library, python has to care for it.

The Python extension is not updated for a while (its contributed code, 
not our own), it tries to link the old libraries.

Solution: find somewhere in python files '-lxmlparse -lxmltok' and 
replace it with 'lexpat'. It should work.

HTH

Pavel

Thomas Weholt wrote:

> Hi,
> 
>  
> 
> I'm using Sablotron on a Mandrake 8.0 linux box. I've done a 
> ./configure, make, make install on the latest expat, the same with 
> sablotron, now I'm trying to install Sab-Python/PySab etc. ( 
> python-bindings for Sablotron ) and cannot complete the process cuz it 
> cannot find the needed libraries; libxmlparse.so.0 and libxmltok.so.0.
> 
>  
> 
> Can anybody tell me what I'm doing wrong?
> 
>  
> 
> Small sample of my work :
> 
>  
> 
> 
> [root@mandrake Sab-pyth-0.51]# python setup.py  install
> running install
> running build
> running build_ext
> building 'Sablot' extension
> skipping Handlers.c (build/temp.linux-i686-2.0/Handlers.o up-to-date)
> skipping Processor.c (build/temp.linux-i686-2.0/Processor.o up-to-date)
> skipping Sablotmodule.c (build/temp.linux-i686-2.0/Sablotmodule.o 
> up-to-date)
> gcc -shared build/temp.linux-i686-2.0/Handlers.o 
> build/temp.linux-i686-2.0/Processor.o 
> build/temp.linux-i686-2.0/Sablotmodule.o -lsablot -lxmlparse -lxmltok -o 
> build/lib.linux-i686-2.0/Sablot.so
> /usr/bin/ld: cannot find -lxmlparse
> collect2: ld returned 1 exit status
> error: command 'gcc' failed with exit status 1
> [root@mandrake Sab-pyth-0.51]#
> 
>  
> 
> Any clues?
> 
>  
> 
> Thomas
> 



-- 
Pavel Hlavnicka
Ginger Alliance
www.gingerall.com

Reply via email to