[xmlsec] XMLSec for android.
Pratik Prajapati
pratik.prajapati at gmail.com
Tue Jun 4 12:31:06 PDT 2013
Can anybody help to port xmlsec to android? I have already started with
porting xmlsec to ICS 4.0.3
This is how I am trying to configure and compile it.
export ANDROID_ROOT=<path to android souce>
export
PATH=$PATH:$ANDROID_ROOT/prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin
./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
Attached my Android.mk
while building it i am getting following error.
# mm
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=ovation
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IMM76L
============================================
No private recovery resources for TARGET_DEVICE ovation
make: Entering directory
`/home/pprajapati/data/src/nook/diablo/nickel02_may30_ovation'
target thumb C: libxmlsec <= external/xmlsec1-1.2.19/src/openssl/ciphers.c
In file included from <command-line>:0:
./system/core/include/arch/linux-arm/AndroidConfig.h:221:1: warning:
"HAVE_MALLOC_H" redefined
<command-line>: warning: this is the location of the previous definition
In file included from external/openssl/include/openssl/err.h:124,
from
external/xmlsec1-1.2.19/include/xmlsec/openssl/crypto.h:21,
from
external/xmlsec1-1.2.19/include/xmlsec/openssl/evp.h:22,
from external/xmlsec1-1.2.19/src/openssl/ciphers.c:13:
external/openssl/include/openssl/bio.h:302: error: field 'ex_data' has
incomplete type
external/openssl/include/openssl/bio.h:307: error: return type defaults to
'int'
external/openssl/include/openssl/bio.h: In function 'DECLARE_STACK_OF':
external/openssl/include/openssl/bio.h:320: error: storage class specified
for parameter 'BIO_F_BUFFER_CTX'
external/openssl/include/openssl/bio.h:323: error: storage class specified
for parameter 'asn1_ps_func'
external/openssl/include/openssl/bio.h:558: error: expected declaration
specifiers or '...' before 'asn1_ps_func'
external/openssl/include/openssl/bio.h:559: error: expected declaration
specifiers or '...' before 'asn1_ps_func'
external/openssl/include/openssl/bio.h:560: error: expected declaration
specifiers or '...' before 'asn1_ps_func'
external/openssl/include/openssl/bio.h:561: error: expected declaration
specifiers or '...' before 'asn1_ps_func'
external/openssl/include/openssl/bio.h:562: error: expected declaration
specifiers or '...' before 'asn1_ps_func'
external/openssl/include/openssl/bio.h:563: error: expected declaration
specifiers or '...' before 'asn1_ps_func'
external/openssl/include/openssl/bio.h:564: error: expected declaration
specifiers or '...' before 'asn1_ps_func'
external/openssl/include/openssl/bio.h:565: error: expected declaration
specifiers or '...' before 'asn1_ps_func'
In file included from external/openssl/include/openssl/err.h:127,
from
external/xmlsec1-1.2.19/include/xmlsec/openssl/crypto.h:21,
from
external/xmlsec1-1.2.19/include/xmlsec/openssl/evp.h:22,
from external/xmlsec1-1.2.19/src/openssl/ciphers.c:13:
external/openssl/include/openssl/lhash.h:86: error: storage class specified
for parameter 'LHASH_NODE'
external/openssl/include/openssl/lhash.h:88: error: storage class specified
for parameter 'LHASH_COMP_FN_TYPE'
external/openssl/include/openssl/lhash.h:89: error: storage class specified
for parameter 'LHASH_HASH_FN_TYPE'
external/openssl/include/openssl/lhash.h:90: error: storage class specified
for parameter 'LHASH_DOALL_FN_TYPE'
external/openssl/include/openssl/lhash.h:91: error: storage class specified
for parameter 'LHASH_DOALL_ARG_FN_TYPE'
external/openssl/include/openssl/lhash.h:140: error: expected
specifier-qualifier-list before 'LHASH_NODE'
external/openssl/include/openssl/lhash.h:166: error: storage class
specified for parameter '_LHASH'
external/openssl/include/openssl/lhash.h:175: error: expected declaration
specifiers before '_LHASH'
external/openssl/include/openssl/lhash.h:176: error: expected ')' before
'*' token
external/openssl/include/openssl/lhash.h:177: error: expected ')' before
'*' token
external/openssl/include/openssl/lhash.h:178: error: expected ')' before
'*' token
external/openssl/include/openssl/lhash.h:179: error: expected ')' before
'*' token
external/openssl/include/openssl/lhash.h:180: error: expected ')' before
'*' token
external/openssl/include/openssl/lhash.h:181: error: expected ')' before
'*' token
external/openssl/include/openssl/lhash.h:183: warning: type defaults to
'int' in declaration of '_LHASH'
external/openssl/include/openssl/lhash.h:183: error: expected ';', ',' or
')' before '*' token
external/openssl/include/openssl/lhash.h:186: warning: type defaults to
'int' in declaration of '_LHASH'
external/openssl/include/openssl/lhash.h:186: error: expected ';', ',' or
')' before '*' token
external/openssl/include/openssl/lhash.h:187: warning: type defaults to
'int' in declaration of '_LHASH'
external/openssl/include/openssl/lhash.h:187: error: expected ';', ',' or
')' before '*' token
external/openssl/include/openssl/lhash.h:188: warning: type defaults to
'int' in declaration of '_LHASH'
external/openssl/include/openssl/lhash.h:188: error: expected ';', ',' or
')' before '*' token
external/openssl/include/openssl/lhash.h:192: warning: type defaults to
'int' in declaration of '_LHASH'
external/openssl/include/openssl/lhash.h:192: error: expected ';', ',' or
')' before '*' token
external/openssl/include/openssl/lhash.h:193: warning: type defaults to
'int' in declaration of '_LHASH'
external/openssl/include/openssl/lhash.h:193: error: expected ';', ',' or
')' before '*' token
external/openssl/include/openssl/lhash.h:194: warning: type defaults to
'int' in declaration of '_LHASH'
external/openssl/include/openssl/lhash.h:194: error: expected ';', ',' or
')' before '*' token
external/openssl/include/openssl/lhash.h:233: warning: empty declaration
external/openssl/include/openssl/lhash.h:234: warning: empty declaration
In file included from
prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/errno.h:36,
from external/openssl/include/openssl/err.h:140,
<and 1000s of more errors>
Can anyone help please!
--
Regards,
Pratik
On Fri, May 31, 2013 at 8:22 PM, Rahul Singh <rahul3894singh at gmail.com>wrote:
> Hi,
>
> Can you please share information about C Compiler for Android, if you get
> any.
>
> Regards,
> Rahul.
> Sent using Galaxy-Note
> On Jun 1, 2013 7:24 AM, "Aleksey Sanin" <aleksey at aleksey.com> wrote:
>
>> 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.
>>
>>
>> -- Aleksey
>>
>>
>> On May 31, 2013, at 2:18 PM, Pratik Prajapati <pratik.prajapati at gmail.com>
>> wrote:
>>
>> Hey Aleksey,
>>
>> I have a quick question for XMLSec. Sorry i could not find it on internet
>> so shooting you an email.
>>
>>
>> Is XMLSec lib available for Android? From where can i get it? I could
>> not find it in android source code.
>>
>> Thank you for your help.
>> --
>> Regards,
>> Pratik
>>
>>
>> _______________________________________________
>> xmlsec mailing list
>> xmlsec at aleksey.com
>> http://www.aleksey.com/mailman/listinfo/xmlsec
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.aleksey.com/pipermail/xmlsec/attachments/20130604/1af0ee37/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Android.mk
Type: application/octet-stream
Size: 2529 bytes
Desc: not available
URL: <http://www.aleksey.com/pipermail/xmlsec/attachments/20130604/1af0ee37/attachment.obj>
More information about the xmlsec
mailing list