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