in reply to Re: PAR::Packer Installation; Prototype mismatch; libperl.so: File format not recognized; ActivePerl-5.14.2.1402-x86_64-linux
in thread PAR::Packer Installation; Prototype mismatch; libperl.so: File format not recognized; ActivePerl-5.14.2.1402-x86_64-linux

It does not work. I deleted /tmp/par-root and set PERL_TEST_POD=1.

ls /tmp
PAR-Packer-1.012/ PAR-Packer-1.012.tar

echo $PERL_TEST_POD
1

perl Makefile.PL
Checking if your kit is complete...
Looks good
Prototype mismatch: sub main::prompt: none vs ($;$) at /opt/ActivePerl-5.14/site/lib/ExtUtils/MakeMaker.pm line 219 objdump: /opt/ActivePerl-5.14/lib/CORE/libperl.so: File format not recognized
Writing Makefile for par
Writing MYMETA.yml and MYMETA.json
Writing Makefile for PAR::Packer
Writing MYMETA.yml and MYMETA.json

It complains "Prototype mismatch. libperl.so: File format not recognized", not "about a private /tmp/par-root". Any idea?

  • Comment on Re^2: PAR::Packer Installation; Prototype mismatch; libperl.so: File format not recognized; ActivePerl-5.14.2.1402-x86_64-linux

Replies are listed 'Best First'.
Re^3: PAR::Packer Installation; Prototype mismatch; libperl.so: File format not recognized; ActivePerl-5.14.2.1402-x86_64-linux
by Anonymous Monk on Dec 03, 2011 at 23:08 UTC
    run make then see what that says

      I got the same error, "/opt/ActivePerl-5.14/lib/CORE/libperl.so: file not recognized: File format not recognized".
      make
      cp lib/PAR/Packer.pm blib/lib/PAR/Packer.pm
      cp lib/PAR/StrippedPARL/Base.pm blib/lib/PAR/StrippedPARL/Base.pm
      cp lib/PAR/Filter/PodStrip.pm blib/lib/PAR/Filter/PodStrip.pm
      cp lib/PAR/Filter/Obfuscate.pm blib/lib/PAR/Filter/Obfuscate.pm
      cp lib/App/Packer/PAR.pm blib/lib/App/Packer/PAR.pm
      cp lib/PAR/Filter.pm blib/lib/PAR/Filter.pm
      cp lib/PAR/Filter/PatchContent.pm blib/lib/PAR/Filter/PatchContent.pm
      cp lib/PAR/Filter/Bytecode.pm blib/lib/PAR/Filter/Bytecode.pm
      cp lib/pp.pm blib/lib/pp.pm
      cp lib/PAR/Filter/Bleach.pm blib/lib/PAR/Filter/Bleach.pm
      make1: Entering directory `/tmp/PAR-Packer-1.012/myldr'
      Makefile:726: warning: overriding commands for target `.c.o' Makefile:332: warning: ignoring old commands for target `.c.o' /opt/ActivePerl-5.14/bin/perl-static ./file2c.pl -s ../script/par.pl my_par_pl.c load_my_par_pl /opt/ActivePerl-5.14/bin/perl-static sha1.c.PL gcc -c -D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/ActivePerl-5.14/lib/CORE -DPARL_EXE=\"parl\" -O2 main.c
      In file included from mktmpdir.h:85,
      from mktmpdir.c:1,
      from main.c:52:
      sha1.c: In function ‘sha_transform’:
      sha1.c:146: warning: right shift count >= width of type gcc main.o -s -Wl,-E -Wl,-rpath,/opt/ActivePerl-5.14/lib/CORE -L/opt/ActivePerl-5.14/lib/CORE -lperl -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc -o ./par
      /opt/ActivePerl-5.14/lib/CORE/libperl.so: file not
      recognized: File format not recognized
      collect2: ld returned 1 exit status
      make1: *** par Error 1
      make1: Leaving directory `/tmp/PAR-Packer-1.012/myldr'
      make: *** subdirs Error 2