* [Xenomai-core] Linking failure while compiling POSIX skin as built-in module
@ 2005-11-22 13:37 Luotao Fu
0 siblings, 0 replies; only message in thread
From: Luotao Fu @ 2005-11-22 13:37 UTC (permalink / raw)
To: xenomai
Hi folks,
I detected a minor problem while compiling 2.6.14.2 with the most recent
xenomai code from svn. The Compilation would quit at linking if one
tries to build the posix skin as built-in module. Abort message:
ipc/built-in.o: In function `sem_init':
: multiple definition of `sem_init'
kernel/built-in.o:: first defined here
ld: Warning: size of symbol `sem_init' changed from 296 in
kernel/built-in.o to 55 in ipc/built-in.o
The problem is the sem_init() method of the SysV IPC routine in the
linux kernel, which is unluckily called excactly the same as the posix
sem_init() but differently declared. It's declared as
void __init sem_init (void)
in SysV IPC and
int sem_init(sem_t *sem, int pshared, unsigned value);
in POSIX. Thus the linker get confused trying to link the two symbols in
one kernel image. Workaround coulb be deactivating the SysV IPC routine
in the kernel or compile Posix skin as a loadable module.
Cheers
Luotao Fu
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-11-22 13:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-22 13:37 [Xenomai-core] Linking failure while compiling POSIX skin as built-in module Luotao Fu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.