server example does not work on IRIX 5.3 
Author Message
 server example does not work on IRIX 5.3

I am in the process of writing a small client/server app for my group, and
naturally decided to use Perl 4.036 to implement it.

When typed in verbatim from the Camel book, it works A-OK on SunOS 4.1.4.
It dies with the following error on IRIX 5.3:

Quote:
>server

Port = 2345
socket: Protocol not supported at ./loadserv line 27.

I tried looking at sys/socket.h, but everything seemed ok.
The line it fails on is:
socket(S,$AF_INET,$SOCK_STREAM,$proto) || die "socket: $!";

Where $AF_INET is 2, $SOCK_STREAM is 1, and $proto is 6 'tcp'.

Can anyone tell me how to open a socket in Perl on IRIX 5.3?

--D.

----
David Iain Greig, System Administrator              (303) 492-8085
Dept. of Chemistry and Biochemistry    Campus Box 215, Boulder, CO

"Arbor plena allouatarum"     http://www.*-*-*.com/ ~greig/  



Sun, 18 Jan 1998 03:00:00 GMT  
 server example does not work on IRIX 5.3


Quote:
>naturally decided to use Perl 4.036 to implement it.
>When typed in verbatim from the Camel book, it works A-OK on SunOS 4.1.4.
>It dies with the following error on IRIX 5.3:
>socket: Protocol not supported at ./loadserv line 27.
>I tried looking at sys/socket.h, but everything seemed ok.
>The line it fails on is:
>socket(S,$AF_INET,$SOCK_STREAM,$proto) || die "socket: $!";
>Where $AF_INET is 2, $SOCK_STREAM is 1, and $proto is 6 'tcp'.

Look again at /usr/include/sys/socket.h .
If _STYPES_LATER is not defined, SOCK_STREAM comes out as 2.

A previous message on this topic, obtainable from the comp.sys.sgi.misc


Subject: Re: failed socket call on SGI-Challenge IRIX 5.0.1 with perl 4.036



Subject: Re: IRIX 5.2 perl syslog routine problem
which suggests using    require 'sys/socket.ph';




Sun, 25 Jan 1998 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. This server does not work on IRIX 5.3

2. Socket client/server example not working on Windows 2K

3. perl book socket server example does not work

4. Can't compile DBD::Pg under IRIX 5.3 (possible repost sorry, having probs with Deja)

5. Installing perl 5.004 / db for IRIX 5.3

6. Compiling Perl on Indy with IRIX 5.3

7. Socket problems in 5.001 on Irix 5.3

8. incompatable pointers when compiling for Irix 5.3

9. Mysterious syntax errors/Perl 4.0/Irix 5.3

10. Can't compile DBD::Pg under IRIX 5.3 (possible repost sorry, having probs with Deja)

11. Can't compile DBD::Pg under IRIX 5.3 (possible repost sorry, having probs with Deja)

12. Can't compile DBD::Pg under IRIX 5.3

 

 
Powered by phpBB® Forum Software