[lxml-dev] Can't build lxml sources - failure to link - Windows
Robert Dailey
rcdailey at gmail.com
Tue Jul 10 06:34:16 CEST 2007
Hi,
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!
Here is my modified paths in the setup.py file:
STATIC_INCLUDE_DIRS = [
"..\\libxml2\\include",
"..\\libxslt\\include",
"..\\zlib\\include",
"..\\iconv\\include"
]
STATIC_LIBRARY_DIRS = [
"..\\libxml2\\lib",
"..\\libxslt\\lib",
"..\\zlib\\lib",
"..\\iconv\\lib",
"C:\\Program Files\\Microsoft Visual Studio 8\\VC\\lib"
]
STATIC_CFLAGS = []
I get the following output in the command line (note the first line is the
line I typed in):
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
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib"
/DEFAULTLIB:"ws2_32.lib" /DEFAULTLI
B:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib"
/DEFAULTLIB:"advapi32.lib" /DEFAULT
LIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib"
/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"O
LDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib"
/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"O
LDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib"
/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"O
LDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib"
/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"O
LDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
..\libxslt\lib\libxslt_a.lib(int.xslta.msvc
/xsltutils.obj):..\libxslt\xsltuti:(.text[_xsltTimestamp]
+0xa5): undefined reference to `_ftol2'
..\libxslt\lib\libxslt_a.lib(int.xslta.msvc
/numbers.obj):..\libxslt\numbers:(.text[_xsltNumberFormat
Decimal]+0x9c): undefined reference to `_ftol2'
..\libxslt\lib\libxslt_a.lib(int.xslta.msvc
/numbers.obj):..\libxslt\numbers:(.text[_xsltNumberFormat
Alpha]+0x4b): undefined reference to `_ftol2'
..\libxslt\lib\libxslt_a.lib(int.xslta.msvc
/numbers.obj):..\libxslt\numbers:(.text[_xsltNumberFormat
]+0x6): undefined reference to `_chkstk'
..\libxslt\lib\libexslt_a.lib(int.exslta.msvc
/date.obj):..\libexslt\date.c:(.text[_exsltDateParseDur
ation]+0x226): undefined reference to `_ftol2'
..\libxslt\lib\libexslt_a.lib(int.exslta.msvc
/date.obj):..\libexslt\date.c:(.text[_exsltDateParseDur
ation]+0x230): undefined reference to `_ftol2'
..\libxslt\lib\libexslt_a.lib(int.exslta.msvc
/date.obj):..\libexslt\date.c:(.text[_exsltDateFormatDu
ration]+0x119): undefined reference to `_ftol2'
..\libxslt\lib\libexslt_a.lib(int.exslta.msvc
/date.obj):..\libexslt\date.c:(.text[_exsltDateFormatDu
ration]+0x175): undefined reference to `_ftol2'
..\libxslt\lib\libexslt_a.lib(int.exslta.msvc
/date.obj):..\libexslt\date.c:(.text[_exsltDateFormatDu
ration]+0x213): undefined reference to `_ftol2'
..\libxslt\lib\libexslt_a.lib(int.exslta.msvc
/date.obj):..\libexslt\date.c:(.text[_exsltDateFormatDu
ration]+0x28a): more undefined references to `_ftol2' follow
..\libxml2\lib\libxml2_a.lib(int.a.msvc/encoding.obj):..\encoding.c:(.text[_xmlByteConsumed]+0x6):
u
ndefined reference to `_chkstk'
..\libxml2\lib\libxml2_a.lib(int.a.msvc
/valid.obj):..\valid.c:(.text[_xmlValidBuildContentModel]+0x6
): undefined reference to `_chkstk'
..\libxml2\lib\libxml2_a.lib(int.a.msvc
/valid.obj):..\valid.c:(.text[_xmlValidateElementContent]+0x6
): undefined reference to `_chkstk'
..\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
/xpointer.obj):..\xpointer.c:(.text[_xmlXPtrStringRangeFuncti
on]+0x9d): undefined reference to `_ftol2'
..\libxml2\lib\libxml2_a.lib(int.a.msvc
/debugXML.obj):..\debugXML.c:(.text[_xmlCtxtDumpElemDecl]+0x6
): undefined reference to `_chkstk'
..\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'
..\libxml2\lib\libxml2_a.lib(int.a.msvc
/xmlschemastypes.obj):..\xmlschemastypes:(.text[_xmlSchemaCom
pareDurations]+0x2f): undefined reference to `_ftol2'
..\libxml2\lib\libxml2_a.lib(int.a.msvc
/xmlschemastypes.obj):..\xmlschemastypes:(.text[__xmlSchemaDa
teAdd]+0xfe): undefined reference to `_ftol2'
..\libxml2\lib\libxml2_a.lib(int.a.msvc
/xmlschemastypes.obj):..\xmlschemastypes:(.text[__xmlSchemaDa
teAdd]+0x120): undefined reference to `_ftol2'
..\libxml2\lib\libxml2_a.lib(int.a.msvc
/xmlschemastypes.obj):..\xmlschemastypes:(.text[__xmlSchemaDa
teAdd]+0x171): more undefined references to `_ftol2' follow
..\libxml2\lib\libxml2_a.lib(int.a.msvc
/nanohttp.obj):..\nanohttp.c:(.text[_xmlNanoHTTPReadLine]+0x6
): undefined reference to `_chkstk'
..\libxml2\lib\libxml2_a.lib(int.a.msvc/nanoftp.obj):..\nanoftp.c:(.text[_xmlNanoFTPList]+0x6):
unde
fined reference to `_chkstk'
..\libxml2\lib\libxml2_a.lib(int.a.msvc/nanoftp.obj):..\nanoftp.c:(.text[_xmlNanoFTPGet]+0x6):
undef
ined reference to `_chkstk'
..\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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/lxml-dev/attachments/20070709/c89306aa/attachment-0001.htm
More information about the lxml-dev
mailing list