From: Philippe Gerum <rpm@xenomai.org>
To: Perrine Martignoni <perrmart@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Xenomai with µClibc
Date: Mon, 28 May 2007 15:17:55 +0200 [thread overview]
Message-ID: <1180358275.4727.28.camel@domain.hid> (raw)
In-Reply-To: <7289437c0705280557k2dea8db6r7e4e162078a3c846@domain.hid>
On Mon, 2007-05-28 at 14:57 +0200, Perrine Martignoni wrote:
> Sorry for the details.
> I work on an ARM and I use the cross compiler ELDK version 4.1
> (build : 2007-01-22-uclibc).
>
> When I compile sources of xenomai, I have this error message :
>
> -Wl,shm_unlink -Wl,--wrap -Wl,mmap -Wl,--wrap -Wl,munmap
> cyclictest-cyclictest.o ../../skins/posix/.libs/libpthread_rt.a
> -lpthread -lrt
>
> ../../skins/posix/.libs/libpthread_rt.a(libpthread_rt_la-shm.o): In
> function `__wrap_shm_open':
>
> shm.c:(.text+0x74): undefined reference to `shm_open'
>
> ../../skins/posix/.libs/libpthread_rt.a(libpthread_rt_la-shm.o): In
> function `__wrap_shm_unlink':
>
> shm.c:(.text+0xdc): undefined reference to `shm_unlink'
>
> collect2: ld returned 1 exit status
>
Try adding this patch on top of the stock Xenomai release you are using:
--- include/asm-arm/syscall.h (revision 2472)
+++ include/asm-arm/syscall.h (working copy)
@@ -167,6 +167,22 @@
#undef CONFIG_XENO_HW_DIRECT_TSC
+#include <errno.h>
+
+inline __attribute__((weak)) int shm_open(const char *name,
+ int oflag,
+ mode_t mode)
+{
+ errno = ENOSYS;
+ return -1;
+}
+
+inline __attribute__((weak)) int shm_unlink(const char *name)
+{
+ errno = ENOSYS;
+ return -1;
+}
+
#endif /* __KERNEL__ */
#define XENOMAI_SYSARCH_ATOMIC_ADD_RETURN 0
--
Philippe.
next prev parent reply other threads:[~2007-05-28 13:17 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-28 7:43 [Xenomai-help] Xenomai with µClibc Perrine Martignoni
2007-05-28 8:49 ` Philippe Gerum
2007-05-28 9:03 ` Gilles Chanteperdrix
2007-05-28 9:12 ` Philippe Gerum
2007-05-28 12:57 ` Perrine Martignoni
2007-05-28 13:17 ` Philippe Gerum [this message]
2007-05-28 13:21 ` Gilles Chanteperdrix
-- strict thread matches above, loose matches on Subject: below --
2007-05-28 13:15 Fillod Stephane
2007-05-28 13:38 ` Gilles Chanteperdrix
2007-05-28 13:51 ` Philippe Gerum
2007-05-29 8:30 ` Perrine Martignoni
2007-05-29 8:42 ` Gilles Chanteperdrix
2007-05-29 10:47 ` Perrine Martignoni
2007-05-29 16:58 ` Gilles Chanteperdrix
2007-05-29 17:27 ` Jan Kiszka
2007-05-29 18:18 ` Gilles Chanteperdrix
2007-05-30 5:57 ` Perrine Martignoni
2007-05-30 7:51 ` Perrine Martignoni
2007-05-30 8:05 ` Jan Kiszka
2007-05-30 9:10 ` Perrine Martignoni
2007-05-30 9:21 ` Daniel Schnell
2007-05-30 9:28 ` Gilles Chanteperdrix
2007-05-30 9:40 ` Daniel Schnell
2007-05-30 9:43 ` Gilles Chanteperdrix
2007-05-31 9:08 ` Gilles Chanteperdrix
2007-05-30 11:55 ` Jan Kiszka
2007-05-31 9:04 ` Jan Kiszka
2007-05-31 10:40 ` Daniel Schnell
2007-05-31 12:58 ` Perrine Martignoni
2007-05-31 13:04 ` Jan Kiszka
2007-05-31 13:14 ` Perrine Martignoni
2007-05-31 13:30 ` Wolfgang Grandegger
2007-05-31 13:38 ` Jan Kiszka
2007-05-31 13:45 ` Perrine Martignoni
2007-05-31 13:58 ` Jan Kiszka
2007-05-31 14:13 ` Wolfgang Grandegger
2007-05-31 14:58 ` Perrine Martignoni
2007-05-31 15:03 ` Gilles Chanteperdrix
2007-05-31 15:33 ` Perrine Martignoni
[not found] ` <465EEDC3.6040309@domain.hid>
2007-06-01 7:17 ` Perrine Martignoni
2007-06-01 7:30 ` Gilles Chanteperdrix
2007-06-01 8:26 ` Wolfgang Grandegger
2007-06-01 8:48 ` Jan Kiszka
2007-06-01 9:09 ` Wolfgang Grandegger
2007-06-01 9:11 ` Jan Kiszka
2007-06-01 14:46 ` Wolfgang Grandegger
2007-06-01 14:45 ` Jan Kiszka
2007-06-01 9:11 ` Perrine Martignoni
2007-05-31 13:04 ` Gilles Chanteperdrix
2007-05-31 13:05 ` Perrine Martignoni
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=1180358275.4727.28.camel@domain.hid \
--to=rpm@xenomai.org \
--cc=perrmart@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.