<div dir="ltr">Can anybody help to port xmlsec to android? I have already started with porting xmlsec to ICS 4.0.3<div><br></div><div style>This is how I am trying to configure and compile it.</div><div><br></div><div><div>
export ANDROID_ROOT=<path to android souce></div><div>export PATH=$PATH:$ANDROID_ROOT/prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin<br></div></div><div>./configure -host=arm-linux-androideabi CC=arm-linux-androideabi-gcc LD=arm-linux-androideabi-ld CPPFLAGS="-I$ANDROID_ROOT/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/" CFLAGS="-nostdlib" LDFLAGS="-Wl,-rpath-link=$ANDROID_ROOT/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/lib/ -L$ANDROID_ROOT/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/lib/" --with-libxslt-src="$ANDROID_ROOT/external/libxslt/libxslt" --enable-crypto-dl=no<br>
</div><div><br></div><div><br></div><div style>Attached my Android.mk</div><div style><br></div><div style>while building it i am getting following error.</div><div style># mm</div><div style><div>============================================</div>
<div>PLATFORM_VERSION_CODENAME=REL</div><div>PLATFORM_VERSION=4.0.4</div><div>TARGET_PRODUCT=ovation</div><div>TARGET_BUILD_VARIANT=eng</div><div>TARGET_BUILD_TYPE=release</div><div>TARGET_BUILD_APPS=</div><div>TARGET_ARCH=arm</div>
<div>TARGET_ARCH_VARIANT=armv7-a-neon</div><div>HOST_ARCH=x86</div><div>HOST_OS=linux</div><div>HOST_BUILD_TYPE=release</div><div>BUILD_ID=IMM76L</div><div>============================================</div><div>No private recovery resources for TARGET_DEVICE ovation</div>
<div>make: Entering directory `/home/pprajapati/data/src/nook/diablo/nickel02_may30_ovation'</div><div>target thumb C: libxmlsec <= external/xmlsec1-1.2.19/src/openssl/ciphers.c</div><div>In file included from <command-line>:0:</div>
<div>./system/core/include/arch/linux-arm/AndroidConfig.h:221:1: warning: "HAVE_MALLOC_H" redefined</div><div><command-line>: warning: this is the location of the previous definition</div><div>In file included from external/openssl/include/openssl/err.h:124,</div>
<div>                 from external/xmlsec1-1.2.19/include/xmlsec/openssl/crypto.h:21,</div><div>                 from external/xmlsec1-1.2.19/include/xmlsec/openssl/evp.h:22,</div><div>                 from external/xmlsec1-1.2.19/src/openssl/ciphers.c:13:</div>
<div>external/openssl/include/openssl/bio.h:302: error: field 'ex_data' has incomplete type</div><div>external/openssl/include/openssl/bio.h:307: error: return type defaults to 'int'</div><div>external/openssl/include/openssl/bio.h: In function 'DECLARE_STACK_OF':</div>
<div>external/openssl/include/openssl/bio.h:320: error: storage class specified for parameter 'BIO_F_BUFFER_CTX'</div><div>external/openssl/include/openssl/bio.h:323: error: storage class specified for parameter 'asn1_ps_func'</div>
<div>external/openssl/include/openssl/bio.h:558: error: expected declaration specifiers or '...' before 'asn1_ps_func'</div><div>external/openssl/include/openssl/bio.h:559: error: expected declaration specifiers or '...' before 'asn1_ps_func'</div>
<div>external/openssl/include/openssl/bio.h:560: error: expected declaration specifiers or '...' before 'asn1_ps_func'</div><div>external/openssl/include/openssl/bio.h:561: error: expected declaration specifiers or '...' before 'asn1_ps_func'</div>
<div>external/openssl/include/openssl/bio.h:562: error: expected declaration specifiers or '...' before 'asn1_ps_func'</div><div>external/openssl/include/openssl/bio.h:563: error: expected declaration specifiers or '...' before 'asn1_ps_func'</div>
<div>external/openssl/include/openssl/bio.h:564: error: expected declaration specifiers or '...' before 'asn1_ps_func'</div><div>external/openssl/include/openssl/bio.h:565: error: expected declaration specifiers or '...' before 'asn1_ps_func'</div>
<div>In file included from external/openssl/include/openssl/err.h:127,</div><div>                 from external/xmlsec1-1.2.19/include/xmlsec/openssl/crypto.h:21,</div><div>                 from external/xmlsec1-1.2.19/include/xmlsec/openssl/evp.h:22,</div>
<div>                 from external/xmlsec1-1.2.19/src/openssl/ciphers.c:13:</div><div>external/openssl/include/openssl/lhash.h:86: error: storage class specified for parameter 'LHASH_NODE'</div><div>external/openssl/include/openssl/lhash.h:88: error: storage class specified for parameter 'LHASH_COMP_FN_TYPE'</div>
<div>external/openssl/include/openssl/lhash.h:89: error: storage class specified for parameter 'LHASH_HASH_FN_TYPE'</div><div>external/openssl/include/openssl/lhash.h:90: error: storage class specified for parameter 'LHASH_DOALL_FN_TYPE'</div>
<div>external/openssl/include/openssl/lhash.h:91: error: storage class specified for parameter 'LHASH_DOALL_ARG_FN_TYPE'</div><div>external/openssl/include/openssl/lhash.h:140: error: expected specifier-qualifier-list before 'LHASH_NODE'</div>
<div>external/openssl/include/openssl/lhash.h:166: error: storage class specified for parameter '_LHASH'</div><div>external/openssl/include/openssl/lhash.h:175: error: expected declaration specifiers before '_LHASH'</div>
<div>external/openssl/include/openssl/lhash.h:176: error: expected ')' before '*' token</div><div>external/openssl/include/openssl/lhash.h:177: error: expected ')' before '*' token</div><div>
external/openssl/include/openssl/lhash.h:178: error: expected ')' before '*' token</div><div>external/openssl/include/openssl/lhash.h:179: error: expected ')' before '*' token</div><div>external/openssl/include/openssl/lhash.h:180: error: expected ')' before '*' token</div>
<div>external/openssl/include/openssl/lhash.h:181: error: expected ')' before '*' token</div><div>external/openssl/include/openssl/lhash.h:183: warning: type defaults to 'int' in declaration of '_LHASH'</div>
<div>external/openssl/include/openssl/lhash.h:183: error: expected ';', ',' or ')' before '*' token</div><div>external/openssl/include/openssl/lhash.h:186: warning: type defaults to 'int' in declaration of '_LHASH'</div>
<div>external/openssl/include/openssl/lhash.h:186: error: expected ';', ',' or ')' before '*' token</div><div>external/openssl/include/openssl/lhash.h:187: warning: type defaults to 'int' in declaration of '_LHASH'</div>
<div>external/openssl/include/openssl/lhash.h:187: error: expected ';', ',' or ')' before '*' token</div><div>external/openssl/include/openssl/lhash.h:188: warning: type defaults to 'int' in declaration of '_LHASH'</div>
<div>external/openssl/include/openssl/lhash.h:188: error: expected ';', ',' or ')' before '*' token</div><div>external/openssl/include/openssl/lhash.h:192: warning: type defaults to 'int' in declaration of '_LHASH'</div>
<div>external/openssl/include/openssl/lhash.h:192: error: expected ';', ',' or ')' before '*' token</div><div>external/openssl/include/openssl/lhash.h:193: warning: type defaults to 'int' in declaration of '_LHASH'</div>
<div>external/openssl/include/openssl/lhash.h:193: error: expected ';', ',' or ')' before '*' token</div><div>external/openssl/include/openssl/lhash.h:194: warning: type defaults to 'int' in declaration of '_LHASH'</div>
<div>external/openssl/include/openssl/lhash.h:194: error: expected ';', ',' or ')' before '*' token</div><div>external/openssl/include/openssl/lhash.h:233: warning: empty declaration</div><div>
external/openssl/include/openssl/lhash.h:234: warning: empty declaration</div><div>In file included from prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/errno.h:36,</div><div>                 from external/openssl/include/openssl/err.h:140,</div>
<div><br></div><div style><and 1000s of more errors></div></div><div><br></div><div><br></div><div style>Can anyone help please!</div><div style><br></div><div style><br></div></div><div class="gmail_extra"><br clear="all">
<div><div>--</div><div>Regards,</div><div>Pratik</div></div>
<br><br><div class="gmail_quote">On Fri, May 31, 2013 at 8:22 PM, Rahul Singh <span dir="ltr"><<a href="mailto:rahul3894singh@gmail.com" target="_blank">rahul3894singh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p dir="ltr">Hi,</p>
<p dir="ltr">Can you please share information about C Compiler for Android, if you get any.</p>
<p dir="ltr">Regards,<br>
Rahul.<br>
Sent using Galaxy-Note</p>
<div class="gmail_quote"><div><div class="h5">On Jun 1, 2013 7:24 AM, "Aleksey Sanin" <<a href="mailto:aleksey@aleksey.com" target="_blank">aleksey@aleksey.com</a>> wrote:<br type="attribution"></div></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div dir="auto"><div>I am not aware of android build but you have source code so it should be possible to build it yourself as long as there is a reasonable C compiler.<br><br><div><br></div>-- <span>Aleksey</span><div><div>

<br></div></div></div><div><br>On May 31, 2013, at 2:18 PM, Pratik Prajapati <<a href="mailto:pratik.prajapati@gmail.com" target="_blank">pratik.prajapati@gmail.com</a>> wrote:<br><br></div><blockquote type="cite">
<div>
<div dir="ltr"><span style="font-size:medium;font-family:'Times New Roman'">Hey Aleksey,</span><div><span style="font-size:medium;font-family:'Times New Roman'"><br></span></div>
<div><span style="font-size:medium;font-family:'Times New Roman'">I have a quick question for XMLSec. Sorry i could not find it on internet so shooting you an email.</span></div><div><span style="font-size:medium;font-family:'Times New Roman'"><br>


</span></div><div><span style="font-size:medium;font-family:'Times New Roman'"><br></span></div><div><span style="font-size:medium;font-family:'Times New Roman'">Is </span><span style="font-size:medium;font-family:'Times New Roman'">XMLSec lib available for Android? From where can i get it? I could not find it in android source code.</span></div>


<div><span style="font-size:medium;font-family:'Times New Roman'"> </span></div><div><font color="#000000" face="Times New Roman" size="3">Thank you for your help.<br clear="all"></font><div><div>
--</div><div>Regards,</div><div>Pratik</div></div>
</div></div>
</div></blockquote></div><br></div></div>_______________________________________________<br>
xmlsec mailing list<br>
<a href="mailto:xmlsec@aleksey.com" target="_blank">xmlsec@aleksey.com</a><br>
<a href="http://www.aleksey.com/mailman/listinfo/xmlsec" target="_blank">http://www.aleksey.com/mailman/listinfo/xmlsec</a><br>
<br></blockquote></div>
</blockquote></div><br></div>