From: ts Date: 2002-01-24T19:13:32+09:00 Subject: Re: SysV::IPC, core dump >>>>> "a" == ara howard writes: a> regarding the msgbuf struct - are you saying that you've had problems a> with that as well? Yes, here the problem when I try to compile it moulon% make gcc -fPIC -g -O2 -I/usr/local/lib/ruby/1.6/sparc-solaris2.7 -I. -I/usr/local/include -DHAVE_SYS_TYPES_H -DHAVE_SYS_IPC_H -DHAVE_SYS_MSG_H -DHAVE_MSGGET -DHAVE_SYS_SEM_H -DHAVE_SEMGET -DHAVE_SYS_SHM_H -DHAVE_SHMGET -c -o sysvipc.o sysvipc.c sysvipc.c:54: redefinition of `struct msgbuf' make: *** [sysvipc.o] Error 1 moulon% and if you look at msgsnd(2) the example given is (see the name of struct) The msgp argument points to a user-defined buffer that must contain first a field of type long int that will specify the type of the message, and then a data portion that will hold the data bytes of the message. The structure below is an example of what this user-defined buffer might look like: struct mymsg { long mtype; /* message type */ char mtext[1]; /* message text */ } Normally the name of msgbuf must be renamed in sysvipc.c Guy Decoux