develooper Front page | perl.perl5.porters | Postings from November 2017

perl.exp (AIX)

From:
H.Merijn Brand
Date:
November 28, 2017 11:45
Subject:
perl.exp (AIX)
Message ID:
20171128124521.3f498bbf@pc09.procura.nl
https://smoke.procura.nl/aix5300/511/cc/mktest.rpt

 → ../cpan/ExtUtils-MakeMaker/t/03-xsstatic.t....FAILED

https://smoke.procura.nl/aix5300/511/cc/smoke.log →

 # xlc -q32 -L/pro/local/lib -brtl -bdynamic -b32 -bmaxdata:0x80000000 \
    -bE:/pro/lib/perl5/5.27.7/aix/CORE/../../../../perl.exp Test.o -O \
    ./perlmain.o -o perl "blib/arch/auto/XS/Test/Test.a" \
    "../../../../libperl.a" `cat blib/arch/auto/XS/Test/extralibs.all` \
    -lpthread -lbind -lnsl -ldl -lld -lm -lcrypt -lc 
 # ld: 0706-004 Cannot find or read export file: /pro/lib/perl5/5.27.7/aix/CORE/../../../../perl.exp
 #  ld:accessx(): A file or directory in the path name does not exist.

jhi hinted me that it might be perl.exp is not yet installed at that
point in time. That is not correct, but it points to the real problem

EU::MM probably needs some sort of trigger to use the perl.exp created
in the build tree, instead of what Configure tells the toolchain:

  Configure:aix) ccdlflags="$ccdlflags -bE:$installarchlib/CORE/perl.exp" ;;

$installarchlib is not yet available by the time EU::MM is building in core
as it is put there by installperl much later:

  installperl: push(@corefiles,'perl.exp') if $^O eq 'aix';

And perl.exp is generated before that in Makefile.SH (and thus Makefile)

  Makefile.SH:$(MINIPERL) makedef.pl --sort-fold PLATFORM=aix CC_FLAGS="$(OPTIMIZE)"

So perl.exp is created by running makedef.pl using miniperl

makedef.pl states in leading comments:

  # Needed by WIN32 and OS/2 for creating perl.dll,
  # and by AIX for creating libperl.a when -Duseshrplib is in effect,
  # and by VMS for creating perlshr.exe.

and looking back, I think that AIX needs it always, not only with -Duseshrplib

-- 
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.27   porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/        http://www.test-smoke.org/
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/



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