Up: SGI apps Frequently Asked Questions (FAQ)
Next: -59- PORTING
Previous: -57- What are GP-relative and GOT overflows, and how can I fix them?
Subject:   -58- Why can't Perl open a socket on my SGI?
Date: 21 Dec 1995 00:00:01 EST

  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.

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