bug-gnu-libiconv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnu-libiconv] libiconv doesn't build as an Android native libra


From: Bruno Haible
Subject: Re: [bug-gnu-libiconv] libiconv doesn't build as an Android native library
Date: Fri, 24 Jun 2011 03:48:59 +0200
User-agent: KMail/1.9.9

Hi,

Van Rafelghem Dominique wrote:
> In file included from 
> /data/android-8-toolchain/bin/../sysroot/usr/include/sys/time.h:33,
>                  from 
> /data/android-8-toolchain/bin/../sysroot/usr/include/time.h:32,
>                  from 
> /data/android-8-toolchain/bin/../sysroot/usr/include/wchar.h:39,
>                  from ./stdint.h:483,
>                  from 
> /data/android-8-toolchain/bin/../lib/gcc/arm-linux-androideabi/4.4.3/include-fixed/sys/types.h:43,
>                  from areadlink.c:30:
> /data/android-8-toolchain/bin/../sysroot/usr/include/linux/time.h:20: error: 
> expected specifier-qualifier-list before 'time_t'
> /data/android-8-toolchain/bin/../sysroot/usr/include/linux/time.h:26: error: 
> expected specifier-qualifier-list before 'time_t'

These errors occur in <linux/time.h>. Your first starting point should be to
look at this header file, then at the preprocessed compilation unit ($CC -E 
...),
to determine what goes wrong.

Maybe you need to tweak the generated stdint.h file, maybe not. It depends 
entirely
on your subsequent findings.

> I'm trying to build libiconv-1.13.1 as a native library to be used on Android.
> I used a standalone toolchain as described in the Android NDK documentation.
> I generated an Android application level 8 compiler using the android-ndk-r5b
> for linux on an x86 platform.  ...
> 
> I chose this method of building the library (instead of Google's build tools)
> ...

Already when using the stock Google build tools, your chances of getting help
would be higher on an Android specific forum. The more when you are using a
build tool chain that you set up yourself...

GNU libiconv uses little more than standard ISO C. If you get a compilation
error with it, chances are high that you will also get compilation errors in
many other software packages.

Bruno



reply via email to

[Prev in Thread] Current Thread [Next in Thread]