develooper Front page | perl.perl5.porters | Postings from September 2013

Re: Question on porting perl 5.16 to Android (no /bin/sh)

Thread Previous | Thread Next
From:
Ben Greear
Date:
September 5, 2013 00:06
Subject:
Re: Question on porting perl 5.16 to Android (no /bin/sh)
Message ID:
5227CB07.4040209@candelatech.com
On 09/04/2013 04:28 PM, Ben Greear wrote:
> On 09/04/2013 03:57 PM, Brian Fraser wrote:
>> On Wed, Sep 4, 2013 at 7:13 PM, Ben Greear <greearb@candelatech.com <mailto:greearb@candelatech.com>> wrote:
>>
>>     On 09/04/2013 03:04 PM, Ben Greear wrote:
>>
>>             ...//../lib/perl5/5.18.0/pod/__perltooc.pod
>>             ...//../lib/perl5/5.18.0/pod/__perltoot.pod
>>             ...//../lib/perl5/5.18.0/pod/__a2p.pod
>>
>>
>> This bit is suspicious. For me, it looks like:
>>
>> [...]
>>    /usr/local/lib/perl5/5.18.0/pod/perltooc.pod
>>    /usr/local/lib/perl5/5.18.0/pod/perltoot.pod
>>    /usr/local/lib/perl5/5.18.0/pod/a2p.pod
>> host/miniperl installman --destdir=/tmp/androidperl
>> Can't load module Encode, dynamic loading not available in this perl.
>> [...]
>>
>> Looks like it's trying to use installprefixexp instead of installprefix. But I'm way out of my depth here -- hopefully someone more versed in this area of the
>> code can chime in.
>>
>>
>
> I have things like this in my config.sh:
>
> archlib='.../../lib/perl5/5.18.0/linux-androideabi'
> archlibexp='.../../lib/perl5/5.18.0/linux-androideabi'
> archname64=''
> archname='linux-androideabi'
> archobjs=''
> asctime_r_proto='0'
> awk='awk'
> baserev='5.0'
> bash=''
> bin='.../'
> bin_ELF='define'
> binexp='.../'
>
> I suspect they are to blame, but I'm not sure how Configure came up with them...
>
>
> Maybe this relocatable-inc thing?
>
> initialinstalllocation="$binexp"
> : Default prefix is now "up one level from where the binaries are"
> case "$userelocatableinc" in
> $define|true|[yY]*)
>      bin=".../"
>      binexp=".../"
>      prefix=".../.."
>      prefixexp=".../.."
>      installprefixexp=".../.."
>      ;;
> esac

I disabled relocatableinc, re-ran Configure, and problem remained.  BUT:  If
I clone a new tree and run Configure with relocateableinc disabled, then I get
something that looks right.  Will test it out later.

I guess Configure remembers old stuff and is not easily persuaded to start
fresh.

./Configure -des -Duserelocatableinc -A undef:versiononly -U versiononly -Dusedevel -DDEBUGGING -Dusecrosscompile -Dcc=arm-linux-androideabi-gcc 
-Dtargethost=$DEVICE -Dsysroot=$ANDROID_TOOLCHAIN/sysroot -Dtargetdir=$TARGETDIR


Thanks,
Ben

>
>
> Thanks,
> Ben
>


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


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