Re: Problem in library compiled on MinGW-w64: feature is not implemented - crypto
Aleksey Sanin <[email protected]> Mon, 23 Jan 2017 17:29:58 -0800
| Newsgroups | gmane.text.xml.xmlsec |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected] > <mailto:[email protected]>> 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 <[email protected] > <mailto:[email protected]>> em nome de silvioprog > <[email protected] <mailto:[email protected]>> > Enviado: sábado, 21 de janeiro de 2017 16:49 > Para: [email protected] <mailto:[email protected]> > 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 > > > _______________________________________________ > xmlsec mailing list > [email protected] > http://www.aleksey.com/mailman/listinfo/xmlsec > _______________________________________________ xmlsec mailing list [email protected] http://www.aleksey.com/mailman/listinfo/xmlsec