[xslt] Error when building libxslt using MinGW on Windows XP



Title: Message
Hi Igor (or anyone else that can help),
 
I'm fairly new to C although I have done much work using C++ on HP and Sun a few years ago. I'm now starting a personnal project and want to create a bridge between VisualWorks Smalltalk and libxslt, but before I begin I want to build the libxslt library from scratch. I'm currently using the MinGW compiler. I also ordered Microsoft's DDK as you suggest on your web site but it has not arrived yet. So I'm starting work anyway using MinGW. My problem is that when I attempt to build the xslt\win32 directory (extracted from xslt-cvs-snapshot.tar.gz) I get errors (see below). Can you please help me through this problem.
 
Thank you very much for your time,
Daniel
 
 
Installed packages:
-------------------------
2003-12-10  15:15    <DIR>          .
2003-12-10  15:15    <DIR>          ..
2003-12-03  16:39         1 318 372 iconv-1.9.1.win32.zip
2003-12-03  16:40         1 263 565 libxml2-2.6.2+.win32.zip
2003-12-03  16:40         1 300 651 libxml2-2.6.2.win32.zip
2003-12-03  16:21           731 604 libxmlsec-1.2.2.win32.zip
2003-12-03  16:14           335 494 libxslt-1.1.0.win32.zip
2003-12-03  16:33         2 044 310 openssl-0.9.7c.win32.zip
2003-12-03  16:14           704 733 xsldbg-3.1.7.win32.zip
2003-12-07  09:46         2 785 517 xslt-cvs-snapshot.tar.gz
2003-12-03  16:08            69 026 zlib-1.1.4.win32.zip
               9 File(s)     10 553 272 bytes
               2 Dir(s)  13 213 917 184 bytes free
 
Note: I installed the contents of the xslt-cvs-snapshot.tar.gz file in d:\projects\xslt and *.win32.zip files in the d:\projects\xslt\opt.
 
Contents of the config.mingw file:
--------------------------------------------
# .\config.mingw
# This file is generated automatically by configure.js.
 
LIBXSLT_MAJOR_VERSION=1
LIBXSLT_MINOR_VERSION=1
LIBXSLT_MICRO_VERSION=0
LIBEXSLT_MAJOR_VERSION=0
LIBEXSLT_MINOR_VERSION=8
LIBEXSLT_MICRO_VERSION=0
BASEDIR=..
XSLT_SRCDIR=..\libxslt
EXSLT_SRCDIR=..\libexslt
UTILS_SRCDIR=..\xsltproc
BINDIR=binaries
WITH_TRIO=0
WITH_DEBUG=1
WITH_MEM_DEBUG=0
WITH_DEBUGGER=1
WITH_ICONV=1
WITH_ZLIB=0
DEBUG=1
STATIC=0
PREFIX=d:\projects\xslt\opt
BINPREFIX=$(PREFIX)\bin
INCPREFIX=$(PREFIX)\include
LIBPREFIX=$(PREFIX)\lib
SOPREFIX=$(PREFIX)\lib
INCLUDE+=;d:\projects\xslt\opt\include
LIB+=;d:\projects\xslt\opt\lib
 
Build results:
-----------------
D:\Projects\xslt\win32>mingw32-make.exe
gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I..\libxslt -Id:\projects\xslt\opt\include -D_DEBUG -g -M ..\libxslt/attributes.c ..\libxslt/documents.c ..\libxslt/extensions.c ..\libxslt/extra.c ..\libxslt/functions.c ..\libxslt/imports.c ..\libxslt/keys.c ..\libxslt/namespaces.c ..\libxslt/numbers.c ..\libxslt/pattern.c ..\libxslt/preproc.c ..\libxslt/security.c ..\libxslt/templates.c ..\libxslt/transform.c ..\libxslt/variables.c ..\libxslt/xslt.c ..\libxslt/xsltutils.c > depends.mingw
gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I..\libxslt -Id:\projects\xslt\opt\include -D_DEBUG -g -M ..\libexslt/common.c ..\libexslt/date.c ..\libexslt/exslt.c ..\libexslt/functions.c ..\libexslt/math.c ..\libexslt/saxon.c ..\libexslt/sets.c ..\libexslt/strings.c ..\libexslt/dynamic.c >> depends.mingw
gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I..\libxslt -Id:\projects\xslt\opt\include -D_DEBUG -g -o libxslt.int/attributes.o -c ..\libxslt/attributes.c
gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I..\libxslt -Id:\projects\xslt\opt\include -D_DEBUG -g -o libxslt.int/documents.o -c ..\libxslt/documents.c
gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I..\libxslt -Id:\projects\xslt\opt\include -D_DEBUG -g -o libxslt.int/extensions.o -c ..\libxslt/extensions.c
gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I..\libxslt -Id:\projects\xslt\opt\include -D_DEBUG -g -o libxslt.int/extra.o -c ..\libxslt/extra.c
gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I..\libxslt -Id:\projects\xslt\opt\include -D_DEBUG -g -o libxslt.int/functions.o -c ..\libxslt/functions.c
gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I..\libxslt -Id:\projects\xslt\opt\include -D_DEBUG -g -o libxslt.int/imports.o -c ..\libxslt/imports.c
gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I..\libxslt -Id:\projects\xslt\opt\include -D_DEBUG -g -o libxslt.int/keys.o -c ..\libxslt/keys.c
gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I..\libxslt -Id:\projects\xslt\opt\include -D_DEBUG -g -o libxslt.int/namespaces.o -c ..\libxslt/namespaces.c
gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I..\libxslt -Id:\projects\xslt\opt\include -D_DEBUG -g -o libxslt.int/numbers.o -c ..\libxslt/numbers.c
gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I..\libxslt -Id:\projects\xslt\opt\include -D_DEBUG -g -o libxslt.int/pattern.o -c ..\libxslt/pattern.c
gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I..\libxslt -Id:\projects\xslt\opt\include -D_DEBUG -g -o libxslt.int/preproc.o -c ..\libxslt/preproc.c
gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I..\libxslt -Id:\projects\xslt\opt\include -D_DEBUG -g -o libxslt.int/security.o -c ..\libxslt/security.c
gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I..\libxslt -Id:\projects\xslt\opt\include -D_DEBUG -g -o libxslt.int/templates.o -c ..\libxslt/templates.c
gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I..\libxslt -Id:\projects\xslt\opt\include -D_DEBUG -g -o libxslt.int/transform.o -c ..\libxslt/transform.c
gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I..\libxslt -Id:\projects\xslt\opt\include -D_DEBUG -g -o libxslt.int/variables.o -c ..\libxslt/variables.c
gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I..\libxslt -Id:\projects\xslt\opt\include -D_DEBUG -g -o libxslt.int/xslt.o -c ..\libxslt/xslt.c
gcc.exe -Wl,-L,binaries -Wl,-L,d:\projects\xslt\opt\lib  -shared -Wl,--dll -Wl,--out-implib,binaries/libxslt.lib -Wl,--major-image-version,1 -Wl,--minor-image-version,1 -o binaries/libxslt.dll libxslt.int/attributes.o libxslt.int/documents.o libxslt.int/extensions.o libxslt.int/extra.o libxslt.int/functions.o libxslt.int/imports.o libxslt.int/keys.o libxslt.int/namespaces.o libxslt.int/numbers.o libxslt.int/pattern.o libxslt.int/preproc.o libxslt.int/security.o libxslt.int/templates.o libxslt.int/transform.o libxslt.int/variables.o libxslt.int/xslt.o libxslt.int/xsltutils.o -lwsock32 -llibxml2
Info: resolving _xmlMalloc by linking to __imp__xmlMalloc (auto-import)
Info: resolving _xmlFree by linking to __imp__xmlFree (auto-import)
Info: resolving _xmlIsBaseCharGroup by linking to __imp__xmlIsBaseCharGroup (auto-import)
Info: resolving _xmlIsDigitGroup by linking to __imp__xmlIsDigitGroup (auto-import)
Info: resolving _xmlIsCombiningGroup by linking to __imp__xmlIsCombiningGroup (auto-import)
Info: resolving _xmlIsExtenderGroup by linking to __imp__xmlIsExtenderGroup (auto-import)
Info: resolving _xmlRealloc by linking to __imp__xmlRealloc (auto-import)
Creating library file: binaries/libxslt.lib
libxslt.int/transform.o(.text+0x6d): In function `templPush':
D:/Projects/xslt/win32/../libxslt/transform.c:98: undefined reference to `xmlGenericErrorContext'
libxslt.int/transform.o(.text+0x72):D:/Projects/xslt/win32/../libxslt/transform.c:98: undefined reference to `xmlGenericError'
libxslt.int/transform.o(.text+0xd9):D:/Projects/xslt/win32/../libxslt/transform.c:109: undefined reference to `xmlGenericErrorContext'
libxslt.int/transform.o(.text+0xde):D:/Projects/xslt/win32/../libxslt/transform.c:109: undefined reference to `xmlGenericError'
libxslt.int/transform.o(.text+0x1fb): In function `varsPush':
D:/Projects/xslt/win32/../libxslt/transform.c:159: undefined reference to `xmlGenericErrorContext'
libxslt.int/transform.o(.text+0x200):D:/Projects/xslt/win32/../libxslt/transform.c:159: undefined reference to `xmlGenericError'
libxslt.int/transform.o(.text+0x267):D:/Projects/xslt/win32/../libxslt/transform.c:170: undefined reference to `xmlGenericErrorContext'
libxslt.int/transform.o(.text+0x26c):D:/Projects/xslt/win32/../libxslt/transform.c:170: undefined reference to `xmlGenericError'
libxslt.int/transform.o(.text+0x38f): In function `profPush':
D:/Projects/xslt/win32/../libxslt/transform.c:219: undefined reference to `xmlGenericErrorContext'
libxslt.int/transform.o(.text+0x394):D:/Projects/xslt/win32/../libxslt/transform.c:219: undefined reference to `xmlGenericError'
libxslt.int/transform.o(.text+0x404):D:/Projects/xslt/win32/../libxslt/transform.c:229: undefined reference to `xmlGenericErrorContext'
libxslt.int/transform.o(.text+0x409):D:/Projects/xslt/win32/../libxslt/transform.c:229: undefined reference to `xmlGenericError'
libxslt.int/transform.o(.text+0x6fd): In function `xsltNewTransformContext':
D:/Projects/xslt/win32/../libxslt/transform.c:363: undefined reference to `xmlGenericErrorContext'
libxslt.int/transform.o(.text+0x702):D:/Projects/xslt/win32/../libxslt/transform.c:363: undefined reference to `xmlGenericError'
libxslt.int/transform.o(.text+0x88b):D:/Projects/xslt/win32/../libxslt/transform.c:404: undefined reference to `xmlGenericErrorContext'
libxslt.int/transform.o(.text+0x890):D:/Projects/xslt/win32/../libxslt/transform.c:404: undefined reference to `xmlGenericError'
libxslt.int/xslt.o(.text+0x8c): In function `exclPrefixPush':
D:/Projects/xslt/win32/../libxslt/xslt.c:95: undefined reference to `xmlGenericErrorContext'
libxslt.int/xslt.o(.text+0x91):D:/Projects/xslt/win32/../libxslt/xslt.c:95: undefined reference to `xmlGenericError'
libxslt.int/xslt.o(.text+0x110):D:/Projects/xslt/win32/../libxslt/xslt.c:106: undefined reference to `xmlGenericErrorContext'
libxslt.int/xslt.o(.text+0x115):D:/Projects/xslt/win32/../libxslt/xslt.c:106: undefined reference to `xmlGenericError'
libxslt.int/xslt.o(.text+0x981): In function `xsltAllocateExtraCtxt':
D:/Projects/xslt/win32/../libxslt/xslt.c:416: undefined reference to `xmlGenericErrorContext'
libxslt.int/xslt.o(.text+0x986):D:/Projects/xslt/win32/../libxslt/xslt.c:416: undefined reference to `xmlGenericError'
libxslt.int/xslt.o(.text+0xa79):D:/Projects/xslt/win32/../libxslt/xslt.c:434: undefined reference to `xmlGenericErrorContext'
libxslt.int/xslt.o(.text+0xa7e):D:/Projects/xslt/win32/../libxslt/xslt.c:434: undefined reference to `xmlGenericError'
libxslt.int/xslt.o(.text+0xfc3): In function `xsltGetInheritedNsList':
D:/Projects/xslt/win32/../libxslt/xslt.c:574: undefined reference to `xmlGenericErrorContext'
libxslt.int/xslt.o(.text+0xfc8):D:/Projects/xslt/win32/../libxslt/xslt.c:574: undefined reference to `xmlGenericError'
libxslt.int/xslt.o(.text+0x1095):D:/Projects/xslt/win32/../libxslt/xslt.c:593: undefined reference to `xmlGenericErrorContext'
libxslt.int/xslt.o(.text+0x109a):D:/Projects/xslt/win32/../libxslt/xslt.c:593: undefined reference to `xmlGenericError'
libxslt.int/xsltutils.o(.text+0x27e5): In function `xsltTimestamp':
D:/Projects/xslt/win32/../libxslt/xsltutils.c:1458: undefined reference to `gettimeofday'
libxslt.int/xsltutils.o(.text+0x280b):D:/Projects/xslt/win32/../libxslt/xsltutils.c:1461: undefined reference to `gettimeofday'
libxslt.int/xsltutils.o(.text+0x2828):D:/Projects/xslt/win32/../libxslt/xsltutils.c:1465: undefined reference to `gettimeofday'
mingw32-make.exe: *** [binaries/libxslt.dll] Error 1
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]