develooper Front page | perl.perl5.porters | Postings from November 2003

use of 'ph' files

Thread Next
linda w
November 14, 2003 12:04
use of 'ph' files
Message ID:
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),
''.  It has the values that I need to determine the error meanings.

I add the line:
require "";

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'  
        (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 "* 
        (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 
generated .ph files and correct syntax in the generated files?

Or...was there some switch or procedure I didn't follow correctly (that 
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 


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About