
Stefan Behnel wrote:
Olivier Collioud wrote:
C:\Download\lxml-source\lxml-1.0.2>python setup.py bdist_wininst --static Building lxml version 1.0.2 C:\Program Files\Microsoft Visual Studio\VC98\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\soft\python23\libs /LIBPATH:C:\soft\python23\PCBui ld /EXPORT:initetree build\temp.win32-2.3\Release\src/lxml/etree.obj /OUT:build\lib.win32-2.3\lxml\etree.pyd /IMPLIB:build\temp.win32-2.3\Release\src/ lxml\etree.lib ..\libxml2-2.6.26.win32\lib\libxml2_a.lib ..\libxslt-1.1.17.win32\lib\libxslt_a.lib ..\libxslt-1.1.17.win32\lib\libexslt_a.lib ..\zlib- 1.2.3.win32\lib\zlib.lib ..\iconv-1.9.2.win32\lib\iconv_a.lib Creating library build\temp.win32-2.3\Release\src/lxml\etree.lib and object build\temp.win32-2.3\Release\src/lxml\etree.exp LINK : warning LNK4049: locally defined symbol "_xmlFree" imported LINK : warning LNK4049: locally defined symbol "_xsltDocDefaultLoader" imported LINK : warning LNK4049: locally defined symbol "_xsltLibxsltVersion" imported libxslt_a.lib(numbers.obj) : error LNK2001: unresolved external symbol __ftol2 libexslt_a.lib(date.obj) : error LNK2001: unresolved external symbol __ftol2 libexslt_a.lib(strings.obj) : error LNK2001: unresolved external symbol __ftol2 libexslt_a.lib(math.obj) : error LNK2001: unresolved external symbol __ftol2 libxml2_a.lib(xpath.obj) : error LNK2001: unresolved external symbol __ftol2 libxml2_a.lib(xpointer.obj) : error LNK2001: unresolved external symbol __ftol2 libxml2_a.lib(xmlschemastypes.obj) : error LNK2001: unresolved external symbol __ftol2 libxslt_a.lib(xsltutils.obj) : error LNK2001: unresolved external symbol __ftol2 build\lib.win32-2.3\lxml\etree.pyd : fatal error LNK1120: 1 unresolved externals error: command '"C:\Program Files\Microsoft Visual Studio\VC98\BIN\link.exe"' failed with exit status 1120
could be that libxml2/xslt/exslt were compiled with a newer compiler than the one you use.
Yup, that's it: http://www.mail-archive.com/openssl-users@openssl.org/msg31551.html http://www.issociate.de/board/post/9216/Compiling_with_VC6.html
So, try this:
If you want to try, you can compile libxml2 and libxslt also from source. Since you're building lxml statically anyway, that should be ok for your purpose.
Stefan