bug-gnulib
[Top][All Lists]
Advanced

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

Re: Android porting results


From: Bruno Haible
Subject: Re: Android porting results
Date: Tue, 24 Jan 2012 12:38:59 +0100
User-agent: KMail/4.7.4 (Linux/3.1.0-1.2-desktop; KDE/4.7.4; x86_64; ; )

Simon Josefsson wrote:
> I don't have time nor interest to work on fixing this, I was just
> curious how far away from building on Android we were.

Any volunteers then? By doing this port, the volunteer can learn a lot
about gnulib's mechanisms.

> human.c:178: error: 'const struct lconv' has no member named 'decimal_point'
> human.c:181: error: 'const struct lconv' has no member named 'decimal_point'
> human.c:184: error: 'const struct lconv' has no member named 'grouping'
> human.c:185: error: 'const struct lconv' has no member named 'thousands_sep'
> human.c:186: error: 'const struct lconv' has no member named 'thousands_sep'
> nl_langinfo.c:156: error: 'struct lconv' has no member named 'decimal_point'
> nl_langinfo.c:158: error: 'struct lconv' has no member named 'thousands_sep'

We don't want to add #ifdef to files such as human.c. Therefore the fix will
be to enhance the locale.h override so that it defines
  #define lconv rpl_lconv
and overrides all functions that return a 'struct lconv *' or take a
'struct lconv *' argument.

> freadahead.c:41: error: 'FILE' has no member named '_ub'
> fflush.c:52: error: 'FILE' has no member named '_ub'
> fseeko.c:66: error: 'FILE' has no member named '_ub'

This requires inspection of the 'FILE' struct and testing of the
test-stdioext tarball that can be built from gnulib as described in
<http://lists.gnu.org/archive/html/bug-gnulib/2008-04/msg00134.html>.

> grantpt.c:48: error: redefinition of 'grantpt'
> mkfifo.c:30: error: redefinition of 'mkfifo'
> random.c:156: error: redefinition of 'random'
> random.c:166: error: redefinition of 'srandom'
> tcgetsid.c:29: error: redefinition of 'tcgetsid'

Here apparently gnulib's *.m4 macros have guessed wrong about the presence
of these functions. Can you find out why? (Consult config.log and the
header files.)

Bruno




reply via email to

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