[xmlsec] support for dl library on Win32?
Julianne Bielski
bielsk@us.ibm.com
Thu, 9 Oct 2003 10:44:00 -0400
This is a multipart message in MIME format.
--=_alternative 00511D5985256DBA_=
Content-Type: text/plain; charset="US-ASCII"
I downloaded libxmlsec-1.1.1, libxml2-2.5.10, openssl-0.9.7.a and
iconv-1.8 from Igor's sight to my Windows XP system using VC 6.
I've been trying to compile the verifysig.c file, but I keep getting a
linker error related to xmlSecCryptoDLLoadLibrary(). I do want to load my
crypto library (openssl) dynamically at run time and am linking to the
stub library in my makefile.
After running dumpbin against libxmlsec and libxmlsec-opensll, I
discovered that there is no export entry for xmlSecCryptoDLLoadLibrary.
Furthermore, I can't find it in any make file.
What am I missing?
Here's a snippet of my makefile:
.
.
.
verifysig.obj:
cl /MD /Gm /GX /W3 /nologo /Od /ZI /FD /GZ /c /I
c:\openssl-0.9.7a.win32\openssl-0.9.7a.win32\include /I
c:\iconv-1.8.win32\iconv-1.8.win32\include /I
c:\libxml2-2.5.10.win32\libxml2-2.5.10.win32\include /I
c:\libxmlsec-1.1.1.win32\libxmlsec-1.1.1.win32\include /I
c:\rr_bld~1\visualc.60\include /I c:\rr_bld~1\visualc.60\atl\include /D
"XMLSEC_CRYPTO_OPENSSL" /D "XMLSEC_CRYPTO_DYNAMIC_LOADING" /D
"LIBXML_THREAD_ENABLED" /D "XMLSEC_NO_XSLT" /D "_DEBUG" /D "_WIN32" /D
"WIN32" /D "_WINDOWS" /D "WIN32_LEAN_AND_MEAN" verifysig.c
akcli.exe: SAX2Manifest.obj verifysig.obj
link /libpath:c:\rr_bld~1\visualc.60\lib
/libpath:c:\openssl-0.9.7a.win32\openssl-0.9.7a.win32\lib
/libpath:c:\iconv-1.8.win32\iconv-1.8.win32\lib
/libpath:c:\libxml2-2.5.10.win32\libxml2-2.5.10.win32\lib
/libpath:c:\libxmlsec-1.1.1.win32\libxmlsec-1.1.1.win32\lib libxml2.lib
libxmlsec-openssl.lib libxmlsec.lib verifysig.obj SAX2Manifest.obj
/out:akcli.exe
-- Regards,
J. Bielski
--=_alternative 00511D5985256DBA_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2 face="sans-serif">I downloaded libxmlsec-1.1.1, libxml2-2.5.10,
openssl-0.9.7.a and iconv-1.8 from Igor's sight to my Windows XP system
using VC 6.</font>
<br>
<br><font size=2 face="sans-serif">I've been trying to compile the verifysig.c
file, but I keep getting a linker error related to xmlSecCryptoDLLoadLibrary().
I do want to load my crypto library (openssl) dynamically at run time and
am linking to the stub library in my makefile.</font>
<br>
<br><font size=2 face="sans-serif">After running dumpbin against libxmlsec
and libxmlsec-opensll, I discovered that there is no export entry for xmlSecCryptoDLLoadLibrary.
Furthermore, I can't find it in any make file.</font>
<br>
<br><font size=2 face="sans-serif">What am I missing?</font>
<br>
<br><font size=2 face="sans-serif">Here's a snippet of my makefile:</font>
<br><font size=2 face="sans-serif">.</font>
<br><font size=2 face="sans-serif">.</font>
<br><font size=2 face="sans-serif">.</font>
<br><font size=2 face="sans-serif">verifysig.obj:</font>
<br><font size=2 face="sans-serif"> cl /MD /Gm
/GX /W3 /nologo /Od /ZI /FD /GZ /c /I c:\openssl-0.9.7a.win32\openssl-0.9.7a.win32\include
/I c:\iconv-1.8.win32\iconv-1.8.win32\include /I c:\libxml2-2.5.10.win32\libxml2-2.5.10.win32\include
/I c:\libxmlsec-1.1.1.win32\libxmlsec-1.1.1.win32\include /I c:\rr_bld~1\visualc.60\include
/I c:\rr_bld~1\visualc.60\atl\include /D "XMLSEC_CRYPTO_OPENSSL"
/D "XMLSEC_CRYPTO_DYNAMIC_LOADING" /D "LIBXML_THREAD_ENABLED"
/D "XMLSEC_NO_XSLT" /D "_DEBUG" /D "_WIN32"
/D "WIN32" /D "_WINDOWS" /D "WIN32_LEAN_AND_MEAN"
verifysig.c</font>
<br>
<br><font size=2 face="sans-serif">akcli.exe: SAX2Manifest.obj verifysig.obj</font>
<br><font size=2 face="sans-serif"> link /libpath:c:\rr_bld~1\visualc.60\lib
/libpath:c:\openssl-0.9.7a.win32\openssl-0.9.7a.win32\lib /libpath:c:\iconv-1.8.win32\iconv-1.8.win32\lib
/libpath:c:\libxml2-2.5.10.win32\libxml2-2.5.10.win32\lib /libpath:c:\libxmlsec-1.1.1.win32\libxmlsec-1.1.1.win32\lib
libxml2.lib libxmlsec-openssl.lib libxmlsec.lib verifysig.obj SAX2Manifest.obj
/out:akcli.exe</font>
<br><font size=2 face="sans-serif"><br>
-- Regards,<br>
<br>
J. Bielski</font>
--=_alternative 00511D5985256DBA_=--