[xml] build problem with libxslt-1.1.9 on mingw/win32



hi hi,

since a while I try to build my own xml/xslt lib on mingw. libxml2-2.6.11 works,
but libxslt cases probelms when linking. I like to get a shared build with dlls.

I am using these additinal setting for the compiler and linker
export CFLAGS='-mno-cygwin -mms-bitfields
-Wl,--add-stdcall-alias,--enable-stdcall-fixup'
export LDFLAGS="-export-dynamic -L/gnuwin32/lib -L/opt/lib -lwsock32 -lgw32c
-lole32 -luuid"

That is my configure line for libxslt
./configure '--prefix=/opt' '--host=mingw32' '--build=mingw32'
'--target=mingw32' '--enable-static' '--enable-shared' '--with-gnu-ld'

make runs fine. before running 'make install' I have to uncomment the relink
line from 'libexslt/libexstl.la'. When running 'make install' then I get errors
like :

xsltproc.o(.text+0x1c0d):xsltproc.c: undefined reference to
`_imp__exsltLibraryVersion'
xsltproc.o(.text+0x1c14):xsltproc.c: undefined reference to
`_imp__xsltEngineVersion'
xsltproc.o(.text+0x1c54):xsltproc.c: undefined reference to
`_imp__xsltLibxmlVersion'
xsltproc.o(.text+0x1c5b):xsltproc.c: undefined reference to
`_imp__xsltLibxsltVersion'
xsltproc.o(.text+0x1c72):xsltproc.c: undefined reference to
`_imp__exsltLibxmlVersion'
xsltproc.o(.text+0x1c79):xsltproc.c: undefined reference to
`_imp__exsltLibexsltVersion'
xsltproc.o(.text+0x2571):xsltproc.c: undefined reference to `_imp__xsltMaxDepth'
../libexslt/.libs/libexslt.a(common.o)(.text+0xe8):common.c: undefined reference
to `_imp__xsltGenericError'
../libexslt/.libs/libexslt.a(common.o)(.text+0xf3):common.c: undefined reference
to `_imp__xsltGenericErrorContext'
../libexslt/.libs/libexslt.a(common.o)(.text+0x291):common.c: undefined
reference to `_imp__xsltGenericError'
../libexslt/.libs/libexslt.a(common.o)(.text+0x29b):common.c: undefined
reference to `_imp__xsltGenericErrorContext'
../libexslt/.libs/libexslt.a(math.o)(.text+0x13f):math.c: undefined reference to
`_imp__xsltGenericError'
../libexslt/.libs/libexslt.a(math.o)(.text+0x149):math.c: undefined reference to
`_imp__xsltGenericErrorContext'
../libexslt/.libs/libexslt.a(functions.o)(.text+0x49):functions.c: undefined
reference to `_imp__xsltGenericDebug'

... and so on. Wenn adding '-no-undefined' to the cflags make install works, but
the resulting xsltproc crashes when doing something beyond --help.
The problem seems to be already on the library level, as my own app (which runns
fine on solaris/linux crashes when e.g. loading a stylesheet on win32.
So I guess I need to get it to work without '-no-undefined' as this only irnores
the problem.
Any ideas?

Stefan
-- 
      \|/            Stefan Kost
     <@ @>           private            business
+-oOO-(_)-OOo------------------------------------------------------ - - -  -   -
|       __  Address  Simildenstr. 5     HTWK Leipzig, Fb IMN, Postfach 301166
|      ///           04277 Leipzig      04251 Leipzig
| __  ///            Germany            Germany
| \\\///    Phone    +49341 2253538     +49341 30766101
|  \__/     EMail    st_kost_at_gmx.net kost_at_imn.htwk-leipzig.de
|           WWW      www.sonicpulse.de  www.imn.htwk-leipzig.de/~kost/about.html
===-=-=--=---=---------------------------------- - - -  -    -

Attachment: kost.vcf
Description: Vcard



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