[xmlsec] Building xmlsec for iOs

84.le0n 84.le0n at gmail.com
Sat Aug 6 08:12:47 PDT 2011


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!


More information about the xmlsec mailing list