[xmlsec] Static compile

2007-03-20 Thread Jürgen Heiss
Hi Aleksey,
 
Hi,
 
I compiled libxml2, libxslt, xmlsec, and the openssl crypto Libary as 
Multithread Dll and static.
This works fine, but when I try to load the library into my application I got 
the following link errors.
 
xmlsec.obj : error LNK2001: unresolved external symbol __imp__xmlFree
xmlsec.obj : error LNK2001: unresolved external symbol __imp__xmlMalloc
xmlsec.obj : error LNK2001: unresolved external symbol 
__imp__xmlSecDSigCtxFinalize
xmlsec.obj : error LNK2001: unresolved external symbol 
__imp__xmlSecDSigCtxVerify
xmlsec.obj : error LNK2001: unresolved external symbol 
__imp__xmlSecNodeSignature
xmlsec.obj : error LNK2001: unresolved external symbol 
__imp__xmlSecKeysMngrDestroy
xmlsec.obj : error LNK2001: unresolved external symbol _xmlSecBase64Decode
xmlsec.obj : error LNK2001: unresolved external symbol _xmlStrlen
xmlsec.obj : error LNK2001: unresolved external symbol 
__imp__xmlSecBufferReadFile
xmlsec.obj : error LNK2001: unresolved external symbol 
__imp__xmlSecBufferInitialize
xmlsec.obj : error LNK2001: unresolved external symbol __imp__xmlSecDSigNs
xmlsec.obj : error LNK2001: unresolved external symbol _xmlSecFindChild
xmlsec.obj : error LNK2001: unresolved external symbol _xmlSecFindNode
xmlsec.obj : error LNK2001: unresolved external symbol 
__imp__xmlSecDSigCtxInitialize
xmlsec.obj : error LNK2001: unresolved external symbol _xmlDocGetRootElement
xmlsec.obj : error LNK2001: unresolved external symbol _xmlParseFile
xmlsec.obj : error LNK2001: unresolved external symbol _xmlFreeDoc
xmlsec.obj : error LNK2001: unresolved external symbol _xmlFreeDtd
xmlsec.obj : error LNK2001: unresolved external symbol 
__imp__xmlSecOpenSSLAppKeysMngrCertLoadMemory
xmlsec.obj : error LNK2001: unresolved external symbol 
__imp__xmlSecOpenSSLAppDefaultKeysMngrInit
xmlsec.obj : error LNK2001: unresolved external symbol 
__imp__xmlSecKeysMngrCreate
xmlsec.obj : error LNK2001: unresolved external symbol __imp__xmlSecOpenSSLInit
xmlsec.obj : error LNK2001: unresolved external symbol 
__imp__xmlSecOpenSSLAppInit
xmlsec.obj : error LNK2001: unresolved external symbol 
__imp__xmlSecCheckVersionExt
xmlsec.obj : error LNK2001: unresolved external symbol __imp__xmlSecInit
xmlsec.obj : error LNK2001: unresolved external symbol _xmlInitParser
 
Any ideas?
 
thanks
Jürgen
___
xmlsec mailing list
xmlsec@aleksey.com
http://www.aleksey.com/mailman/listinfo/xmlsec


Re: [xmlsec] Static compile

2007-03-20 Thread Aleksey Sanin

https://www.aleksey.com/xmlsec/api/xmlsec-notes-compiling-windows.html

#define LIBXML_STATIC
#define LIBXSLT_STATIC
#define XMLSEC_STATIC   

Aleksey

Jürgen Heiss wrote:

Hi Aleksey,
 
Hi,
 
I compiled libxml2, libxslt, xmlsec, and the openssl crypto Libary as 
Multithread Dll and static.
This works fine, but when I try to load the library into my application 
I got the following link errors.
 
xmlsec.obj : error LNK2001: unresolved external symbol __imp__xmlFree

xmlsec.obj : error LNK2001: unresolved external symbol __imp__xmlMalloc
xmlsec.obj : error LNK2001: unresolved external symbol 
__imp__xmlSecDSigCtxFinalize
xmlsec.obj : error LNK2001: unresolved external symbol 
__imp__xmlSecDSigCtxVerify
xmlsec.obj : error LNK2001: unresolved external symbol 
__imp__xmlSecNodeSignature
xmlsec.obj : error LNK2001: unresolved external symbol 
__imp__xmlSecKeysMngrDestroy

xmlsec.obj : error LNK2001: unresolved external symbol _xmlSecBase64Decode
xmlsec.obj : error LNK2001: unresolved external symbol _xmlStrlen
xmlsec.obj : error LNK2001: unresolved external symbol 
__imp__xmlSecBufferReadFile
xmlsec.obj : error LNK2001: unresolved external symbol 
__imp__xmlSecBufferInitialize

xmlsec.obj : error LNK2001: unresolved external symbol __imp__xmlSecDSigNs
xmlsec.obj : error LNK2001: unresolved external symbol _xmlSecFindChild
xmlsec.obj : error LNK2001: unresolved external symbol _xmlSecFindNode
xmlsec.obj : error LNK2001: unresolved external symbol 
__imp__xmlSecDSigCtxInitialize

xmlsec.obj : error LNK2001: unresolved external symbol _xmlDocGetRootElement
xmlsec.obj : error LNK2001: unresolved external symbol _xmlParseFile
xmlsec.obj : error LNK2001: unresolved external symbol _xmlFreeDoc
xmlsec.obj : error LNK2001: unresolved external symbol _xmlFreeDtd
xmlsec.obj : error LNK2001: unresolved external symbol 
__imp__xmlSecOpenSSLAppKeysMngrCertLoadMemory
xmlsec.obj : error LNK2001: unresolved external symbol 
__imp__xmlSecOpenSSLAppDefaultKeysMngrInit
xmlsec.obj : error LNK2001: unresolved external symbol 
__imp__xmlSecKeysMngrCreate
xmlsec.obj : error LNK2001: unresolved external symbol 
__imp__xmlSecOpenSSLInit
xmlsec.obj : error LNK2001: unresolved external symbol 
__imp__xmlSecOpenSSLAppInit
xmlsec.obj : error LNK2001: unresolved external symbol 
__imp__xmlSecCheckVersionExt

xmlsec.obj : error LNK2001: unresolved external symbol __imp__xmlSecInit
xmlsec.obj : error LNK2001: unresolved external symbol _xmlInitParser
 
Any ideas?
 
thanks

Jürgen




___
xmlsec mailing list
xmlsec@aleksey.com
http://www.aleksey.com/mailman/listinfo/xmlsec

___
xmlsec mailing list
xmlsec@aleksey.com
http://www.aleksey.com/mailman/listinfo/xmlsec


RE: [xmlsec] Static compile

2007-03-20 Thread Jürgen Heiss
I made this defines!
  

-Original Message-
From: Aleksey Sanin [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 20. März 2007 15:42
To: Jürgen Heiss
Cc: xmlsec@aleksey.com
Subject: Re: [xmlsec] Static compile

https://www.aleksey.com/xmlsec/api/xmlsec-notes-compiling-windows.html

#define LIBXML_STATIC
#define LIBXSLT_STATIC
#define XMLSEC_STATIC   

Aleksey

Jürgen Heiss wrote:
> Hi Aleksey,
>  
> Hi,
>  
> I compiled libxml2, libxslt, xmlsec, and the openssl crypto Libary as 
> Multithread Dll and static.
> This works fine, but when I try to load the library into my 
> application I got the following link errors.
>  
> xmlsec.obj : error LNK2001: unresolved external symbol __imp__xmlFree 
> xmlsec.obj : error LNK2001: unresolved external symbol 
> __imp__xmlMalloc xmlsec.obj : error LNK2001: unresolved external 
> symbol __imp__xmlSecDSigCtxFinalize xmlsec.obj : error LNK2001: 
> unresolved external symbol __imp__xmlSecDSigCtxVerify xmlsec.obj : 
> error LNK2001: unresolved external symbol __imp__xmlSecNodeSignature 
> xmlsec.obj : error LNK2001: unresolved external symbol 
> __imp__xmlSecKeysMngrDestroy xmlsec.obj : error LNK2001: unresolved 
> external symbol _xmlSecBase64Decode xmlsec.obj : error LNK2001: 
> unresolved external symbol _xmlStrlen xmlsec.obj : error LNK2001: 
> unresolved external symbol __imp__xmlSecBufferReadFile xmlsec.obj : 
> error LNK2001: unresolved external symbol 
> __imp__xmlSecBufferInitialize xmlsec.obj : error LNK2001: unresolved 
> external symbol __imp__xmlSecDSigNs xmlsec.obj : error LNK2001: 
> unresolved external symbol _xmlSecFindChild xmlsec.obj : error 
> LNK2001: unresolved external symbol _xmlSecFindNode xmlsec.obj : error 
> LNK2001: unresolved external symbol __imp__xmlSecDSigCtxInitialize 
> xmlsec.obj : error LNK2001: unresolved external symbol 
> _xmlDocGetRootElement xmlsec.obj : error LNK2001: unresolved external 
> symbol _xmlParseFile xmlsec.obj : error LNK2001: unresolved external 
> symbol _xmlFreeDoc xmlsec.obj : error LNK2001: unresolved external 
> symbol _xmlFreeDtd xmlsec.obj : error LNK2001: unresolved external 
> symbol __imp__xmlSecOpenSSLAppKeysMngrCertLoadMemory
> xmlsec.obj : error LNK2001: unresolved external symbol 
> __imp__xmlSecOpenSSLAppDefaultKeysMngrInit
> xmlsec.obj : error LNK2001: unresolved external symbol 
> __imp__xmlSecKeysMngrCreate xmlsec.obj : error LNK2001: unresolved 
> external symbol __imp__xmlSecOpenSSLInit xmlsec.obj : error LNK2001: 
> unresolved external symbol __imp__xmlSecOpenSSLAppInit xmlsec.obj : 
> error LNK2001: unresolved external symbol __imp__xmlSecCheckVersionExt 
> xmlsec.obj : error LNK2001: unresolved external symbol 
> __imp__xmlSecInit xmlsec.obj : error LNK2001: unresolved external 
> symbol _xmlInitParser
>  
> Any ideas?
>  
> thanks
> Jürgen
> 
> 
> --
> --
> 
> ___
> xmlsec mailing list
> xmlsec@aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec


___
xmlsec mailing list
xmlsec@aleksey.com
http://www.aleksey.com/mailman/listinfo/xmlsec


[xmlsec] Xmlsec Issue on Linux x86_64, XMLSEC_NO_SIZE_T

2007-03-20 Thread Nolan Hurlburt

Hi list,

I ran into a bit of a problem recently using the xmlsec library today on 
a Linux x86_64 box. Here’s the situation:


1) The xmlsec library was compiled using the standard configure, make. ( 
--enable-debugging, --with-libxlst=no )
2) A piece of code that signs an xml doc was compiled and linked it to 
the library.

3) The code involved a call to xmlSecDSigCtxSign()
result = ( xmlSecDSigCtxSign( dsigCtx, signNode ) >= 0);

This was failing because the struct in the library appeared to be 
different then the one that our code was passing in. ( Memory was 
shifted when it entered the xmlSecDSigCtxSign function ) Note: the code 
works fine on 32-bit Windows and Linux.


We determined this was because of a compile flag that is set when 
compiling the library: -DXMLSEC_NO_SIZE_T. (configure.in ln: 128)


This results in a size_t being an unsigned int rather than size_t . 
(xmlsec.h line:43)


Apparently this is defined when configure detects a 64-bit system. 
Obviously when we compiled our code we didn’t compile with this defined 
causing a difference in the size of the struct relative to the piece of 
code.


We can resolve this in two ways:

1) Not defining XMLSEC_NO_SIZE_T when compiling the library.
2) Compiling our application with XMLSEC_NO_SIZE_T defined.

Is anyone familiar with the implications of each of these actions?

Thank you kindly,

Nolan

--
Nolan Hurlburt
[EMAIL PROTECTED]


___
xmlsec mailing list
xmlsec@aleksey.com
http://www.aleksey.com/mailman/listinfo/xmlsec


Re: [xmlsec] Xmlsec Issue on Linux x86_64, XMLSEC_NO_SIZE_T

2007-03-20 Thread Aleksey Sanin

Could you please try to get xmlsec from svn and run ./autogen.sh
instead of ./configure? It sounds like the autoconf/automake packages
are not configuring xmlsec on your system correctly. ./autogen.sh
should force the update.

Aleksey

Nolan Hurlburt wrote:

Hi list,

I ran into a bit of a problem recently using the xmlsec library today on 
a Linux x86_64 box. Here’s the situation:


1) The xmlsec library was compiled using the standard configure, make. ( 
--enable-debugging, --with-libxlst=no )
2) A piece of code that signs an xml doc was compiled and linked it to 
the library.

3) The code involved a call to xmlSecDSigCtxSign()
result = ( xmlSecDSigCtxSign( dsigCtx, signNode ) >= 0);

This was failing because the struct in the library appeared to be 
different then the one that our code was passing in. ( Memory was 
shifted when it entered the xmlSecDSigCtxSign function ) Note: the code 
works fine on 32-bit Windows and Linux.


We determined this was because of a compile flag that is set when 
compiling the library: -DXMLSEC_NO_SIZE_T. (configure.in ln: 128)


This results in a size_t being an unsigned int rather than size_t . 
(xmlsec.h line:43)


Apparently this is defined when configure detects a 64-bit system. 
Obviously when we compiled our code we didn’t compile with this defined 
causing a difference in the size of the struct relative to the piece of 
code.


We can resolve this in two ways:

1) Not defining XMLSEC_NO_SIZE_T when compiling the library.
2) Compiling our application with XMLSEC_NO_SIZE_T defined.

Is anyone familiar with the implications of each of these actions?

Thank you kindly,

Nolan


___
xmlsec mailing list
xmlsec@aleksey.com
http://www.aleksey.com/mailman/listinfo/xmlsec