home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / perl / 5792 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  2.0 KB

  1. Path: sparky!uunet!gatech!pitt.edu!djbpitt
  2. From: djbpitt+@pitt.edu (David J Birnbaum)
  3. Newsgroups: comp.lang.perl
  4. Subject: more on socket.ph
  5. Message-ID: <5641@blue.cis.pitt.edu.UUCP>
  6. Date: 9 Sep 92 14:24:10 GMT
  7. Sender: news+@pitt.edu
  8. Organization: University of Pittsburgh
  9. Lines: 44
  10. Originator: djbpitt@unixd2.cis.pitt.edu
  11.  
  12. The error message generated by Mark's diagnostic script (reported
  13. in an earlier posting) suggested that sys/socket.ph was being read,
  14. but that its contents were causing the problem. Specifically, the
  15. error message mentioned not being able to find sys/types.ph, which is
  16. mentioned at the head of my socket.ph file.
  17.  
  18. To test this, I edited socket.ph to comment out the first five lines.
  19. Aub now finds and uses socket.ph without problems! The following is the
  20. head of my socket.ph file (with my '#' inserted):
  21.  
  22.     #if (!defined &KERNEL) {
  23.     #    require 'sys/types.ph';
  24.     #}
  25.     #else {
  26.     #}
  27.     if (!defined &XTI) {
  28.         eval 'sub XTI {1;}';
  29.     }
  30.     sub SOCK_STREAM {1;}
  31.     [...etc...]
  32.  
  33. Can anyone explain what went wrong? I have no idea what &KERNEL is
  34. supposed to refer to, where it gets defined, and whether it should or
  35. shouldn't be defined to work properly. I only guessed that it wasn't
  36. needed because I had been able to cut and paste variables out of
  37. socket.ph directly into the aub script (so that the head of socket.ph
  38. obviously wasn't being read). If a smarter approach is to define
  39. &KERNEL myself somewhere, how would I go about doing so?
  40.  
  41. On the aub front, it seems like socket.ph was accessible, but these
  42. first few lines rendered the variables needed by aub unavailable. I
  43. misread the aub error message as suggesting that the socket.ph file 
  44. wasn't being found; in fact, the file was being found, but the
  45. variables that it was supposed to contain weren't.
  46.  
  47. Illumination welcome,
  48.  
  49. David
  50.  
  51. -- 
  52. Professor David J. Birnbaum         djbpitt+@pitt.edu [Internet]
  53. The Royal York Apartments, #802     djbpitt@pittvms   [Bitnet]
  54. 3955 Bigelow Boulevard              voice: 1-412-687-4653
  55. Pittsburgh, PA  15123  USA          fax:   1-412-624-9714
  56.