[lxml-dev] Can't build lxml sources - failure to link - Windows
Robert Dailey
rcdailey at gmail.com
Tue Jul 10 16:15:26 CEST 2007
Stefan,
Thank you very much for your reply. The articles you linked to me are an
interesting read, however I don't feel like they solve my problem. Perhaps
I'm a little bit confused on what the articles are suggesting. I'm still
stuck on what to do to fix this problem. In fact, I don't even know what the
problem is to begin with. I had a hard time relating my problems to the
topics discussed in the linked articles. Any further assistance would be
greatly appreciated. Thanks again for your reply.
On 7/10/07, Stefan Behnel <stefan_ml at behnel.de> wrote:
>
> Hi,
>
> Robert Dailey wrote:
> > I'm attempting to build LXML for windows. Below are details on the
> > linker errors I'm getting (the compile works fine). Anyone that can help
> > would be greatly appreciated. Thank you!
> [...]
> > C:\IT\SDK\lxml>python setup.py build -c mingw32 --static
> > Building lxml version 1.3.2
> > C:\Python25\lib\distutils\dist.py:263: UserWarning: Unknown distribution
> > option: 'zip_safe'
> > warnings.warn(msg)
> > running build
> > running build_py
> > running build_ext
> > building 'lxml.etree' extension
> > writing build\temp.win32-2.5\Release\src\lxml\etree.def
> > C:\mingw\bin\gcc.exe -mno-cygwin -shared -s
> > build\temp.win32-2.5\Release\src\lxml\etree.o build\temp
> > .win32-2.5\Release\src\lxml\etree.def -L..\libxml2\lib -L..\libxslt\lib
> > -L..\zlib\lib -L..\iconv\lib
> > "-LC:\Program Files\Microsoft Visual Studio 8\VC\lib"
> > -LC:\Python25\libs -LC:\Python25\PCBuild -lli
> > bxslt_a -llibexslt_a -llibxml2_a -liconv_a -lzlib -lWS2_32 -lpython25
> > -lmsvcr71 -o build\lib.win32-2
> > .5\lxml\etree.pyd
> [...]
> > ..\libxml2\lib\libxml2_a.lib(int.a.msvc
> /xpointer.obj):..\xpointer.c:(.text[_xmlXPtrStringRangeFuncti
> > on]+0x65): undefined reference to `_ftol2'
> > ..\libxml2\lib\libxml2_a.lib(int.a.msvc
> /xmlschemastypes.obj):..\xmlschemastypes:(.text[_xmlSchemaVal
> > idateDuration]+0x21c): undefined reference to `_ftol2'
> > ..\libxml2\lib\libxml2_a.lib(int.a.msvc
> /xmlschemastypes.obj):..\xmlschemastypes:(.text[_xmlSchemaVal
> [...]
> > idateDuration]+0x226): undefined reference to `_ftol2'
> > ..\iconv\lib\iconv_a.lib(iconv.obj
> ):./iconv.c:(.text[_libiconvlist]+0x9):
> > undefined reference to `_c
> > hkstk'
> > ..\zlib\lib\zlib.lib(gzio.obj):gzio.c:(.text[_gzprintf]+0x6): undefined
> > reference to `_chkstk'
> > collect2: ld returned 1 exit status
> > error: command 'gcc' failed with exit status 1
>
> See these:
>
> http://mail.gnome.org/archives/xml/2005-April/msg00028.html
> http://mail.gnome.org/archives/xml/2005-April/msg00042.html
>
> Stefan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/lxml-dev/attachments/20070710/f79a828d/attachment.htm
More information about the lxml-dev
mailing list