[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: System V IPC on LX
I have one more SV IPC question:
Today I've been trying to use IPC shared mem
(for 2.4 kernel on LX chip) and in this case
the src compiles and links ok for target, but
when try to run it, I get an error printout:
shmget: Function not implemented
(I'm using shmget() and shmat())
Is there any way to get this working?
quoting Orjan Friberg <email@example.com>:
> David Andersson wrote:
> > 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
> > 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
> > What am I doing wrong?
> Hi David,
> You're not doing anything wrong. The SYSV IPC semaphore functions
> added recently to Lineo's uC-libc, but are currently missing in the
> uC-libc that comes with the developer board. Good news is they are
> enough to add. The semaphore functions are multiplexed via the ipc
> system call, like this:
> semget (key, nsems, semflg)
> key_t key;
> int nsems;
> int semflg;
> return __ipc(IPCOP_semget, key, nsems, semflg, NULL);
> I'll add it to our uC-libc, and get back to you with a patch to
> once I have tested it.
> Orjan Friberg E-mail: firstname.lastname@example.org
> Axis Communications AB Phone: +46 46 272 17 68