<div dir="ltr">Indeed. Finally I fixed the problem. I use it without dl, so:<div><br></div><div><a href="https://git.io/vMNaU">https://git.io/vMNaU</a><br></div><div><br></div><div>That cflags is required on MinGW environment. My build was:</div><div><br></div><div><div><font size="1" face="monospace, monospace">cd ~ && cd libxml2-2.9.4</font></div><div><font size="1" face="monospace, monospace">./configure --disable-maintainer-mode --enable-rebuild-docs=no --enable-ipv6=no --without-html --without-ftp --without-http --without-icu --without-python --without-lzma</font></div><div><font size="1" face="monospace, monospace">make install</font></div><div><font size="1" face="monospace, monospace"><br></font></div><div><font size="1" face="monospace, monospace">cd ~ && cd xmlsec1-1.2.23</font></div><div><font size="1" face="monospace, monospace">./configure --disable-maintainer-mode --disable-manpages-build --disable-docs-build --without-libxslt --without-nss --without-nspr --without-gcrypt --without-gnutls</font></div><div><font size="1" face="monospace, monospace">make install<br></font></div><div><font size="1" face="monospace, monospace"><br></font></div><div><font size="1" face="monospace, monospace">...</font></div><div><font size="1" face="monospace, monospace"><br></font></div><div><font size="1" face="monospace, monospace">cd ~ && cd libmicroxml-2.0.2<br></font></div><div><font size="1" face="monospace, monospace">./configure</font></div><div><font size="1" face="monospace, monospace">make install-strip</font></div></div><div><br></div><div>I works like a charm now. Thank you guys! :-)</div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 23, 2017 at 10:29 PM, Aleksey Sanin <span dir="ltr"><<a href="mailto:aleksey@aleksey.com" target="_blank">aleksey@aleksey.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">For dynamic crypto libs loading, the xmlsec-openssl (or -nss, ...)<br>
will be loaded dynamically by xmlsec1 command tool.<br>
<br>
Aleksey<br>
<span class="gmail-"><br>
On 1/23/17 5:00 PM, silvioprog wrote:<br>
> Hello Ranier. Thanks for replying.<br>
><br>
> After your tip I took a loot at xmlsec1-config/pkg-config results (the<br>
> make script of my library uses pkg-config to search xmlsec flags/libs):<br>
><br>
> $ xmlsec1-config --libs --cflags<br>
> -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_XSLT=1 -DXMLSEC_NO_GOST=1<br>
> -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -I/mingw32/include/xmlsec1<br>
> -I/mingw32/include/libxml2 -DXMLSEC_CRYPTO_DYNAMIC_<wbr>LOADING=1<br>
> -L/mingw32/lib -LC:/msys32/mingw32/lib -lltdl -lxmlsec1 -lxml2 -lz<br>
> -liconv -lws2_32<br>
><br>
> $ pkg-config xmlsec1 --libs --cflags<br>
> -DXMLSEC_CRYPTO_DYNAMIC_<wbr>LOADING=1 -D__XMLSEC_FUNCTION__=__func__<br>
> -DXMLSEC_NO_XSLT=1 -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1<br>
> -DXMLSEC_DL_LIBLTDL=1 -IC:/msys32/mingw32/include/<wbr>xmlsec1<br>
> -IC:/msys32/mingw32/include/<wbr>libxml2 -LC:/msys32/mingw32/lib -lxmlsec1<br>
> -lltdl -lxml2<br>
><br>
> It seems the -lxmlsec1-openssl option is missing in both. That can be<br>
> the problem ...<br>
><br>
> I'm going to try new tests sending some feedback.<br>
><br>
> (my mingw is terribly slowly, even in an fast SSD + 3 GB RAN :-S )<br>
><br>
> On Mon, Jan 23, 2017 at 9:37 PM, Ranier VF <<a href="mailto:ranier_gyn@hotmail.com">ranier_gyn@hotmail.com</a><br>
</span><span class="gmail-">> <mailto:<a href="mailto:ranier_gyn@hotmail.com">ranier_gyn@hotmail.com</a><wbr>>> wrote:<br>
><br>
> This worked for me with msvc compiler:<br>
> cscript configure.js crypto="openssl=110" xslt=no iconv=no nt4=no<br>
> lib="C:\dll\lib" include="c:\dll\include"<br>
><br>
> libs result:<br>
> XMLSEC_OPENSSL_SOLIBS = libeay32.lib wsock32.lib kernel32.lib<br>
> user32.lib gdi32.lib<br>
><br>
> Best regards,<br>
><br>
> ______________________________<wbr>__________<br>
> De: xmlsec <<a href="mailto:xmlsec-bounces@aleksey.com">xmlsec-bounces@aleksey.com</a><br>
</span>> <mailto:<a href="mailto:xmlsec-bounces@aleksey.com">xmlsec-bounces@<wbr>aleksey.com</a>>> em nome de silvioprog<br>
> <<a href="mailto:silvioprog@gmail.com">silvioprog@gmail.com</a> <mailto:<a href="mailto:silvioprog@gmail.com">silvioprog@gmail.com</a>>><br>
<span class="gmail-">> Enviado: sábado, 21 de janeiro de 2017 16:49<br>
</span>> Para: <a href="mailto:xmlsec@aleksey.com">xmlsec@aleksey.com</a> <mailto:<a href="mailto:xmlsec@aleksey.com">xmlsec@aleksey.com</a>><br>
<div class="gmail-HOEnZb"><div class="gmail-h5">> Assunto: [xmlsec] Problem in library compiled on MinGW-w64: feature<br>
> is not implemented - crypto<br>
><br>
> Hello,<br>
><br>
> This was my all steps before compiling the library:<br>
><br>
> # upgrade pacman & repos<br>
> pacman -Sy pacman<br>
> pacman -Syu<br>
> pacman -Su<br>
><br>
> # install my development tools (I use CLion and it requires an old<br>
> GDB version)<br>
> pacman -S mingw-w64-i686-make<br>
> pacman -S mingw-w64-i686-gcc<br>
> pacman -S mingw-w64-i686-pkg-config<br>
> pacman -S mingw-w64-i686-libtool<br>
> pacman -S mingw-w64-i686-diffutils<br>
> pacman -S libtool<br>
> pacman -S autoconf<br>
> pacman -S automake-wrapper<br>
> pacman -S man-db<br>
> pacman -U<br>
> <a href="http://repo.msys2.org/mingw/i686/mingw-w64-i686-gdb-7.11.1-4-any.pkg.tar.xz" rel="noreferrer" target="_blank">http://repo.msys2.org/mingw/<wbr>i686/mingw-w64-i686-gdb-7.11.<wbr>1-4-any.pkg.tar.xz</a><br>
> <<a href="http://repo.msys2.org/mingw/i686/mingw-w64-i686-gdb-7.11.1-4-any.pkg.tar.xz" rel="noreferrer" target="_blank">http://repo.msys2.org/mingw/<wbr>i686/mingw-w64-i686-gdb-7.11.<wbr>1-4-any.pkg.tar.xz</a>><br>
> # unfortunatelly it it necessary<br>
> cp /mingw32/bin/mingw32-make.exe /mingw32/bin/make.exe<br>
><br>
> # openssl<br>
> pacman -S mingw-w64-i686-openssl<br>
> pkg-config openssl --modversion<br>
> 1.0.2j<br>
><br>
> cd ~ && cd libxml2-2.9.4<br>
> ./configure --disable-maintainer-mode --enable-rebuild-docs=no<br>
> --enable-ipv6=no --without-html --without-ftp --without-http<br>
> --without-icu --without-python --without-lzma<br>
> make install<br>
> pkg-config libxml-2.0 --modversion<br>
> 2.9.4<br>
><br>
> cd ~ && cd xmlsec1-1.2.23<br>
> ./configure --with-openssl=/mingw32 --with-libxml=/mingw32<br>
> --disable-maintainer-mode --disable-manpages-build<br>
> --disable-docs-build --without-libxslt --without-nss --without-nspr<br>
> --without-gcrypt --without-gnutls --enable-crypto-dl<br>
> --enable-apps-crypto-dl<br>
> # just to check if it really compiles<br>
> make CFLAGS='-DXMLSEC_CRYPTO_<wbr>DYNAMIC_LOADING=1' LIBS='-lssl -lcrypto'<br>
> make install<br>
><br>
> OK, now I have the `libxmlsec1.dll` and `libxmlsec1-openssl.dll`<br>
> libraries, however, when I try to use it in an external application<br>
> written in Pascal (Delphi):<br>
><br>
> func=xmlSecCryptoAppInit:file=<wbr>app.c:line=1423:obj=unknown:<wbr>subj=cryptoAppInit:error=9:<wbr>feature<br>
> is not implemented:<br>
> func=xmlSecCryptoShutdown:<wbr>file=app.c:line=69:obj=<wbr>unknown:subj=cryptoShutdown:<wbr>error=9:feature<br>
> is not implemented:<br>
> func=xmlSecCryptoAppShutdown:<wbr>file=app.c:line=1447:obj=<wbr>unknown:subj=<wbr>cryptoAppShutdown:error=9:<wbr>feature<br>
> is not implemented:<br>
><br>
> Why?! D:<br>
><br>
> I'm trying to compile xmlsec from scratch because its official<br>
> available binaries for Windows is a little bit outdated.<br>
><br>
> --<br>
> Silvio Clécio<br>
><br>
> --<br>
> Silvio Clécio</div></div></blockquote><div> </div></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Silvio Clécio</div></div></div>
</div></div></div>