Discussion:
[xmlsec] Building xmlsec for iOs
84.le0n
2011-08-06 15:12:47 UTC
Permalink
Hi all,
this is my first email to the list because I've some problem making
xmlsec lib for iphone OS during make phase .

These are the steps I've done to build xmlsec library, all configuring
for "build i386-apple-darwin10" and "host arm-apple-darwin10" :
1) using the original libxml2.dylib iPhone lib I've builded a static
libxslt.a , version 1.1.26
2) I've builded openssl libs (libcrypto.a and libssl.a), version 1.0.0.d
3) the configure command of xmlsec, version 1.2.18, I use is

------------------ from here ------------------------

./configure \
--prefix=<destination_path> \
--build=i386-apple-darwin10 \
--host=arm-apple-darwin10 \
--enable-static \
--enable-static-linking \
--disable-shared \
--disable-crypto-dl \
--disable-apps-crypto-dl \
--disable-mscrypto \
--without-nspr \
--without-nss \
--without-seamonkey-ver \
--without-mozilla-ver \
--without-gcrypt \
--without-gnutls \
--with-default-crypto=openssl \
--with-libxslt=<path_of_my_libxslt> \
--with-openssl=<path_of_my_openssl>

------------------ to here ------------------------

The problem comes with make command, that returns this error

------------------ from here ------------------------

*** Warning: Linking the shared library libxmlsec1-openssl.la against the
*** static library <myCompiledOpensslFolder>/lib/libcrypto.a is not portable!
libtool: link: warning:
`/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/usr/lib/libxml2.la'
seems to be moved

libtool: link: ar cru .libs/libxmlsec1-openssl.a
<myCompiledOpensslFolder>/lib/libcrypto.a libxmlsec1_openssl_la-app.o
libxmlsec1_openssl_la-bn.o libxmlsec1_openssl_la-ciphers.o
libxmlsec1_openssl_la-crypto.o libxmlsec1_openssl_la-digests.o
libxmlsec1_openssl_la-evp.o libxmlsec1_openssl_la-hmac.o
libxmlsec1_openssl_la-kw_aes.o libxmlsec1_openssl_la-kw_des.o
libxmlsec1_openssl_la-kt_rsa.o libxmlsec1_openssl_la-signatures.o
libxmlsec1_openssl_la-symkeys.o libxmlsec1_openssl_la-x509.o
libxmlsec1_openssl_la-x509vfy.o

/usr/bin/ranlib: archive member:
.libs/libxmlsec1-openssl.a(libcrypto.a) fat file for cputype (12)
cpusubtype (6) is not an object file (bad magic number)
ar: internal ranlib command failed
make[3]: *** [libxmlsec1-openssl.la] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

------------------ to here ------------------------

I've read on this mailing list that the warning is not a real problem,
but the error is about ranlib and ar command.
I haven't find any help on google about "fat file for cputype", what
kind of error is this ?
Why is returned this error?
How can I correct it?
I've tried to view inside makefile but I haven't find something interesting.

Thank you for your help!
Aleksey Sanin
2011-08-06 18:49:11 UTC
Permalink
Try to configure xmlsec with disabled dynamic crypto libraries

Aleksey
Post by 84.le0n
Hi all,
this is my first email to the list because I've some problem making
xmlsec lib for iphone OS during make phase .
These are the steps I've done to build xmlsec library, all configuring
1) using the original libxml2.dylib iPhone lib I've builded a static
libxslt.a , version 1.1.26
2) I've builded openssl libs (libcrypto.a and libssl.a), version 1.0.0.d
3) the configure command of xmlsec, version 1.2.18, I use is
------------------ from here ------------------------
./configure \
--prefix=<destination_path> \
--build=i386-apple-darwin10 \
--host=arm-apple-darwin10 \
--enable-static \
--enable-static-linking \
--disable-shared \
--disable-crypto-dl \
--disable-apps-crypto-dl \
--disable-mscrypto \
--without-nspr \
--without-nss \
--without-seamonkey-ver \
--without-mozilla-ver \
--without-gcrypt \
--without-gnutls \
--with-default-crypto=openssl \
--with-libxslt=<path_of_my_libxslt> \
--with-openssl=<path_of_my_openssl>
------------------ to here ------------------------
The problem comes with make command, that returns this error
------------------ from here ------------------------
*** Warning: Linking the shared library libxmlsec1-openssl.la against the
*** static library<myCompiledOpensslFolder>/lib/libcrypto.a is not portable!
`/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/usr/lib/libxml2.la'
seems to be moved
libtool: link: ar cru .libs/libxmlsec1-openssl.a
<myCompiledOpensslFolder>/lib/libcrypto.a libxmlsec1_openssl_la-app.o
libxmlsec1_openssl_la-bn.o libxmlsec1_openssl_la-ciphers.o
libxmlsec1_openssl_la-crypto.o libxmlsec1_openssl_la-digests.o
libxmlsec1_openssl_la-evp.o libxmlsec1_openssl_la-hmac.o
libxmlsec1_openssl_la-kw_aes.o libxmlsec1_openssl_la-kw_des.o
libxmlsec1_openssl_la-kt_rsa.o libxmlsec1_openssl_la-signatures.o
libxmlsec1_openssl_la-symkeys.o libxmlsec1_openssl_la-x509.o
libxmlsec1_openssl_la-x509vfy.o
.libs/libxmlsec1-openssl.a(libcrypto.a) fat file for cputype (12)
cpusubtype (6) is not an object file (bad magic number)
ar: internal ranlib command failed
make[3]: *** [libxmlsec1-openssl.la] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
------------------ to here ------------------------
I've read on this mailing list that the warning is not a real problem,
but the error is about ranlib and ar command.
I haven't find any help on google about "fat file for cputype", what
kind of error is this ?
Why is returned this error?
How can I correct it?
I've tried to view inside makefile but I haven't find something interesting.
Thank you for your help!
_______________________________________________
xmlsec mailing list
xmlsec at aleksey.com
http://www.aleksey.com/mailman/listinfo/xmlsec
84.le0n
2011-08-07 10:26:03 UTC
Permalink
As you can see in my preceding email, I've already included --disable-crypto-dl and --disable-apps-crypto-dl , the result is that error I wrote.
If you are referring to another configuration key, please tell me which is because I haven't find in configure help anything other than these two to disable dynamic crypto libraries.

Thank you!
Post by Aleksey Sanin
Try to configure xmlsec with disabled dynamic crypto libraries
Aleksey
Post by 84.le0n
Hi all,
this is my first email to the list because I've some problem making
xmlsec lib for iphone OS during make phase .
These are the steps I've done to build xmlsec library, all configuring
1) using the original libxml2.dylib iPhone lib I've builded a static
libxslt.a , version 1.1.26
2) I've builded openssl libs (libcrypto.a and libssl.a), version 1.0.0.d
3) the configure command of xmlsec, version 1.2.18, I use is
------------------ from here ------------------------
./configure \
--prefix=<destination_path> \
--build=i386-apple-darwin10 \
--host=arm-apple-darwin10 \
--enable-static \
--enable-static-linking \
--disable-shared \
--disable-crypto-dl \
--disable-apps-crypto-dl \
--disable-mscrypto \
--without-nspr \
--without-nss \
--without-seamonkey-ver \
--without-mozilla-ver \
--without-gcrypt \
--without-gnutls \
--with-default-crypto=openssl \
--with-libxslt=<path_of_my_libxslt> \
--with-openssl=<path_of_my_openssl>
------------------ to here ------------------------
The problem comes with make command, that returns this error
------------------ from here ------------------------
*** Warning: Linking the shared library libxmlsec1-openssl.la against the
*** static library<myCompiledOpensslFolder>/lib/libcrypto.a is not portable!
`/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/usr/lib/libxml2.la'
seems to be moved
libtool: link: ar cru .libs/libxmlsec1-openssl.a
<myCompiledOpensslFolder>/lib/libcrypto.a libxmlsec1_openssl_la-app.o
libxmlsec1_openssl_la-bn.o libxmlsec1_openssl_la-ciphers.o
libxmlsec1_openssl_la-crypto.o libxmlsec1_openssl_la-digests.o
libxmlsec1_openssl_la-evp.o libxmlsec1_openssl_la-hmac.o
libxmlsec1_openssl_la-kw_aes.o libxmlsec1_openssl_la-kw_des.o
libxmlsec1_openssl_la-kt_rsa.o libxmlsec1_openssl_la-signatures.o
libxmlsec1_openssl_la-symkeys.o libxmlsec1_openssl_la-x509.o
libxmlsec1_openssl_la-x509vfy.o
.libs/libxmlsec1-openssl.a(libcrypto.a) fat file for cputype (12)
cpusubtype (6) is not an object file (bad magic number)
ar: internal ranlib command failed
make[3]: *** [libxmlsec1-openssl.la] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
------------------ to here ------------------------
I've read on this mailing list that the warning is not a real problem,
but the error is about ranlib and ar command.
I haven't find any help on google about "fat file for cputype", what
kind of error is this ?
Why is returned this error?
How can I correct it?
I've tried to view inside makefile but I haven't find something interesting.
Thank you for your help!
_______________________________________________
xmlsec mailing list
xmlsec at aleksey.com
http://www.aleksey.com/mailman/listinfo/xmlsec
84.le0n
2011-08-18 14:31:15 UTC
Permalink
Hi Aleksey,
after some test now I get another error, during make phase.

These are the steps I've done, configuring for "build
i386-apple-darwin10" and "host i686-apple-darwin10" (for iOs simulator
included in SDK) :
1) make of static libxml2.a (not using original libxml2.dylib because
xmlsec requires newer version that that offered by Apple )
2) using this libxml2.a static lib I've built a static libxslt.a ,
version 1.1.26
3) then I've builded openssl libs (libcrypto.a and libssl.a), version 1.0.0.d
4) the last is xmlsec version 1.2.18, configured as follow

------------------ from here ------------------------

./configure \
--prefix=<destination_path> \
--build=i386-apple-darwin10 \
--host=i686-apple-darwin10 \
--enable-static \
--enable-static-linking \
--disable-shared \
--disable-crypto-dl \
--disable-apps-crypto-dl \
--disable-mscrypto \
--without-nspr \
--without-nss \
--without-seamonkey-ver \
--without-mozilla-ver \
--without-gcrypt \
--without-gnutls \
--with-default-crypto=openssl \
--with-libxml=<path_of_my_libxml2> \
--with-libxslt=<path_of_my_libxslt> \
--with-openssl=<path_of_my_openssl>

------------------ to here ------------------------

The configuration runs without problems and finds my libs correctly,
but doing make I get this error

------------------ from here ------------------------

Undefined symbols:
"_xmlSecOpenSSLAppDefaultKeysMngrInit", referenced from:
_xmlSecAppCryptoSimpleKeysMngrInit in crypto.o
"_xmlSecOpenSSLTransformDes3CbcGetKlass", referenced from:
_xmlSecAppEncryptTmpl in xmlsec.o
"_xmlSecOpenSSLAppKeysMngrCertLoad", referenced from:
_xmlSecAppCryptoSimpleKeysMngrCertLoad in crypto.o
"_xmlSecOpenSSLAppDefaultKeysMngrLoad", referenced from:
_xmlSecAppCryptoSimpleKeysMngrLoad in crypto.o
"_xmlSecOpenSSLAppDefaultKeysMngrSave", referenced from:
_xmlSecAppCryptoSimpleKeysMngrSave in crypto.o
"_xmlSecOpenSSLAppKeyLoad", referenced from:
_xmlSecAppCryptoSimpleKeysMngrPkcs12KeyLoad in crypto.o
_xmlSecAppCryptoSimpleKeysMngrKeyAndCertsLoad in crypto.o
"_xmlSecOpenSSLShutdown", referenced from:
_xmlSecAppCryptoShutdown in crypto.o
"_xmlSecOpenSSLAppKeyCertLoad", referenced from:
_xmlSecAppCryptoSimpleKeysMngrKeyAndCertsLoad in crypto.o
"_xmlCheckVersion", referenced from:
_main in xmlsec.o
"_xmlSecOpenSSLAppDefaultKeysMngrAdoptKey", referenced from:
_xmlSecAppCryptoSimpleKeysMngrKeyGenerate in crypto.o
_xmlSecAppCryptoSimpleKeysMngrBinaryKeyLoad in crypto.o
_xmlSecAppCryptoSimpleKeysMngrPkcs12KeyLoad in crypto.o
_xmlSecAppCryptoSimpleKeysMngrKeyAndCertsLoad in crypto.o
"_xmlSecOpenSSLAppInit", referenced from:
_xmlSecAppCryptoInit in crypto.o
"_xmlSecOpenSSLTransformHmacSha1GetKlass", referenced from:
_xmlSecAppSignTmpl in xmlsec.o
"_xmlSecOpenSSLTransformSha1GetKlass", referenced from:
_xmlSecAppSignTmpl in xmlsec.o
"_xmlSecOpenSSLInit", referenced from:
_xmlSecAppCryptoInit in crypto.o
"_xmlSecOpenSSLAppGetDefaultPwdCallback", referenced from:
_xmlSecAppCryptoSimpleKeysMngrPkcs12KeyLoad in crypto.o
_xmlSecAppCryptoSimpleKeysMngrKeyAndCertsLoad in crypto.o
"_xmlSecOpenSSLAppShutdown", referenced from:
_xmlSecAppCryptoShutdown in crypto.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [xmlsec1] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


------------------ to here ------------------------


The strange thing is that I can't find these symbols with the
underscore, but without initial underscore I can find many results, an
example :

------------------ from here ------------------------
-------------- without underscore -------------
$ grep -Rin xmlSecOpenSSLAppGetDefaultPwdCallback ./
Binary file ./xmlsec1-1.2.18/apps/crypto.o matches
./xmlsec1-1.2.18/include/xmlsec/openssl/app.h:119:XMLSEC_CRYPTO_EXPORT
void* xmlSecOpenSSLAppGetDefaultPwdCallback(void);
./xmlsec1-1.2.18/include/xmlsec/openssl/symbols.h:109:#define
xmlSecCryptoAppGetDefaultPwdCallback
xmlSecOpenSSLAppGetDefaultPwdCallback
Binary file ./xmlsec1-1.2.18/src/openssl/.libs/libxmlsec1-openssl.a matches
./xmlsec1-1.2.18/src/openssl/app.c:1531: *
xmlSecOpenSSLAppGetDefaultPwdCallback:
./xmlsec1-1.2.18/src/openssl/app.c:1538:xmlSecOpenSSLAppGetDefaultPwdCallback(void)
{
./xmlsec1-1.2.18/src/openssl/crypto.c:250:
gXmlSecOpenSSLFunctions->cryptoAppDefaultPwdCallback =
(void*)xmlSecOpenSSLAppGetDefaultPwdCallback();
Binary file ./xmlsec1-1.2.18/src/openssl/libxmlsec1_openssl_la-app.o matches
Binary file ./xmlsec1-1.2.18/src/openssl/libxmlsec1_openssl_la-crypto.o matches


-------------- with underscore -------------
$ grep -Rin _xmlSecOpenSSLAppGetDefaultPwdCallback ./
Binary file ./xmlsec1-1.2.18/apps/crypto.o matches
Binary file ./xmlsec1-1.2.18/src/openssl/.libs/libxmlsec1-openssl.a matches
Binary file ./xmlsec1-1.2.18/src/openssl/libxmlsec1_openssl_la-app.o matches
Binary file ./xmlsec1-1.2.18/src/openssl/libxmlsec1_openssl_la-crypto.o matches

------------------ to here ------------------------

Why I obtain this error ?
Where are defined that symbols with underscore ?
What can I do to correct this error ?


Thank you for your help!
Bernardo Hoehl
2011-08-30 00:10:25 UTC
Permalink
Dear 84.IeOn,


Have you successfully built XMLSEC for iOS?

Thanks!


Bernardo

==========================
Post by 84.le0n
Hi Aleksey,
after some test now I get another error, during make phase.
These are the steps I've done, configuring for "build
i386-apple-darwin10" and "host i686-apple-darwin10" (for iOs simulator
1) make of static libxml2.a (not using original libxml2.dylib because
xmlsec requires newer version that that offered by Apple )
2) using this libxml2.a static lib I've built a static libxslt.a ,
version 1.1.26
3) then I've builded openssl libs (libcrypto.a and libssl.a), version 1.0.0.d
4) the last is xmlsec version 1.2.18, configured as follow
------------------ from here ------------------------
./configure \
--prefix=<destination_path> \
--build=i386-apple-darwin10 \
--host=i686-apple-darwin10 \
--enable-static \
--enable-static-linking \
--disable-shared \
--disable-crypto-dl \
--disable-apps-crypto-dl \
--disable-mscrypto \
--without-nspr \
--without-nss \
--without-seamonkey-ver \
--without-mozilla-ver \
--without-gcrypt \
--without-gnutls \
--with-default-crypto=openssl \
--with-libxml=<path_of_my_libxml2> \
--with-libxslt=<path_of_my_libxslt> \
--with-openssl=<path_of_my_openssl>
------------------ to here ------------------------
The configuration runs without problems and finds my libs correctly,
but doing make I get this error
------------------ from here ------------------------
_xmlSecAppCryptoSimpleKeysMngrInit in crypto.o
_xmlSecAppEncryptTmpl in xmlsec.o
_xmlSecAppCryptoSimpleKeysMngrCertLoad in crypto.o
_xmlSecAppCryptoSimpleKeysMngrLoad in crypto.o
_xmlSecAppCryptoSimpleKeysMngrSave in crypto.o
_xmlSecAppCryptoSimpleKeysMngrPkcs12KeyLoad in crypto.o
_xmlSecAppCryptoSimpleKeysMngrKeyAndCertsLoad in crypto.o
_xmlSecAppCryptoShutdown in crypto.o
_xmlSecAppCryptoSimpleKeysMngrKeyAndCertsLoad in crypto.o
_main in xmlsec.o
_xmlSecAppCryptoSimpleKeysMngrKeyGenerate in crypto.o
_xmlSecAppCryptoSimpleKeysMngrBinaryKeyLoad in crypto.o
_xmlSecAppCryptoSimpleKeysMngrPkcs12KeyLoad in crypto.o
_xmlSecAppCryptoSimpleKeysMngrKeyAndCertsLoad in crypto.o
_xmlSecAppCryptoInit in crypto.o
_xmlSecAppSignTmpl in xmlsec.o
_xmlSecAppSignTmpl in xmlsec.o
_xmlSecAppCryptoInit in crypto.o
_xmlSecAppCryptoSimpleKeysMngrPkcs12KeyLoad in crypto.o
_xmlSecAppCryptoSimpleKeysMngrKeyAndCertsLoad in crypto.o
_xmlSecAppCryptoShutdown in crypto.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [xmlsec1] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
------------------ to here ------------------------
The strange thing is that I can't find these symbols with the
underscore, but without initial underscore I can find many results, an
------------------ from here ------------------------
-------------- without underscore -------------
$ grep -Rin xmlSecOpenSSLAppGetDefaultPwdCallback ./
Binary file ./xmlsec1-1.2.18/apps/crypto.o matches
./xmlsec1-1.2.18/include/xmlsec/openssl/app.h:119:XMLSEC_CRYPTO_EXPORT
void* xmlSecOpenSSLAppGetDefaultPwdCallback(void);
./xmlsec1-1.2.18/include/xmlsec/openssl/symbols.h:109:#define
xmlSecCryptoAppGetDefaultPwdCallback
xmlSecOpenSSLAppGetDefaultPwdCallback
Binary file ./xmlsec1-1.2.18/src/openssl/.libs/libxmlsec1-openssl.a matches
./xmlsec1-1.2.18/src/openssl/app.c:1531: *
./xmlsec1-1.2.18/src/openssl/app.c:1538:xmlSecOpenSSLAppGetDefaultPwdCallback(void)
{
gXmlSecOpenSSLFunctions->cryptoAppDefaultPwdCallback =
(void*)xmlSecOpenSSLAppGetDefaultPwdCallback();
Binary file ./xmlsec1-1.2.18/src/openssl/libxmlsec1_openssl_la-app.o matches
Binary file ./xmlsec1-1.2.18/src/openssl/libxmlsec1_openssl_la-crypto.o matches
-------------- with underscore -------------
$ grep -Rin _xmlSecOpenSSLAppGetDefaultPwdCallback ./
Binary file ./xmlsec1-1.2.18/apps/crypto.o matches
Binary file ./xmlsec1-1.2.18/src/openssl/.libs/libxmlsec1-openssl.a matches
Binary file ./xmlsec1-1.2.18/src/openssl/libxmlsec1_openssl_la-app.o matches
Binary file ./xmlsec1-1.2.18/src/openssl/libxmlsec1_openssl_la-crypto.o matches
------------------ to here ------------------------
Why I obtain this error ?
Where are defined that symbols with underscore ?
What can I do to correct this error ?
Thank you for your help!
_______________________________________________
xmlsec mailing list
xmlsec at aleksey.com
http://www.aleksey.com/mailman/listinfo/xmlsec
84.le0n
2011-08-30 11:23:38 UTC
Permalink
Hi Bernardo,
I'm sorry but I can't build xmlsec for iOS.
And you? Do you have my same problem?

Bye,
Gabriele.
Post by Bernardo Hoehl
Dear 84.IeOn,
Have you successfully built XMLSEC for iOS?
Thanks!
Bernardo
==========================
Post by 84.le0n
Hi Aleksey,
after some test now I get another error, during make phase.
These are the steps I've done, configuring for "build
i386-apple-darwin10" and "host i686-apple-darwin10" (for iOs simulator
1) make of static libxml2.a (not using original libxml2.dylib because
xmlsec requires newer version that that offered by Apple )
2) using this libxml2.a static lib I've built a static libxslt.a ,
version 1.1.26
3) then I've builded openssl libs (libcrypto.a and libssl.a), version 1.0.0.d
4) the last is xmlsec version 1.2.18, configured as follow
------------------ from here ------------------------
./configure \
--prefix=<destination_path> \
--build=i386-apple-darwin10 \
--host=i686-apple-darwin10 \
--enable-static \
--enable-static-linking \
--disable-shared \
--disable-crypto-dl \
--disable-apps-crypto-dl \
--disable-mscrypto \
--without-nspr \
--without-nss \
--without-seamonkey-ver \
--without-mozilla-ver \
--without-gcrypt \
--without-gnutls \
--with-default-crypto=openssl \
--with-libxml=<path_of_my_libxml2> \
--with-libxslt=<path_of_my_libxslt> \
--with-openssl=<path_of_my_openssl>
------------------ to here ------------------------
The configuration runs without problems and finds my libs correctly,
but doing make I get this error
------------------ from here ------------------------
_xmlSecAppCryptoSimpleKeysMngrInit in crypto.o
_xmlSecAppEncryptTmpl in xmlsec.o
_xmlSecAppCryptoSimpleKeysMngrCertLoad in crypto.o
_xmlSecAppCryptoSimpleKeysMngrLoad in crypto.o
_xmlSecAppCryptoSimpleKeysMngrSave in crypto.o
_xmlSecAppCryptoSimpleKeysMngrPkcs12KeyLoad in crypto.o
_xmlSecAppCryptoSimpleKeysMngrKeyAndCertsLoad in crypto.o
_xmlSecAppCryptoShutdown in crypto.o
_xmlSecAppCryptoSimpleKeysMngrKeyAndCertsLoad in crypto.o
_main in xmlsec.o
_xmlSecAppCryptoSimpleKeysMngrKeyGenerate in crypto.o
_xmlSecAppCryptoSimpleKeysMngrBinaryKeyLoad in crypto.o
_xmlSecAppCryptoSimpleKeysMngrPkcs12KeyLoad in crypto.o
_xmlSecAppCryptoSimpleKeysMngrKeyAndCertsLoad in crypto.o
_xmlSecAppCryptoInit in crypto.o
_xmlSecAppSignTmpl in xmlsec.o
_xmlSecAppSignTmpl in xmlsec.o
_xmlSecAppCryptoInit in crypto.o
_xmlSecAppCryptoSimpleKeysMngrPkcs12KeyLoad in crypto.o
_xmlSecAppCryptoSimpleKeysMngrKeyAndCertsLoad in crypto.o
_xmlSecAppCryptoShutdown in crypto.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [xmlsec1] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
------------------ to here ------------------------
The strange thing is that I can't find these symbols with the
underscore, but without initial underscore I can find many results, an
------------------ from here ------------------------
-------------- without underscore -------------
$ grep -Rin xmlSecOpenSSLAppGetDefaultPwdCallback ./
Binary file ./xmlsec1-1.2.18/apps/crypto.o matches
./xmlsec1-1.2.18/include/xmlsec/openssl/app.h:119:XMLSEC_CRYPTO_EXPORT
void* xmlSecOpenSSLAppGetDefaultPwdCallback(void);
./xmlsec1-1.2.18/include/xmlsec/openssl/symbols.h:109:#define
xmlSecCryptoAppGetDefaultPwdCallback
xmlSecOpenSSLAppGetDefaultPwdCallback
Binary file ./xmlsec1-1.2.18/src/openssl/.libs/libxmlsec1-openssl.a matches
./xmlsec1-1.2.18/src/openssl/app.c:1531: *
./xmlsec1-1.2.18/src/openssl/app.c:1538:xmlSecOpenSSLAppGetDefaultPwdCallback(void)
{
gXmlSecOpenSSLFunctions->cryptoAppDefaultPwdCallback =
(void*)xmlSecOpenSSLAppGetDefaultPwdCallback();
Binary file ./xmlsec1-1.2.18/src/openssl/libxmlsec1_openssl_la-app.o matches
Binary file ./xmlsec1-1.2.18/src/openssl/libxmlsec1_openssl_la-crypto.o matches
-------------- with underscore -------------
$ grep -Rin _xmlSecOpenSSLAppGetDefaultPwdCallback ./
Binary file ./xmlsec1-1.2.18/apps/crypto.o matches
Binary file ./xmlsec1-1.2.18/src/openssl/.libs/libxmlsec1-openssl.a matches
Binary file ./xmlsec1-1.2.18/src/openssl/libxmlsec1_openssl_la-app.o matches
Binary file ./xmlsec1-1.2.18/src/openssl/libxmlsec1_openssl_la-crypto.o matches
------------------ to here ------------------------
Why I obtain this error ?
Where are defined that symbols with underscore ?
What can I do to correct this error ?
Thank you for your help!
_______________________________________________
xmlsec mailing list
xmlsec at aleksey.com
http://www.aleksey.com/mailman/listinfo/xmlsec
Loading...