Re: [lxml-dev] xml2 and xslt libraries
Hi Asif, Asif Iqbal wrote:
I could not compile . I attached the compile output called lxml.compile.out
Hmm, ok, first things first: 3MB log files are not quite the thing you should send to a mailing list. That's something for a) private e-mail and b) compressors like bzip2, which, BTW, compresses it to some 100K. That said, here's the relevant portions: ------------------------------------- Building lxml version 1.0.2 running build_ext building 'lxml.etree' extension gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/python2.4 -c src/lxml/etree.c -o build/temp.solaris-2.10-i86pc-2.4/src/lxml/etree.o -w -I/usr/local/include/libxml2 -I/usr/local/include/libxslt -I/usr/loc al/include/libexslt -I/usr/local/include/python2.4 -I/usr/include gcc -shared build/temp.solaris-2.10-i86pc-2.4/src/lxml/etree.o -o build/lib.solaris-2.10-i86pc-2.4/lxml/etree.so -L/usr/local/lib/python2.4 /usr/local/lib/libexslt.a /usr/local/lib/libxslt.a /usr/local/lib/libxml2.a -lz -lpthread -lsocket -lnsl -lm Text relocation remains referenced against symbol offset in file <unknown> 0x17 /usr/local/lib/libexslt.a(common.o) <unknown> 0xb6 /usr/local/lib/libexslt.a(common.o) <unknown> 0xe3 /usr/local/lib/libexslt.a(common.o) <unknown> 0x11c /usr/local/lib/libexslt.a(common.o) [...] fmod 0x7f3b /usr/local/lib/libxml2.a(xpath.o) fmod 0x8023 /usr/local/lib/libxml2.a(xpath.o) fmod 0x8c6c /usr/local/lib/libxml2.a(xpath.o) ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1 ------------------------------------- Hmmm, don't know where that comes from. I can see that you added quite a number of libraries and I don't think it's because there is one missing. Maybe someone else who has more experience with Solaris compilation than I do could help you here...
Looks like 1.0.2 needed a patch to
--- setup.py.orig Tue Jul 25 08:03:15 2006 +++ setup.py Tue Jul 25 08:03:29 2006 @@ -18,7 +18,7 @@ xslt_libs = [ ] result = (cflags, xslt_libs) - # return result + return result raise NotImplementedError, \ "Static build not configured, see doc/build.txt"
No, why? There is no standard configuration for static compilation, so you get an exception when you pass "--static" until you managed to a) read the docs and b) changed the static setup function accordingly. Stefan
participants (1)
-
Stefan Behnel