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: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
|
Comment about this article, ask questions, or add new information about this topic: