Tue Jun 03 06:18:26 2014: Request 59224 was acted upon.
Transaction: Correspondence added by emanuel.reisin...@imtech-logistics.com
       Queue: PAR-Packer
     Subject: AW: [rt.cpan.org #59224] make error with version 1.006 on aix 5.3
   Broken in: (no value)
    Severity: (no value)
       Owner: RSCHUPP
  Requestors: emanuel.reisin...@ils.at
      Status: open
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=59224 >


I've tried the patch, but I couldn't apply it. 

../PAR-Packer-1.018> svn patch par_pl2c.patch
Skipped missing target: 'myldr/par_pl2c.pl   (working copy)'
Summary of conflicts:
  Skipped paths: 1

So I added the two lines manually and it doesn't worked.

BR
Emanuel


../PAR-Packer-1.018> lsattr -E -l sys0 -a ncargs
ncargs 6 ARG/ENV list size in 4K byte blocks True


cpan[10]> clean PAR::Packer
Running clean for module 'PAR::Packer'
Running make clean
  make clean already called once

cpan[11]> make PAR::Packer
Running make for module 'PAR::Packer'
  RSCHUPP/PAR-Packer-1.018.tar.gz
  Has already been unwrapped into directory 
/home/root/.cpan/build/PAR-Packer-1.018-O72JX7
Configuring R/RS/RSCHUPP/PAR-Packer-1.018.tar.gz with Makefile.PL
*** You have extra Perl library paths set in your environment.
    Please note that these paths (set with PERL5LIB or PERLLIB)
    are not honored by perl when running under taint mode, which
    may lead to problems. This is a limitation (by design) of
    Perl, not of PAR::Packer; but some of the problems may
    manifest here during installation.
Checking if your kit is complete...
Looks good
Prototype mismatch: sub main::prompt: none vs ($;$) at 
/usr/opt/perl5/lib/5.20.0/ExtUtils/MakeMaker.pm line 221.
Generating a Unix-style Makefile
Writing Makefile for par
Writing MYMETA.yml and MYMETA.json
Generating a Unix-style Makefile
Writing Makefile for PAR::Packer
Writing MYMETA.yml and MYMETA.json
  RSCHUPP/PAR-Packer-1.018.tar.gz
  /usr/opt/perl5/bin/perl Makefile.PL -- OK
Running make for R/RS/RSCHUPP/PAR-Packer-1.018.tar.gz
cp lib/PAR/Filter/Obfuscate.pm blib/lib/PAR/Filter/Obfuscate.pm
cp lib/PAR/Filter.pm blib/lib/PAR/Filter.pm
cp lib/PAR/Filter/PodStrip.pm blib/lib/PAR/Filter/PodStrip.pm
cp lib/PAR/Filter/PatchContent.pm blib/lib/PAR/Filter/PatchContent.pm
cp lib/PAR/Packer.pm blib/lib/PAR/Packer.pm
cp lib/PAR/StrippedPARL/Base.pm blib/lib/PAR/StrippedPARL/Base.pm
cp lib/pp.pm blib/lib/pp.pm
cp lib/PAR/Filter/Bleach.pm blib/lib/PAR/Filter/Bleach.pm
cp lib/PAR/Filter/Bytecode.pm blib/lib/PAR/Filter/Bytecode.pm
cp lib/App/Packer/PAR.pm blib/lib/App/Packer/PAR.pm
make[1]: Entering directory 
'/home/root/.cpan/build/PAR-Packer-1.018-O72JX7/myldr'
Makefile:755: warning: overriding recipe for target '.c.o'
Makefile:334: warning: ignoring old recipe for target '.c.o'
/usr/opt/perl5/bin/perl par_pl2c.pl my_par_pl < ../script/par.pl > my_par_pl.c
/usr/opt/perl5/bin/perl sha1.c.PL
cc_r -q32 -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 
-qnoansialias -qlanglvl=extc99 -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT 
-I/usr/local/include -q32 -D_LARGE_FILES  
-I/usr/opt/perl5/lib/5.20.0/aix-thread-multi/CORE  -DPARL_EXE=\"parl\" -O main.c
"main.c", line 121.23: 1506-068 (W) Operation between types "char*" and "const 
char*" is not allowed.
cc_r -q32 main.o  -bE:/usr/opt/perl5/lib/5.20.0/aix-thread-multi/CORE/perl.exp  
-brtl -bdynamic -L/usr/local/lib -b32 -bmaxdata:0x80000000  
-L/usr/opt/perl5/lib/5.20.0/aix-thread-multi/CORE -lperl -lbind -lnsl -ldl -lld 
-lm -lcrypt -lpthreads -lc  -o ./par
true
/usr/opt/perl5/bin/perl encode_append.pl Dynamic.in ./par Dynamic.pm
/usr/opt/perl5/bin/perl ./file2c.pl -c 30000 ./par 
/usr/opt/perl5/lib/5.20.0/aix-thread-multi/CORE/libperl.a > 
boot_embedded_files.c
cc_r -q32 -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 
-qnoansialias -qlanglvl=extc99 -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT 
-I/usr/local/include -q32 -D_LARGE_FILES  
-I/usr/opt/perl5/lib/5.20.0/aix-thread-multi/CORE  -DPARL_EXE=\"parl\" -O boot.c
cc_r -q32 boot.o   -bE:/usr/opt/perl5/lib/5.20.0/aix-thread-multi/CORE/perl.exp 
 -brtl -bdynamic -L/usr/local/lib -b32 -bmaxdata:0x80000000  
-L/usr/opt/perl5/lib/5.20.0/aix-thread-multi/CORE -lbind -lnsl -ldl -lld -lm 
-lcrypt -lpthreads -lc   -o ./boot
ld: 0711-319 WARNING: Exported symbol not defined: ASCII_TO_NEED
ld: 0711-319 WARNING: Exported symbol not defined: boot_DynaLoader
ld: 0711-319 WARNING: Exported symbol not defined: NATIVE_TO_NEED
ld: 0711-319 WARNING: Exported symbol not defined: Perl__add_range_to_invlist
ld: 0711-319 WARNING: Exported symbol not defined: Perl__core_swash_init
...
...
...
ld: 0711-319 WARNING: Exported symbol not defined: PL_warn_nosemi
ld: 0711-319 WARNING: Exported symbol not defined: PL_warn_reserved
ld: 0711-319 WARNING: Exported symbol not defined: PL_warn_uninit
ld: 0711-319 WARNING: Exported symbol not defined: PL_Yes
true
/usr/opt/perl5/bin/perl encode_append.pl Static.in ./boot Static.pm
cp Static.pm ../blib/lib/PAR/StrippedPARL/Static.pm
cp Dynamic.pm ../blib/lib/PAR/StrippedPARL/Dynamic.pm
/usr/opt/perl5/bin/perl -Mblib=.. run_with_inc.pl ./boot -q -B -Oparl
cp parl ../blib/script/parl
true ../blib/script/parl
/usr/opt/perl5/bin/perl -Mblib=.. run_with_inc.pl ./par -q -B -Oparldyn
./par: execution of ./par failed (errno=-1)
BEGIN failed--compilation aborted at -e line 965.
system(./par -I../blib/arch -I../blib/lib 
-I/usr/opt/perl5/lib/site_perl/5.20.0/aix-thread-multi 
-I/usr/opt/perl5/lib/site_perl/5.20.0 
-I/usr/opt/perl5/lib/5.20.0/aix-thread-multi -I/usr/opt/perl5/lib/5.20.0 
-I/usr/opt/perl5/lib/site_perl/5.18.2 -I/usr/opt/perl5/lib/site_perl/5.12.2 
-I/usr/opt/perl5/lib/site_perl/5.12.1 -I/usr/opt/perl5/lib/site_perl/5.8.8 
-I/usr/opt/perl5/lib/site_perl/5.8.2 -I/usr/opt/perl5/lib/site_perl -I. -q -B 
-Oparldyn) failed:
Makefile:801: recipe for target 'parldyn' failed
make[1]: *** [parldyn] Error 7
make[1]: Leaving directory 
'/home/root/.cpan/build/PAR-Packer-1.018-O72JX7/myldr'
Makefile:607: recipe for target 'subdirs' failed
make: *** [subdirs] Error 2
  RSCHUPP/PAR-Packer-1.018.tar.gz
  /usr/bin/make -- NOT OK
Failed during this command:
 RSCHUPP/PAR-Packer-1.018.tar.gz              : make NO


../PAR-Packer-1.018> chdev -l sys0 -a ncargs=7
sys0 changed
../PAR-Packer-1.018> lsattr -E -l sys0 -a ncargs
ncargs 7 ARG/ENV list size in 4K byte blocks True
../PAR-Packer-1.018> cpan

cpan[1]> clean PAR::Packer
Reading '/home/root/.cpan/Metadata'
  Database was generated on Tue, 03 Jun 2014 04:29:02 GMT
Running clean for module 'PAR::Packer'
Running make clean
...

cpan[2]> make PAR::Packer
...
...
Manifying blib/man3/PAR::StrippedPARL::Base.3
Manifying blib/man3/pp.3
  RSCHUPP/PAR-Packer-1.018.tar.gz
  /usr/bin/make -- OK



-----Ursprüngliche Nachricht-----
Von: Roderich Schupp via RT [mailto:bug-par-pac...@rt.cpan.org] 
Gesendet: Mittwoch, 28. Mai 2014 16:20
An: Reisinger Emanuel
Betreff: [rt.cpan.org #59224] make error with version 1.006 on aix 5.3

<URL: https://rt.cpan.org/Ticket/Display.html?id=59224 >

On 2014-05-28 05:53:59, emanuel.reisin...@imtech-logistics.com wrote:
> Can this ncargs requirement really not be avoided by the distribution?
> It was not a problem during earlier PAR::Packer distributions I built
> (at least 0.970, possibly 0.976).

Well script/par.pl went from 26536 bytes in PAR::Packer 0.970 to
29466 bytes in 1.018. Not much, but apparently enough to hit the 
limited argv space in AIX.

Can you try the patch below which shrinks the infamous fakeargv[2]
by about 8k.

Cheers, Roderich

Index: myldr/par_pl2c.pl
===================================================================
--- myldr/par_pl2c.pl   (revision 1461)
+++ myldr/par_pl2c.pl   (working copy)
@@ -13,6 +13,8 @@
 print "const char *$var =\n";
 foreach (split(/\n/, $slurp))
 {
+    s/^\s*|\s*$//g;             # strip leading and trailing whitespace
+    next if /^#|^$/;            # skip comment and empty lines
     s/(["\\])/\\$1/g;           # escape quotes and backslashes
     print qq["$_\\n"\n];
 }


Reply via email to