[ Usenet FAQs | Web FAQs | Documents | RFC Index ]
    Search the FAQ Archives

Single Page

Top Document: SGI apps Frequently Asked Questions (FAQ)
Previous Document: -57- What are GP-relative and GOT overflows, and how can I fix them?
Next Document: -59- PORTING


-58- Why can't Perl open a socket on my SGI?



  You're handing socket() the wrong constants (address family or socket
  type). These used to be standard across almost all Unixes (including
  IRIX 4.x and earlier), so were often hardcoded in Perl scripts, but
  changed in System V release 4 Unixes (including IRIX 5.x and later),
  so the hardcoded values became wrong. At least one routine included
  with Perl (syslog.pl) makes this error, and does not work on IRIX 5.x.

  Read /usr/include/sys/socket.h to see what the values are on your
  system. To get them into your Perl program in a nice way, either
  'require socket.ph' or (under Perl 5) 'use Socket'.

  Entry 4.21 of the Perl FAQ (http://www.perl.com/perl/faq/Q4.21.html)
  will back us up on this.

  Incidentally, patch 596 fixes (among other things) a separate problem
  with the socket interface.



Top Document: SGI apps Frequently Asked Questions (FAQ)
Previous Document: -57- What are GP-relative and GOT overflows, and how can I fix them?
Next Document: -59- PORTING

Single Page


[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
sgi-faq@viz.tamu.edu (The SGI FAQ group)

Last Update October 22 2009 @ 05:34 AM

Some parts © 2009 Advameg, Inc.