home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!udel!darwin.sura.net!spool.mu.edu!sol.ctr.columbia.edu!ira.uka.de!news.belwue.de!news.uni-ulm.de!huober_j
- From: huober_j@oracle.rz.uni-ulm.de (Joachim Huober)
- Subject: problems using System V IPC on a sparc-10
- Message-ID: <1993Jan26.154024.19857@wega.rz.uni-ulm.de>
- Sender: huober_j@oracle (Joachim Huober)
- Organization: Universitaet Ulm
- Date: Tue, 26 Jan 1993 15:40:24 GMT
- Lines: 43
-
- Hi,
- I wrote the following small program to test, if the System V IPC work
- on my Sparc-10. It works fine on an Ultrix4-mashine
-
- require "ipc.ph";
- require "msg.ph";
-
- $KEY = 9876;
- $PERMS = 0666;
-
- #MAIN
- unless (defined($msgid = msgget($KEY+$i,$PERMS | &IPC_CREAT)))
- {
- print STDERR "Can't create message queue\n\$! $!";
- }
- print STDOUT "msgid = $msgid\n";
- msgsnd($msgid,pack("L a*",3,"Hallo dies ist ein Test"),0);
- $var = ' ' x 256;
- msgrcv($msgid,$var,256,3,0);
- @var = unpa @var = unpack("L a*",$var);
- print STDOUT "var\[$var[0]\] = '$var[1]'\n";
- unless (msgctl($msgid, &IPC_RMID, 0))
- {
- print STDERR "Can't remove message queue\n\$! $!";
- }
- #END
-
- I've got the following errormessage
-
- System V IPC is not implemented on this machine at ./xxxx line xx.
-
- Now my Question:
- Which #defines do I have to make in the file config.h, so that
- perl compiles using the System V IPCs.
-
- In the config.h file
- #define HAS_MSGCTL /**/
- #define HAS_MSGGET /**/
- #define HAS_MSGRCV /**/
- #define HAS_MSGSND /**/
- are defined
-
- I'm using a Sparc-10 with SunOS 4.1.3
-