[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

System V IPC on LX




I'm  trying to use SV IPC semaphores (semget(), semop() etc)
under the 2.4 kernel. I'v enabled "System V IPC" in make xconfig
and now I'm trying to compile an application which uses SV IPC
semaphores, but I can't get it to work. 
(The app works ok on the host system).

When trying to make for target, I get:

[david@burk14 hello]$ make
gcc_cris -mlinux -DCRISMMU
-muclibc=/home/david/LX/axis/devboard_lx/eroot -s -static hello.o  -o
hello
hello.o: In function `main':
hello.o(.text+0x46): undefined reference to `semget'
hello.o(.text+0x6e): undefined reference to `semctl'
hello.o(.text+0xb0): undefined reference to `semop'
hello.o(.text+0x148): undefined reference to `semop'
collect2: ld returned 1 exit status
make: *** [hello] Error 1


The app includes:
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>

and calls semget() semctl() and semop().

What am I doing wrong?