<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#3333FF">
<font face="Arial">Hi<br>
<br>
I am trying to build xmlsec using MinGW/MSys. I have built (I
think) all of the underlying libraries OK:<br>
<br>
OpenSSL: ALL TESTS SUCCESSFUL<br>
LibXML2: 10 errors over 2,874 tests... but: "those ebcdic tests
have never worked on Windows"<br>
LibXSLT: Tests seemed mostly successful - there didn't seem to
be a summary<br>
<br>
I am using the following configure (after a "make clean"):<br>
<br>
./configure --prefix=/projects/xmlsec/xmlsec1-1.2.18 \<br>
--with-libxml-src=/projects/xmlsec/libxml2-2.9.0 \<br>
--with-libxslt-src=/projects/xmlsec/libxslt-1.1.27 \<br>
--with-openssl=/projects/xmlsec/openssl-1.0.1c \<br>
--host=i686-pc-winnt<br>
<br>
Note that if I do not use the --host-i686-pc-winnt option I get a
rather strange error from ./configure:<br>
<br>
configure: error: cannot run C compiled programs.<br>
If you meant to cross compile, use `--host'.<br>
See `config.log' for more details<br>
<br>
Anyway, that completes OK, then I do:<br>
<br>
make<br>
<br>
Which eventually throws out:<br>
<br>
libtool: link: warning:
`e:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../..//libltdl<br>
.la' seems to be moved<br>
<br>
*** Warning: Trying to link with static lib archive
/projects/xmlsec/openssl-1.0<br>
.1c/lib/libcrypto.a.<br>
*** I have the capability to make that library automatically link
in when<br>
*** you link to this library. But I can only do this if you have
a<br>
*** shared version of the library, which you do not appear to have<br>
*** because the file extensions .a of this argument makes me
believe<br>
*** that it is just a static archive that I should not use here.<br>
<br>
Followed shortly by:<br>
<br>
xmlsec.o: In function `xmlSecAppSignFile':<br>
E:\MinGW\msys\1.0\projects\xmlsec\xmlsec1-1.2.18\apps/xmlsec.c:1250:
undefined r<br>
eference to `_imp__xmlSecDSigNs'<br>
E:\MinGW\msys\1.0\projects\xmlsec\xmlsec1-1.2.18\apps/xmlsec.c:1250:
undefined r<br>
eference to `_imp__xmlSecNodeSignature'<br>
xmlsec.o: In function `xmlSecAppVerifyFile':<br>
E:\MinGW\msys\1.0\projects\xmlsec\xmlsec1-1.2.18\apps/xmlsec.c:1312:
undefined r<br>
eference to `_imp__xmlSecDSigNs'<br>
E:\MinGW\msys\1.0\projects\xmlsec\xmlsec1-1.2.18\apps/xmlsec.c:1312:
undefined r<br>
eference to `_imp__xmlSecNodeSignature'<br>
xmlsec.o: In function `xmlSecAppEncryptFile':<br>
E:\MinGW\msys\1.0\projects\xmlsec\xmlsec1-1.2.18\apps/xmlsec.c:1618:
undefined r<br>
eference to `_imp__xmlSecEncNs'<br>
E:\MinGW\msys\1.0\projects\xmlsec\xmlsec1-1.2.18\apps/xmlsec.c:1618:
undefined r<br>
eference to `_imp__xmlSecNodeEncryptedData'<br>
xmlsec.o: In function `xmlSecAppDecryptFile':<br>
E:\MinGW\msys\1.0\projects\xmlsec\xmlsec1-1.2.18\apps/xmlsec.c:1707:
undefined r<br>
eference to `_imp__xmlSecEncNs'<br>
E:\MinGW\msys\1.0\projects\xmlsec\xmlsec1-1.2.18\apps/xmlsec.c:1707:
undefined r<br>
eference to `_imp__xmlSecNodeEncryptedData'<br>
collect2: ld returned 1 exit status<br>
make[2]: *** [xmlsec1.exe] Error 1<br>
make[2]: Leaving directory `/projects/xmlsec/xmlsec1-1.2.18/apps'<br>
make[1]: *** [all-recursive] Error 1<br>
make[1]: Leaving directory `/projects/xmlsec/xmlsec1-1.2.18'<br>
make: *** [all] Error 2<br>
<br>
Now I have built openssl-1.0.1c with the "shared" option passed to
its "./config" and all appeared to be OK with that.<br>
<br>
Adding the --enable-static-linking flag to my ./configure doesn't
seem to make any difference.<br>
<br>
Basically... what am I doing wrong here?<br>
<br>
Thanks in advance.<br>
<br>
Mike<br>
<br>
</font>
</body>
</html>