Hi

I am trying to build xmlsec using MinGW/MSys. I have built (I think) all of the underlying libraries OK:

   OpenSSL: ALL TESTS SUCCESSFUL
LibXML2: 10 errors over 2,874 tests... but: "those ebcdic tests have never worked on Windows" LibXSLT: Tests seemed mostly successful - there didn't seem to be a summary

I am using the following configure (after a "make clean"):

./configure --prefix=/projects/xmlsec/xmlsec1-1.2.18 \
            --with-libxml-src=/projects/xmlsec/libxml2-2.9.0 \
            --with-libxslt-src=/projects/xmlsec/libxslt-1.1.27 \
            --with-openssl=/projects/xmlsec/openssl-1.0.1c \
            --host=i686-pc-winnt

Note that if I do not use the --host-i686-pc-winnt option I get a rather strange error from ./configure:

configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

Anyway, that completes OK, then I do:

make

Which eventually throws out:

libtool: link: warning: `e:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../..//libltdl
.la' seems to be moved

*** Warning: Trying to link with static lib archive /projects/xmlsec/openssl-1.0
.1c/lib/libcrypto.a.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because the file extensions .a of this argument makes me believe
*** that it is just a static archive that I should not use here.

Followed shortly by:

xmlsec.o: In function `xmlSecAppSignFile':
E:\MinGW\msys\1.0\projects\xmlsec\xmlsec1-1.2.18\apps/xmlsec.c:1250: undefined r
eference to `_imp__xmlSecDSigNs'
E:\MinGW\msys\1.0\projects\xmlsec\xmlsec1-1.2.18\apps/xmlsec.c:1250: undefined r
eference to `_imp__xmlSecNodeSignature'
xmlsec.o: In function `xmlSecAppVerifyFile':
E:\MinGW\msys\1.0\projects\xmlsec\xmlsec1-1.2.18\apps/xmlsec.c:1312: undefined r
eference to `_imp__xmlSecDSigNs'
E:\MinGW\msys\1.0\projects\xmlsec\xmlsec1-1.2.18\apps/xmlsec.c:1312: undefined r
eference to `_imp__xmlSecNodeSignature'
xmlsec.o: In function `xmlSecAppEncryptFile':
E:\MinGW\msys\1.0\projects\xmlsec\xmlsec1-1.2.18\apps/xmlsec.c:1618: undefined r
eference to `_imp__xmlSecEncNs'
E:\MinGW\msys\1.0\projects\xmlsec\xmlsec1-1.2.18\apps/xmlsec.c:1618: undefined r
eference to `_imp__xmlSecNodeEncryptedData'
xmlsec.o: In function `xmlSecAppDecryptFile':
E:\MinGW\msys\1.0\projects\xmlsec\xmlsec1-1.2.18\apps/xmlsec.c:1707: undefined r
eference to `_imp__xmlSecEncNs'
E:\MinGW\msys\1.0\projects\xmlsec\xmlsec1-1.2.18\apps/xmlsec.c:1707: undefined r
eference to `_imp__xmlSecNodeEncryptedData'
collect2: ld returned 1 exit status
make[2]: *** [xmlsec1.exe] Error 1
make[2]: Leaving directory `/projects/xmlsec/xmlsec1-1.2.18/apps'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/projects/xmlsec/xmlsec1-1.2.18'
make: *** [all] Error 2

Now I have built openssl-1.0.1c with the "shared" option passed to its "./config" and all appeared to be OK with that.

Adding the --enable-static-linking flag to my ./configure doesn't seem to make any difference.

Basically... what am I doing wrong here?

Thanks in advance.

Mike

_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec

Reply via email to