From: rrklier@faui30g.informatik.uni-erlangen.de (Rainer Klier) Subject: Re: IPC SYSV, semaphores, shared mem, etc Date: 23 Feb 1993 14:54:42 GMT
> SLS has the header files for IPC, but when trying to link the IPC
>system calls, like semctl, are missing. I searched all the lib*.a
>libraries with ar and didn't find them, so it's not obvious that I need
>a library. Is this just broken, or have I missed something.
> Post, or I'll summarize mail.
>--
>bill davidsen, GE Corp. R&D Center; Box 8; Schenectady NY 12345
> Windows NT is a *great* program!
> It's everything CP/M should have been all along.
I got linux 0.99pl2 via SLS distribution and patched the kernel up
0.99pl5. Since I needed IPC last weekend I looked for it and found
something in the kernel sources at /usr/src/linux/ipc. The things
I did, was to
- patch the kernel with ipc.???? in /usr/src/linux
The README file said, the name for the patch is ipc.cd,
but it was't; it was ipc.???? (of course not 4 Questionmarks,
4 Letters; forgot them).
- add the 2 items you need to change in your initial Makefile
(they where "ipc" in the SUBDIRECTORIES line and the
other was ipc/ipc.o (but I don't remember in which line
it was and since I'm not sitting on my Linux machine, I
can't look for it). This is also described in the
/usr/src/linux/ipc/README - File)
- rebuild the kernel and reboot.
- build the libipc.a Library (there's a Directory .../linux/ipc/test
where you can 'make' this Library (set the proper Directories in
the Makefile))
- If you want to use IPC then, you have to link -lipc to your
application.
- before you start it, you have to enable IPC with a program, which
is also build in the .../linux/ipc/test - Directory. I forgot
also this name, but it is described in the README (was something
like ipc??. Then there is a test program called philos, which
seemed to work then.
I don't know, whether there's an easier way, if there is, please tell
me.
Rainer