home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!rutgers!ub!dsinc!pitt.edu!djbpitt
- From: djbpitt+@pitt.edu (David J Birnbaum)
- Newsgroups: comp.lang.perl
- Subject: Re: aub problem finding sys/socket.ph
- Message-ID: <5638@blue.cis.pitt.edu.UUCP>
- Date: 9 Sep 92 12:56:29 GMT
- References: <1992Sep8.174434.17198@news.eng.convex.com> <5601@blue.cis.pitt.edu.UUCP> <1992Sep9.043504.7463@odin.corp.sgi.com>
- Sender: news+@pitt.edu
- Organization: University of Pittsburgh
- Lines: 58
-
- In article <1992Sep9.043504.7463@odin.corp.sgi.com> stantz@sgi.com
- (Mark Stantz) writes:
-
- > 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 output I get from Mark's suggested routine is:
-
- Can't locate sys/types.ph in @INC (did you run h2ph?) at
- /afs/pitt.edu/usr16/djbpitt/lib/perl/sys/socket.ph line 2, <_GEN_0> line 1.
- library /afs/pitt.edu/usr16/djbpitt/lib/perl
- library .
-
- This is a different error from the one predicted; does it help? I do not
- have any sys/types.ph file; the only file in my .../perl/sys
- subdirectory is socket.ph.
-
- > 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.
-
- This experiment clearly rules out any problem with aub. I am sure that
- the problem lies with something I did with perl, rather than with perl
- itself, since the problem is apparently unique to me. (One reader sent
- me email that he had a problem finding sys/socket.ph when he was running
- aub under perl 3.0, but it went away when he switched to 4.0. I am using
- 4.035.)
-
- Not a perl programmer, just a befuddled user,
-
- 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
-