Front page | perl.perl5.porters |
Postings from November 2003
use of 'ph' files
Thread Next
From:
linda w
Date:
November 14, 2003 12:04
Subject:
use of 'ph' files
Message ID:
3FB53540.4020309@tlinx.org
I was wanting to get the status values for 'gethostbyaddr'.
To do so, I believe I'm supposed to include (at least on my system),
'netdb.ph'. It has the values that I need to determine the error meanings.
I add the line:
require "netdb.ph";
It "works", but I get an unwanted "side effect" of several errors displayed
at the start of my script:
Scalar found where operator expected at (eval 221) line 1, near "'int'
$__val"
(Missing operator before $__val?)
String found where operator expected at (eval 524) line 1, near
"&__const 'struct sockaddr'"
(Missing operator before 'struct sockaddr'?)
Bareword found where operator expected at (eval 641) line 1, near "*
&__h_errno_location"
(Missing operator before __h_errno_location?)
I reran 'h2ph' from my current distribution (5.8.1 on SuSE9) to make
sure I had the
latest translated version.
Same messages.
I'm assuming there are source errors in the .ph produced by h2ph.
Is it considered "normal" for a user, after running h2ph, to have to go
through
generated .ph files and correct syntax in the generated files?
Or...was there some switch or procedure I didn't follow correctly (that
"anyone**
would know") in generating the file?
**-excluding me
The errors don't seem to actually affect proper program execution since
I was only
looking for the error constants and those are probably not too difficult
to get right,
but having the error message spew at the beginning of each run is rather
ugly...
Thanks,
-linda
Thread Next
-
use of 'ph' files
by linda w