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

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

Thread Next
Richard Leach
April 16, 2019 19:43
Re: [perl #133787] perl-5.29.6 fails to build on Android 8.1 (Oreo)under Termux app environment
Message ID:
On Tue, Feb 5, 2019 at 2:01 AM Richard Leach
<> wrote:
> This problem arises in, where an empty string
> is assigned to $cwd:
>   my $cwd = Cwd::getcwd();
> Discussion in
> suggests that's to be expected when building as a non-root user
> lacking some access to (grand)parent directories. That is in fact what
> the Termux environment seems to give you.

Now getting further in the build process with a fresh copy of blead
(including Tony's Getcwd patch from RT#133951) and updated Termux
packages, using the following commands:

    export SYSROOT=/data/data/com.termux/files
    export LD_LIBRARY_PATH="$SYSROOT/lib:`pwd`:`pwd`/lib:`pwd`/lib/auto:$LD_LIBRARY_PATH"
    sh Configure -des -Dsysroot=$SYSROOT -Alibpth="/system/lib
/vendor/lib" -Dusedevel -Ud_newlocale

Current status is:
* "make miniperl" - succeeds
* "make minitest" - fails with only 1 error (due to absence of /tmp:
discussed on IRC, see RT#134039 for patch)
* "make" - the perl executable gets built, but the following fatal
error is then encountered:

-MExtUtils::Command::MM -e 'cp_nonempty' --
 -typemap '/data/data/com.termux/files/home/PerlSource/perl4/perl/ext/B/../../lib/ExtUtils/typemap'
-typemap '/data/data/com.termux/files/home/PerlSource/perl4/perl/ext/B/typemap'
 B.xs > B.xsc
mv B.xsc B.c
cc -c   -fno-strict-aliasing -pipe -fstack-protector-strong
-Werror=declaration-after-statement -Werror=pointer-arith -Wextra
-Wc++-compat -Wwrite-strings -O2   -DVERSION=\"1.76\"
-DXS_VERSION=\"1.76\" -fPIC --sysroot=/data/data/com.termux/files
"-I../.."   B.c
In file included from B.xs:13:
../../perl.h:697:10: fatal error: 'sys/types.h' file not found

I'm not sure which sys/types.h is being looked for. There's one under
/data/data/com.termux/files/usr/include, but trying to pass that path
in -Alocincpth made no difference.

Any suggestions?


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