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



Hi Igor,

Igor Zlatkovic wrote:
On 26/08/04 15:47, Stefan Kost wrote:

I have spend two more days,

at first there is a compatibillity issues in
libxslt-1.1.9/libxslt/security.c
it calls mkdir(path,mode);
on win32 using mingw there is mkdir(path) only and this required to
include
"io.h" and lining agains -lmsvcrt.


Are you sure about this? Mingw and MSVC use the same runtime, the
msvcrt. If Mingw has problems with a missing function, MSVC will have it
too. But MSVC can compile libxslt.

I'll try to isolate this and provide a patch as requested by Daniel ;-)

I now have dropped the -Wl,--add-stdcall-alias,--enable-stdcall-fixup'
from
CFLAGS as this seems to make no change.
When I use --no-undefined I can get in to 'make'. The I have to
uncomment the
'relink' command from the libexstl.la file. When I then do 'make
install' I get
a libexslt.dll as well.
Still xsltproc is crashing.

I have ported several unix packages to mingw myself. All I always had
to do, was
to get the includes and extras libs right. The approach in the win32
dir looks
different. Whats the reason for it? I looked at it, but was not be
able to
understand how this should automatically find out which libaries are
required
for linking.


If you need more than -liconv and -lz then there is something wrong with
your environment.

Other than that, go in the win32 subdirectory and run
  cscript configure.js help
for more info about the allready existing way to compile with Mingw.

I don't get this working. It does not use the installed libxml2.

../libxslt-1.1.9/win32> cscript configure.js crypto='no' zlib='yes'
compiler='mingw' prefix='/opt' include='/opt/include/libxml2' lib='/opt/lib'
Microsoft (R) Windows Script Host, Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. Alle Rechte vorbehalten.

libxslt version: 1.1.9
libexslt version: 0.8.7
Created Makefile.
Created config.h.

XSLT processor configuration
----------------------------
              Trio: no
  Debugging module: yes
  Memory debugging: no
  Debugger support: yes
         Use iconv: yes
         With zlib: yes
            Crypto: no

Win32 build configuration
-------------------------
          Compiler: mingw
     Debug symbols: no
   Static xsltproc: no
    Install prefix: E:/msys/opt
      Put tools in: $(PREFIX)\bin
    Put headers in: $(PREFIX)\include
Put static libs in: $(PREFIX)\lib
Put shared libs in: $(PREFIX)\lib
      Include path: E:/msys/opt/include/libxml2
          Lib path: E:/msys/opt/lib


[ensonic HOSHI]~/projects/libxslt-1.1.9/win32> make
gcc.exe -IE:/msys/gnuwin32/include -I/opt/include -fno-builtin -mno-cygwin
-mms-bitfields -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../libxslt
-IE:/msys/opt/include -DNDEBUG -O2  -MM ../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 ../libexslt/common.c ../libexslt/crypto.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
In file included from ../libxslt/libxslt.h:16,
                 from ../libxslt/attributes.c:13:
../config.h:89:31: warning: libxml/xmlversion.h: No such file or directory
In file included from ../libxslt/attributes.c:13:
../libxslt/libxslt.h:23:31: warning: libxml/xmlversion.h: No such file or directory

-- 
      \|/            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]