1833846 Members
1976 Online
110063 Solutions
New Discussion

Re: perl - h2ph

 
cliff will
New Member

perl - h2ph

i run:
/opt/perl5/bin/h2ph -I -r -l -d/opt/perl5/lib/site_perl/PA-RISC1.1 *
it seems okay... but:
when i try this code fragment:
---------------------------------
#!/opt/perl5/bin/perl

require "ipc.ph";
require "shm.ph";

$PERMISSIONS = 0600;

$ipckey = 10;
$size = 100;
$shmid=shmget($ipckey, $size, $PERMISSIONS | &IPC_CREAT | &IPC_EXCL);
------------------------------------
i get this error:
------------------------------------
Constant subroutine _INCLUDE_AES_SOURCE redefined at (eval 13) line 1.
Can't locate machine/vmtypes.ph in @INC (did you run h2ph?) (@INC contains: /opt
/perl5/lib/PA-RISC1.1/5.00401 /opt/perl5/lib /opt/perl5/lib/site_perl/PA-RISC1.1
/opt/perl5/lib/site_perl .) at /opt/perl5/lib/site_perl/PA-RISC1.1/sys/types.ph
line 197.
-----------------------------------
any help will be much appreciated.
1 REPLY 1
harry d brown jr
Honored Contributor

Re: perl - h2ph

It can't find machine/vmtypes.ph, which must not have been in your path when you ran h2ph.

live free or die
harry
Live Free or Die