[rt.cpan.org #113618] Strange issue with not packing libperl.dylib

[email protected] ("Philip Kime via RT")
Newsgroups perl.par
Message-ID <[email protected]>
Sun Apr 10 11:37:22 2016: Request 113618 was acted upon.
Transaction: Correspondence added by PHILKIME
       Queue: PAR-Packer
     Subject: Strange issue with not packing libperl.dylib
   Broken in: 1.030
    Severity: Important
       Owner: Nobody
  Requestors: [email protected]
      Status: open
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=113618 >


Maybe a clue. Here is the PAR::Packer build log from the actual build machine. Perhaps there is an otool difference on later OSX builds? I build on 10.6 as the earliest viable 64-bit platform - that otool error is new as of 1.30



bbf-osx106:PAR-Packer-1.030-cHZXau root# /opt/local/bin/perl Makefile.PL
Checking if your kit is complete...
Looks good
Prototype mismatch: sub main::prompt: none vs ($;$) at /opt/local/lib/perl5/site_perl/5.22/ExtUtils/MakeMaker.pm line 228.
Generating a Unix-style Makefile
Writing Makefile for myldr
Writing MYMETA.yml and MYMETA.json
Generating a Unix-style Makefile
Writing Makefile for PAR::Packer
Writing MYMETA.yml and MYMETA.json
bbf-osx106:PAR-Packer-1.030-cHZXau root# make
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/Obfuscate.pm blib/lib/PAR/Filter/Obfuscate.pm
cp lib/App/Packer/PAR.pm blib/lib/App/Packer/PAR.pm
cp lib/PAR/Filter/Bytecode.pm blib/lib/PAR/Filter/Bytecode.pm
cp lib/PAR/StrippedPARL/Base.pm blib/lib/PAR/StrippedPARL/Base.pm
cp lib/PAR/Filter/Bleach.pm blib/lib/PAR/Filter/Bleach.pm
cp lib/PAR/Packer.pm blib/lib/PAR/Packer.pm
cp lib/PAR/Filter/PodStrip.pm blib/lib/PAR/Filter/PodStrip.pm
cp lib/pp.pm blib/lib/pp.pm
Makefile:755: warning: overriding commands for target `.c.o'
Makefile:337: warning: ignoring old commands for target `.c.o'
"/opt/local/bin/perl5.22" par_pl2c.pl my_par_pl < ../script/par.pl > my_par_pl.c 
"/opt/local/bin/perl5.22" sha1.c.PL
/usr/bin/gcc-4.2 -c -pipe -Os  -fno-common -DPERL_DARWIN -I/opt/local/include -fno-strict-aliasing -fstack-protector -I/opt/local/include  -I/opt/local/lib/perl5/5.22/darwin-thread-multi-2level/CORE  -DPARL_EXE=\"parl\" -O3 main.c
main.c: In function 'main':
main.c:121: warning: assignment discards qualifiers from pointer target type
env MACOSX_DEPLOYMENT_TARGET=10.6 /usr/bin/gcc-4.2 main.o  -L/opt/local/lib -Wl,-headerpad_max_install_names  -fstack-protector  -L/opt/local/lib/perl5/5.22/darwin-thread-multi-2level/CORE -lperl -lpthread -ldl -lm -lutil -lc  -o ./par
true
"/opt/local/bin/perl5.22" encode_append.pl Dynamic.in ./par Dynamic.pm
"/opt/local/bin/perl5.22" embed_files.pl -c 32768 ./par > boot_embedded_files.c
otool: unknown char `-' in flag --version

Usage: otool [-fahlLDtdorSTMRIHvVcXm] <object file> ...
	-f print the fat headers
	-a print the archive header
	-h print the mach header
	-l print the load commands
	-L print shared libraries used
	-D print shared library id name
	-t print the text section (disassemble with -v)
	-p <routine name>  start dissassemble from routine name
	-s <segname> <sectname> print contents of section
	-d print the data section
	-o print the Objective-C segment
	-r print the relocation entries
	-S print the table of contents of a library
	-T print the table of contents of a dynamic shared library
	-M print the module table of a dynamic shared library
	-R print the reference table of a dynamic shared library
	-I print the indirect symbol table
	-H print the two-level hints table
	-v print verbosely (symbolically) when possible
	-V print disassembled operands symbolically
	-c print argument strings of a core file
	-X print no leading addresses or headers
	-m don't use archive(member) syntax
	-B force Thumb disassembly (ARM objects only)
# fall back to guessing what DLLs are needed by ./par
# embedding "./par" as "par"
/usr/bin/gcc-4.2 -c -pipe -Os  -fno-common -DPERL_DARWIN -I/opt/local/include -fno-strict-aliasing -fstack-protector -I/opt/local/include  -I/opt/local/lib/perl5/5.22/darwin-thread-multi-2level/CORE  -DPARL_EXE=\"parl\" -O3 boot.c
env MACOSX_DEPLOYMENT_TARGET=10.6 /usr/bin/gcc-4.2 boot.o   -o ./boot
true
"/opt/local/bin/perl5.22" 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
"/opt/local/bin/perl5.22" -Mblib=.. run_with_inc.pl ./par -q -B -Oparldyn
cp parldyn ../blib/script/parldyn
true ../blib/script/parldyn
"/opt/local/bin/perl5.22" -Mblib=.. run_with_inc.pl ./boot -q -B -Oparl
cp parl ../blib/script/parl
true ../blib/script/parl
Manifying 2 pod documents
cp script/tkpp blib/script/tkpp
"/opt/local/bin/perl5.22" "-Iinc" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/tkpp
cp script/par.pl blib/script/par.pl
"/opt/local/bin/perl5.22" "-Iinc" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/par.pl
cp script/pp blib/script/pp
"/opt/local/bin/perl5.22" "-Iinc" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/pp
Manifying 4 pod documents
Manifying 10 pod documents
bbf-osx106:PAR-Packer-1.030-cHZXau root#
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.