Please see previous email message first ...

I grabbed the PAR::Packer source and tried to compile manually (instead of 
using CPAN).  Here's what I get:

# perl Makefile.PL
Fetching 'PAR-Packer-1.008-i586-pc-sco3.2v5.0-5.8.7.par' from www.cpan.org... 
Fetching failed:
No compiler found, won't generate 'script/parl'!
Writing Makefile for PAR::Packer
# make
Skip blib/lib/PAR/Packer.pm (unchanged)
Skip blib/lib/PAR/Filter/Obfuscate.pm (unchanged)
Skip blib/lib/PAR/Filter/PodStrip.pm (unchanged)
Skip blib/lib/PAR/StrippedPARL/Base.pm (unchanged)
Skip blib/lib/App/Packer/PAR.pm (unchanged)
Skip blib/lib/PAR/Filter.pm (unchanged)
Skip blib/lib/PAR/Filter/PatchContent.pm (unchanged)
Skip blib/lib/PAR/StrippedPARL/Dynamic.pm (unchanged)
Skip blib/lib/PAR/Filter/Bytecode.pm (unchanged)
Skip blib/lib/pp.pm (unchanged)
Skip blib/lib/PAR/Filter/Bleach.pm (unchanged)
Skip blib/lib/PAR/StrippedPARL/Static.pm (unchanged)
        cp script/tkpp blib/script/tkpp
        /usr/bin/perl "-Iinc" -MExtUtils::MY -e 'MY->fixin(shift)' -- 
blib/script/tkpp
        cp script/pp blib/script/pp
        /usr/bin/perl "-Iinc" -MExtUtils::MY -e 'MY->fixin(shift)' -- 
blib/script/pp
        cp script/par.pl blib/script/par.pl
        /usr/bin/perl "-Iinc" -MExtUtils::MY -e 'MY->fixin(shift)' -- 
blib/script/par.pl
Manifying blib/man1/tkpp.1
Manifying blib/man1/pp.1
Manifying blib/man1/par.pl.1
Manifying blib/man3/App::Packer::PAR.3
Manifying blib/man3/PAR::StrippedPARL::Base.3
Manifying blib/man3/PAR::Filter::PodStrip.3
Manifying blib/man3/PAR::Filter::Obfuscate.3
Manifying blib/man3/PAR::Packer.3
Manifying blib/man3/PAR::Filter.3
Manifying blib/man3/PAR::StrippedPARL::Dynamic.3
Manifying blib/man3/PAR::Filter::PatchContent.3
Manifying blib/man3/PAR::Filter::Bytecode.3
Manifying blib/man3/pp.3
Manifying blib/man3/PAR::Filter::Bleach.3
Manifying blib/man3/PAR::StrippedPARL::Static.3


So I guess this is the problem:
Fetching 'PAR-Packer-1.008-i586-pc-sco3.2v5.0-5.8.7.par' from www.cpan.org... 
Fetching failed:
No compiler found, won't generate 'script/parl'!

The Makefile.PL thinks I don't have a compiler on the box.  I'll keep looking 
at it ... just wanted to include more information as I come across it.

Thanks.




-----Original Message-----
From: Michael Miller 
Sent: Friday, February 18, 2011 2:58 PM
To: 'Roderich Schupp'
Cc: '[email protected]'
Subject: RE: Trouble putting together a stand alone

I reverted several times to a fresh snapshot of my SCO 5.0.6 VM.  I'm trying to 
get PAR::Packer on the box and I'm still having trouble and need some advice.  
After several attempts I finally got PAR::Packer installed but now I'm getting 
the following error when I run:

pp -o update Update.pl

The error I get is:

PAR::StrippedPARL::Static->get_raw() did not return the raw binary data for a 
PAR loader at /usr/lib/perl5/site_perl/5.8/PAR/StrippedPARL/Base.pm line 141, 
<DATA> line 1.
Could not write temporary parl (class PAR::StrippedPARL::Static) to file 
'/tmp/parlmXAv' at /usr/lib/perl5/site_perl/5.8/PAR/StrippedPARL/Base.pm line 
65, <DATA> line 1.
/usr/bin/pp: Failed to extract a parl from 'PAR::StrippedPARL::Static' to file 
'parlfwKKHVe' at /usr/lib/perl5/site_perl/5.8/PAR/Packer.pm line 1172, <DATA> 
line 1.


Here's a summary of what I did to get PAR::Packer installed:
1) installed the OpenServer Development System (ODS) instead of going the gcc 
route ... the ODS compiler is from SCO
2) installed supplements needed to get a later version of perl (from a SCO 
VOLS.tar package) installed ... got perl up to 5.8.7
3) used cpan to install PAR ... no problems
4) used cpan to install PAR::Packer but had to force install ... tests did not 
pass

Here's the output from a cpan test of PAR::Packer in case it helps:

cpan> test PAR::Packer
Running test for module PAR::Packer
Running make for R/RS/RSCHUPP/PAR-Packer-1.008.tar.gz
  Is already unwrapped into directory /.cpan/build/PAR-Packer-1.008
  Has already been processed within this session Running make test
        PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" 
"test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/00-pod.t t/20-pp.t 
t/30-current_exec.t t/40-packer_cd_option.t t/90-rt59710.t t/00-pod.t 
............... skipped: Set environment variable PERL_TEST_POD=1 to test POD 
t/20-pp.t ................ skipped: 'parl' not found t/30-current_exec.t ...... 
# Please wait
PAR::StrippedPARL::Static->get_raw() did not return the raw binary data for a 
PAR loader at blib/lib/PAR/StrippedPARL/Base.pm line 141, <DATA> line 1.
Could not write temporary parl (class PAR::StrippedPARL::Static) to file 
'/tmp/parlRaRF' at blib/lib/PAR/StrippedPARL/Base.pm line 65, <DATA> line 1.
/.cpan/build/PAR-Packer-1.008/t/../blib/script/pp: Failed to extract a parl 
from 'PAR::StrippedPARL::Static' to file 'parluno3qEv' at 
blib/lib/PAR/Packer.pm line 1172, <DATA> line 1.
t/30-current_exec.t ...... 1/4
#   Failed test 'Created "/.cpan/build/PAR-Packer-1.008/t/test-10"'
#   at t/30-current_exec.t line 42.
Failed to create "/.cpan/build/PAR-Packer-1.008/t/test-10"!
# Looks like you planned 4 tests but ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test exited with 2 just after 1.
t/30-current_exec.t ...... Dubious, test returned 2 (wstat 512, 0x200) Failed 
4/4 subtests t/40-packer_cd_option.t .. PAR::StrippedPARL::Static->get_raw() 
did not return the raw binary data for a PAR loader at 
/.cpan/build/PAR-Packer-1.008/blib/lib/PAR/StrippedPARL/Base.pm line 141, 
<DATA> line 1.
Could not write temporary parl (class PAR::StrippedPARL::Static) to file 
'/tmp/parlwoSo' at 
/.cpan/build/PAR-Packer-1.008/blib/lib/PAR/StrippedPARL/Base.pm line 65, <DATA> 
line 1.
t/40-packer_cd_option.t: Failed to extract a parl from 
'PAR::StrippedPARL::Static' to file 'parlfZeADb5' at 
/.cpan/build/PAR-Packer-1.008/blib/lib/PAR/Packer.pm line 1172, <DATA> line 1.
# Looks like your test exited with 255 before it could output anything.
t/40-packer_cd_option.t .. Dubious, test returned 255 (wstat 65280, 0xff00) 
Failed 2/2 subtests t/90-rt59710.t ........... 
PAR::StrippedPARL::Static->get_raw() did not return the raw binary data for a 
PAR loader at /.cpan/build/PAR-Packer-1.008/blib/lib/PAR/StrippedPARL/Base.pm 
line 141, <DATA> line 1.
Could not write temporary parl (class PAR::StrippedPARL::Static) to file 
'/tmp/parl7sjN' at 
/.cpan/build/PAR-Packer-1.008/blib/lib/PAR/StrippedPARL/Base.pm line 65, <DATA> 
line 1.
/.cpan/build/PAR-Packer-1.008/t/../blib/script/pp: Failed to extract a parl 
from 'PAR::StrippedPARL::Static' to file 'parlxUjxwKc' at 
/.cpan/build/PAR-Packer-1.008/blib/lib/PAR/Packer.pm line 1172, <DATA> line 1.
t/90-rt59710.t ........... 1/3
#   Failed test 'Created "/tmp/rt59710"'
#   at t/90-rt59710.t line 21.
Failed to create "/tmp/rt59710"!
# Looks like you planned 3 tests but ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test exited with 2 just after 1.
t/90-rt59710.t ........... Dubious, test returned 2 (wstat 512, 0x200) Failed 
3/3 subtests

Test Summary Report
-------------------
t/30-current_exec.t    (Wstat: 512 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 4 tests but ran 1.
t/40-packer_cd_option.t (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 2 tests but ran 0.
t/90-rt59710.t         (Wstat: 512 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 3 tests but ran 1.
Files=5, Tests=2, 35 wallclock secs ( 0.03 usr  0.01 sys + 34.69 cusr  0.27 
csys = 35.00 CPU)
Result: FAIL
Failed 3/5 test programs. 2/2 subtests failed.
*** Error code 2 (bu21)
  /usr/bin/make test -- NOT OK

cpan>

I'll continue to play with this and see if I can get things working but any 
advice is much appreciated.

Thanks!


-Mike






-----Original Message-----
From: Michael Miller
Sent: Thursday, February 17, 2011 4:57 PM
To: 'Roderich Schupp'
Cc: '[email protected]'
Subject: RE: Trouble putting together a stand alone

I reverted to a fresh snapshot of my SCO 5.0.6 VM and started over.  I got a 
gcc compiler up and running but I still can't properly compile Par-Packer.  
This time however I end up with the following error when running make from 
within the myldr directory:



Dynamic linker: ./static: UDK executable cannot load OpenServer shared object: 
/usr/lib/libgnuintl.so.4

So I think this is a SCO specific problem but I'm running out of ideas on how 
to fix the problem.

I even tried running /udk/usr/ccs/bin/elfmark -t udk /usr/lib/libgnuintl.so.4 
but then the error switched to:

Dynamic linker: /.static: OpenServer executable cannot load UDK shared object: 
/usr/lib/libgnuintl.so.4

I just don't know what else to try ... I'll keep playing with it but any 
suggestions are much appreciated.

Thanks!


-Mike




-----Original Message-----
From: Michael Miller
Sent: Wednesday, February 16, 2011 10:37 PM
To: 'Roderich Schupp'
Cc: [email protected]
Subject: RE: Trouble putting together a stand alone

I took your advice and I'm trying to get Par-Packer up and running on my SCO 
5.0.6 box.  I finally got a working compiler but I'm having trouble getting 
Par-Packer compiled and installed.

I ran perl Makefile.PL followed by make and got:

cp lib/PAR/Packer.pm blib/lib/PAR/Packer.pm cp lib/PAR/Filter/Obfuscate.pm 
blib/lib/PAR/Filter/Obfuscate.pm cp lib/PAR/Filter/PodStrip.pm 
blib/lib/PAR/Filter/PodStrip.pm cp lib/PAR/StrippedPARL/Base.pm 
blib/lib/PAR/StrippedPARL/Base.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/StrippedPARL/Dynamic.pm blib/lib/PAR/StrippedPARL/Dynamic.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 cp 
lib/PAR/StrippedPARL/Static.pm blib/lib/PAR/StrippedPARL/Static.pm
make[1]: Entering directory `/LDM/par-packer/myldr'
perl sha1.c.PL sha1.c
cc -c -U M_XENIX -D PERL_SCO -D HAS_FPSETMASK -w0 -belf -I/usr/local/include 
-I/usr/gnu/include  -I/usr/local/lib/perl5/5.12.3/i386-sco/CORE  
-DPARL_EXE=\"parl\" -O0 main.c
cc: unrecognized option `-w0'
perl ./file2c.pl -s ../script/par.pl  my_par_pl.c load_my_par_pl cc -c -U 
M_XENIX -D PERL_SCO -D HAS_FPSETMASK -w0 -belf -I/usr/local/include 
-I/usr/gnu/include  -I/usr/local/lib/perl5/5.12.3/i386-sco/CORE  
-DPARL_EXE=\"parl\" -O0 my_par_pl.c
cc: unrecognized option `-w0'
ld main.o my_par_pl.o  -Wl,-Bexport -L/usr/local/lib  -L/usr/local/lib 
-L/usr/gnu/lib  -L/usr/local/lib/perl5/5.12.3/i386-sco/CORE -lperl -lintl 
-lsocket -lnsl -lld -lm -lcrypt -lsec -lc -o ./par
ld: ERROR: Illegal option -- W
TO FIX: usage: i386ld [-abmrstvGV] [-defholuyzBILMR argument] file(s) ...
make[1]: *** [par] Error 1
make[1]: Leaving directory `/LDM/par-packer/myldr'
make: *** [subdirs] Error 2

I guess my compiler doesn't understand the -W  ... I decided to edit the 
"myldr/Makefile" and take out the -W1 argument; I'm not sure how that affects 
things but I left the -Bexport so PERL_LDFLAGS and STATIC_LDFLAGS now look 
something like:

PERL_LDFLAGS=-Bexport ... (-L paths and such) STATIC_LDFLAGS=-Bexport ... (-L 
paths and such)

I ran make again and now I get the following error:

make[1]: Entering directory `/LDM/par-packer/myldr'
ld main.o my_par_pl.o  -Bexport -L/usr/local/lib  -L/usr/local/lib 
-L/usr/gnu/lib  -L/usr/local/lib/perl5/5.12.3/i386-sco/CORE -lperl -lintl 
-lsocket -lnsl -lld -lm -lcrypt -lsec -lc -o ./par perl -e1 perl ./file2c.pl  
-c 30000 ./par my_par.c load_my_par perl ./file2c.pl  -c 30000 -n libperl.a 
/usr/local/lib/perl5/5.12.3/i386-sco/CORE/libperl.a my_libperl.c 
load_my_libperl cc -c -U M_XENIX -D PERL_SCO -D HAS_FPSETMASK -w0 -belf 
-I/usr/local/include -I/usr/gnu/include  
-I/usr/local/lib/perl5/5.12.3/i386-sco/CORE  -DPARL_EXE=\"parl\" -O0 static.c
cc: unrecognized option `-w0'
ld static.o -Bexport -L/usr/local/lib  -L/usr/local/lib -L/usr/gnu/lib  
-L/usr/local/lib/perl5/5.12.3/i386-sco/CORE -lintl -lsocket -lnsl -lld -lm 
-lcrypt -lsec -lc  -o ./static perl -e1 perl parlsig.pl ./static ./par 1 30000 
perl -Mblib run_with_inc.pl ./static -q -B -O../script/parl
make[1]: *** [../script/parl] Error 1
make[1]: Leaving directory `/LDM/par-packer/myldr'
make: *** [subdirs] Error 2

I couldn't figure out how to get past this error. I commented out the lines in 
run_with_inc.pl and copied static to ../script/parl myself and was able to 
finish compiling and run make install but when I tried to use pp it errored out 
on me:

pp -o update Update.pl
/usr/local/bin/pp: Failed to extract a parl from 'PAR::StrippedPARL::Static' to 
file 'parlxorP3Qb' at /usr/local/lib/perl5/site_perl/5.12.3/PAR/Packer.pm line 
1172, <DATA> line 1.

Any help on getting pp up and running on my SCO 5.0.6 is much appreciated.

Thanks.


-Mike


-----Original Message-----
From: Roderich Schupp [mailto:[email protected]]
Sent: Wednesday, February 16, 2011 3:45 AM
To: Michael Miller
Cc: [email protected]
Subject: Re: Trouble putting together a stand alone

On Tue, Feb 15, 2011 at 9:47 PM, Michael Miller <[email protected]> wrote:
> Floating exception - core dumped
>
> So my deployment package to the 1st target box works but the 2nd target (SCO 
> 5.0.6) does not.

Well, the packed executable is kinda sensitive to the OS environment, so I 
wouldn't expect it to work on e.g. a Linux box (on the same hardware platform). 
But I would expect that any executable built on SCO 5.0.7 would run on SCO 
5.0.6 unchanged on account that the versions differ only in the third position. 
But vendors usually guarantee compatibility only in the other direction. IOW: 
try packing your application on SCO 5.0.6.

Cheers, Roderich

#####################################################################################
Attention:
The information contained in this message and or attachments is intended
only for the person or entity to which it is addressed and may contain
confidential and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon,
this information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact the sender and
delete the material from any system and destroy any copies.
#####################################################################################

Reply via email to