develooper Front page | perl.perl5.porters | Postings from January 2019

[perl #133787] perl-5.29.6 fails to build on Android 8.1 (Oreo)under Termux app environment

Thread Previous
James E Keenan via RT
January 22, 2019 00:32
[perl #133787] perl-5.29.6 fails to build on Android 8.1 (Oreo)under Termux app environment
Message ID:
On Mon, 21 Jan 2019 01:32:25 GMT, wrote:
> The CCTools app mentioned in isn't currently available
> in
> the Google Play store, so I'm instead using the Termux app (
> to attempt a native build. (Termux does have a
> Perl
> package, but it looks to have been cross-compiled rather than natively
> built.)
> The 4 build errors encountered when trying to "make minitest" are for
> "unknown type name 'nl_item'":
> In file included from ./perl.h:5288:
> ./proto.h:4496:43: error: unknown type name 'nl_item'
> STATIC const char*      S_my_nl_langinfo(const nl_item item, bool
> toggle);
>                                                ^
> ./proto.h:4500:47: error: unknown type name 'nl_item'
> PERL_CALLCONV const char*       Perl_langinfo(const nl_item item);
>                                                     ^
> locale.c:2416:21: error: unknown type name 'nl_item'
> Perl_langinfo(const nl_item item)
>                     ^
> locale.c:2426:24: error: unknown type name 'nl_item'
> S_my_nl_langinfo(const nl_item item, bool toggle)
>                        ^
> The Android C library has an apparently dummy definition for
> 'nl_item':
> <langinfo.h> nl_langinfo/nl_langinfo_l functions entered Android's
> libc in
> Oreo 8.0 release
> mirror/platform_bionic/blob/master/docs/
> And the libandroid-support package (installed by default) attempts to
> supplement this functionality:
> support/blob/master/include/langinfo.h
> I'm new to troubleshooting the build process - and building on Android
> - so
> the solution might be something trivial.
> (kwh did suggest trying to build without locales (IIRC) on IRC before
> Christmas, but the switches he suggested (and I've since forgotten)
> did not
> result in a successful build at the time.)
> Any suggestions gratefully received.

Do you have any information as to whether any production version of perl (e.g., perl-5.28.0) built on this platform?

If we knew that, we could at least distinguish between a regression and a "this has never been attempted before".

(I suspect the latter.  There were a few attempts to build on Android in 2014.  Go to and look for Android in the OS drop-down.)

Thank you very much.

James E Keenan (

via perlbug:  queue: perl5 status: new

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About