[xmlsec] Problem in library compiled on MinGW-w64: feature is not implemented - crypto

silvioprog silvioprog at gmail.com
Tue Jan 24 11:55:52 PST 2017


Indeed. Finally I fixed the problem. I use it without dl, so:

https://git.io/vMNaU

That cflags is required on MinGW environment. My build was:

cd ~ && cd libxml2-2.9.4
./configure --disable-maintainer-mode --enable-rebuild-docs=no
--enable-ipv6=no --without-html --without-ftp --without-http --without-icu
--without-python --without-lzma
make install

cd ~ && cd xmlsec1-1.2.23
./configure --disable-maintainer-mode --disable-manpages-build
--disable-docs-build --without-libxslt --without-nss --without-nspr
--without-gcrypt --without-gnutls
make install

...

cd ~ && cd libmicroxml-2.0.2
./configure
make install-strip

I works like a charm now. Thank you guys! :-)

On Mon, Jan 23, 2017 at 10:29 PM, Aleksey Sanin <aleksey at aleksey.com> wrote:

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

-- 
Silvio Clécio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.aleksey.com/pipermail/xmlsec/attachments/20170124/0f34a924/attachment.html>


More information about the xmlsec mailing list