home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!olivea!sgigate!odin!stantz
- From: stantz@sgi.com (Mark Stantz)
- Newsgroups: comp.lang.perl
- Subject: Re: aub problem finding sys/socket.ph
- Message-ID: <1992Sep9.043504.7463@odin.corp.sgi.com>
- Date: 9 Sep 92 04:35:04 GMT
- References: <5585@blue.cis.pitt.edu.UUCP> <1992Sep8.174434.17198@news.eng.convex.com> <5601@blue.cis.pitt.edu.UUCP>
- Sender: news@odin.corp.sgi.com (Net News)
- Organization: Silicon Graphics, Inc.
- Lines: 34
- Nntp-Posting-Host: sierra.corp.sgi.com
-
- In article <5601@blue.cis.pitt.edu.UUCP> djbpitt+@pitt.edu (David J Birnbaum) writes:
- >I have been unable to persuade aub to find my sys/socket.ph file...
-
- Let's omit aub from the problem to simplify things...
-
- Suppose we have a program:
-
- #!/usr/local/bin/perl
-
- foreach (@INC) {
- print "library $_\n";
- }
-
- require <sys/socket.ph>;
- print &AF_INET . "\n";
-
- On my system, this prints:
-
- library /usr/local/lib/perl
- library .
- 2
-
- For the user, the output would be:
-
- library <X>
- library <Y>
- Undefined subroutine "main'AF_INET" called at /tmp/aaa line 8.
-
- The user has generated sys/socket.ph and placed it in the directory
- <X> or <Y>. Running with '#!/usr/local/bin/perl -I <X>' doesn't help. I
- think it's a problem with the way perl was built at the site, not a problem
- with perl itself. Can't figure out what, through.
-
- -Mark
-