develooper Front page | perl.perl5.porters | Postings from January 2001

[ID 20010111.018] h2ph problems with Solaris 2.6/8

From:
rph
Date:
January 11, 2001 12:34
Subject:
[ID 20010111.018] h2ph problems with Solaris 2.6/8
Message ID:
200101112034.VAA25193@a.online.no

Hi!

This applies to perl 5.005_03 built for sun4-solaris, possibly
others also.
 
When doing

cd /usr/include
h2ph -r -l .

on Solaris 2.6 and 8 hosts, I get the following error message
(and apparently, others too when searching the net for the error
message)

perl -e 'use Sys::Syslog'
Warning: Use of "defined" without parens is ambiguous at 
/local/perl/5.005/lib/site_perl/5.005/sun4-solaris/_h2ph_pre.ph line 2.
Can't use subscript on subroutine entry at /local/perl/5.005/lib/site_perl/5.00
5/sun4-solaris/_h2ph_pre.ph line 2, near "} }"
(Did you mean $ or @ instead of &?)
syntax error at /local/perl/5.005/lib/site_perl/5.005/sun4-solaris/_h2ph_pre.ph
 line 4, near "unless"
BEGIN failed--compilation aborted at -e line 1.


The patch attached seems to fix the problem. 

I know 5.005 is not current anymore, but anyway...

Thanks for a great product.

Rolf <rph@online.no>




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About