Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

SGI apps Frequently Asked Questions (FAQ)
Section - -58- Why can't Perl open a socket on my SGI?

( Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Sex offenders ]


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
See reader questions & answers on this topic! - Help others by sharing your knowledge

  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.

User Contributions:

Comment about this article, ask questions, or add new information about this topic:




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 March 27 2014 @ 02:12 PM