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

  1. Path: sparky!uunet!sun-barr!olivea!sgigate!odin!stantz
  2. From: stantz@sgi.com (Mark Stantz)
  3. Newsgroups: comp.lang.perl
  4. Subject: Re: aub problem finding sys/socket.ph
  5. Message-ID: <1992Sep9.043504.7463@odin.corp.sgi.com>
  6. Date: 9 Sep 92 04:35:04 GMT
  7. References: <5585@blue.cis.pitt.edu.UUCP> <1992Sep8.174434.17198@news.eng.convex.com> <5601@blue.cis.pitt.edu.UUCP>
  8. Sender: news@odin.corp.sgi.com (Net News)
  9. Organization: Silicon Graphics, Inc.
  10. Lines: 34
  11. Nntp-Posting-Host: sierra.corp.sgi.com
  12.  
  13. In article <5601@blue.cis.pitt.edu.UUCP> djbpitt+@pitt.edu (David J Birnbaum) writes:
  14. >I have been unable to persuade aub to find my sys/socket.ph file...
  15.  
  16.     Let's omit aub from the problem to simplify things...
  17.  
  18.     Suppose we have a program:
  19.  
  20.         #!/usr/local/bin/perl
  21.  
  22.         foreach (@INC) {
  23.           print "library $_\n";
  24.         }
  25.  
  26.         require <sys/socket.ph>;
  27.         print &AF_INET . "\n";
  28.  
  29.     On my system, this prints:
  30.  
  31.         library /usr/local/lib/perl
  32.         library .
  33.         2
  34.  
  35.     For the user, the output would be:
  36.  
  37.         library <X>
  38.         library <Y>
  39.         Undefined subroutine "main'AF_INET" called at /tmp/aaa line 8.
  40.  
  41.     The user has generated sys/socket.ph and placed it in the directory
  42. <X> or <Y>.  Running with '#!/usr/local/bin/perl -I <X>' doesn't help.  I
  43. think it's a problem with the way perl was built at the site, not a problem
  44. with perl itself.  Can't figure out what, through.
  45.  
  46.     -Mark
  47.