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

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

Thread Previous | Thread Next
From:
Tony Cook
Date:
January 23, 2019 02:29
Subject:
Re: [perl #133787] perl-5.29.6 fails to build on Android 8.1 (Oreo)under Termux app environment
Message ID:
20190123022927.buptdtlwuypwlvff@mars.tony.develop-help.com
On Wed, Jan 23, 2019 at 01:48:32AM +0000, Richard Leach wrote:
> On Tue, Jan 22, 2019 at 10:53 PM Tony Cook <tony@develop-help.com> wrote:
> > It looks like Configure isn't finding your langinfo.h header.
> >
> > There's a couple of options, first, try adding the directory
> > containing langinfo.h to incpth:
> >
> >   sh Configure -des -Dsysroot=$SYSROOT -Alibpth="/system/lib /vendor/lib" -Dusedevel -Aincpth=/whereever/it/is
> >
> > You may need to add the existing names too:
> >
> >   sh Configure -des -Dsysroot=$SYSROOT -Alibpth="/system/lib /vendor/lib" -Dusedevel -Dincpth="/data/data/com.termux/files/usr/lib/clang/7.0.1/include /data/data/com.termux/files/usr/include /whereever/it/is"
> 
> No joy on either of those two, although "make minitest" got further:
> 
>     In file included from locale.c:48:
>     ./perl_langinfo.h:10:13: fatal error: 'langinfo.h' file not found
>     #   include <langinfo.h>
>                 ^~~~~~~~~~~~
>     1 error generated.
>     make: *** [makefile:245: locale.o] Error 1
> 
> 
> The preprocessor check needed
> "-I/data/data/com.termux/files/usr/include/libandroid-support" to
> succeed, and then adding that path to locincpth instead of incpth was
> enough to build miniperl:
> 
>     sh Configure -des -Dsysroot=$SYSROOT -Alibpth="/system/lib
> /vendor/lib" -Dusedevel
> -Alocincpth=/data/data/com.termux/files/usr/include/libandroid-support
> 
> Is that enough? Or should the path be added to BOTH locincpth and incpth?

That should be enough.

Tony

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About