From: Luotao Fu <devtty0@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-core] Linking failure while compiling POSIX skin as built-in module
Date: Tue, 22 Nov 2005 14:37:38 +0100 [thread overview]
Message-ID: <43831F22.5000105@domain.hid> (raw)
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
reply other threads:[~2005-11-22 13:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43831F22.5000105@domain.hid \
--to=devtty0@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.