1753782 Members
7359 Online
108799 Solutions
New Discussion юеВ

Perl PAR module problem

 
generic_1
Respected Contributor

Perl PAR module problem

Hello I am having problems getting PAR to work. Here is the error information.

# /usr/local/bin/perl Makefile.PL
*** ExtUtils::AutoInstall version 0.61
*** Checking for dependencies...
[Core Features]
- File::Temp ...loaded. (0.14 >= 0.05)
- Compress::Zlib ...loaded. (1.34 >= 1.3)
- Archive::Zip ...loaded. (1.16 >= 1)
- Module::ScanDeps ...loaded. (0.51 >= 0.45)
- PAR::Dist ...loaded. (0.07 >= 0.06)
[Digital signature support]
- Digest ...loaded. (1.08)
- Module::Signature ...loaded. (0.45 >= 0.35)
*** ExtUtils::AutoInstall configuration finished.
Checking if your kit is complete...
Looks good
Writing Makefile for the par program
Writing Makefile for PAR
cd myldr
vi Makefile
Changed LD=/usr/bin/ld to LD=gcc
My gcc version is gcc version 3.4.3
My gmake version is GNU Make 3.80
My Perl is v5.8.6
My OS is HPUX B.11.11
# gmake
/usr/local/bin/perl -e1
gcc -c -D_HPUX_SOURCE -mpa-risc-2-0 -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -I/usr/local/lib/perl5/5.8.6/PA-RISC2.0/CORE main.c In file included from mktmpdir.c:1,
from main.c:56:
mktmpdir.h:72:18: sha1.c: No such file or directory
In file included from main.c:56:
mktmpdir.c: In function `par_mktmpdir':
mktmpdir.c:57: error: `SHA_INFO' undeclared (first use in this function)
mktmpdir.c:57: error: (Each undeclared identifier is reported only once
mktmpdir.c:57: error: for each function it appears in.)
mktmpdir.c:57: error: parse error before "sha_info"
mktmpdir.c:141: error: `sha_info' undeclared (first use in this function)
gmake: *** [main.o] Error 1
# gmake install
/usr/local/bin/perl -e1
/usr/local/bin/pp -o /tmp/foo.exe /tmp/1.pl
Can't find par loader at /usr/local/lib/perl5/site_perl/5.8.6/PAR/Packer.pm line 101.
3 REPLIES 3
generic_1
Respected Contributor

Re: Perl PAR module problem

Any perl gurus that can help?
Ermin Borovac
Honored Contributor

Re: Perl PAR module problem

mktmpdir.h:72:18: sha1.c: No such file or directory

This is the key error. sha1.c should be created from sha1.c.PL (in myldr directory).

Try adding the following lines to myldr/Makefile

sha1.c: sha1.c.PL
$(PERL) sha1.c.PL sha1.c

For some reason these lines are omitted if perl wasn't built with perl shared library (libperl). Have a look in myldr/Makefile.PL.
generic_1
Respected Contributor

Re: Perl PAR module problem

There are problems with PAR .89 under HPUX use .87 instead.