On Sun, 20 Jan 2019 17:32:25 -0800, rich+perl@hyphen-dash-hyphen.info wrote: > The CCTools app mentioned in README.android isn't currently available > in > the Google Play store, so I'm instead using the Termux app ( > https://termux.com/) 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': > https://android.googlesource.com/platform/bionic/+/master/libc/include/nl_types.h > > <langinfo.h> nl_langinfo/nl_langinfo_l functions entered Android's > libc in > Oreo 8.0 release > https://github.com/aosp- > mirror/platform_bionic/blob/master/docs/status.md > > And the libandroid-support package (installed by default) attempts to > supplement this functionality: > https://github.com/termux/libandroid- > support/blob/master/include/langinfo.h It looks like something is wrong with your build environment. The libandroid-support langinfo.h uses the nl_item type: https://github.com/termux/libandroid-support/blob/08ad732aa81f0109410c362eb817fbac50c73b06/include/langinfo.h#L105 as does the bionic header: https://github.com/aosp-mirror/platform_bionic/blob/822326db922ac5d0e4dea8cff1d774e8f04db94a/libc/include/langinfo.h#L95 Could you please attach the complete config.sh generated by Configure? Thanks, Tony --- via perlbug: queue: perl5 status: open https://rt.perl.org/Ticket/Display.html?id=133787Thread Previous | Thread Next