home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!pitt.edu!djbpitt
- From: djbpitt+@pitt.edu (David J Birnbaum)
- Newsgroups: comp.lang.perl
- Subject: more on socket.ph
- Message-ID: <5641@blue.cis.pitt.edu.UUCP>
- Date: 9 Sep 92 14:24:10 GMT
- Sender: news+@pitt.edu
- Organization: University of Pittsburgh
- Lines: 44
- Originator: djbpitt@unixd2.cis.pitt.edu
-
- The error message generated by Mark's diagnostic script (reported
- in an earlier posting) suggested that sys/socket.ph was being read,
- but that its contents were causing the problem. Specifically, the
- error message mentioned not being able to find sys/types.ph, which is
- mentioned at the head of my socket.ph file.
-
- To test this, I edited socket.ph to comment out the first five lines.
- Aub now finds and uses socket.ph without problems! The following is the
- head of my socket.ph file (with my '#' inserted):
-
- #if (!defined &KERNEL) {
- # require 'sys/types.ph';
- #}
- #else {
- #}
- if (!defined &XTI) {
- eval 'sub XTI {1;}';
- }
- sub SOCK_STREAM {1;}
- [...etc...]
-
- Can anyone explain what went wrong? I have no idea what &KERNEL is
- supposed to refer to, where it gets defined, and whether it should or
- shouldn't be defined to work properly. I only guessed that it wasn't
- needed because I had been able to cut and paste variables out of
- socket.ph directly into the aub script (so that the head of socket.ph
- obviously wasn't being read). If a smarter approach is to define
- &KERNEL myself somewhere, how would I go about doing so?
-
- On the aub front, it seems like socket.ph was accessible, but these
- first few lines rendered the variables needed by aub unavailable. I
- misread the aub error message as suggesting that the socket.ph file
- wasn't being found; in fact, the file was being found, but the
- variables that it was supposed to contain weren't.
-
- Illumination welcome,
-
- David
-
- --
- Professor David J. Birnbaum djbpitt+@pitt.edu [Internet]
- The Royal York Apartments, #802 djbpitt@pittvms [Bitnet]
- 3955 Bigelow Boulevard voice: 1-412-687-4653
- Pittsburgh, PA 15123 USA fax: 1-412-624-9714
-