From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: roderik.wildenburg@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] how to build a Xenomai posix library ?
Date: Tue, 14 Oct 2008 15:35:07 +0200 [thread overview]
Message-ID: <48F4A00B.5000001@domain.hid> (raw)
In-Reply-To: <5D63919D95F87E4D9D34FF7748CE2C2A01530E9F@ARVMAIL1.mra.roland-man.biz>
roderik.wildenburg@domain.hid wrote:
> I´ve built a library which includes Xenomai posix functions.
> If a "customer" wants to use this library (links the library to his
> project) he unfortunately has to define all the wrappers for the
> posix functions I used within the library. Is this a general
> limitation when using posix in a library or do I simply not know how
> to build a proper Xenomai-library. Is there a posibility to avoid the
> wrapers so the user simply has to link the library and needn´t to
> define anyhing else (just -lxenolib) ?
>
> Thank you in advance for your help Roderik
It is a limitation that comes from using ld --wrap option.
Unfortunately, we really have no other mean to achieve compliance with
the posix interface, especially since Xenomai posix library needs
symbols from the libc libpthread library.
In a near future, it will be possible to directly call xenomai posix
library services without using the --wrap trick. Only, you will have to
prefix them or postfix them. Actually, you can already do that by
calling directly __wrap_service instead of service.
Another way to solve your issue is to ship your library with a shell
script much like xeno-config which generates the correct flags. You can
probably do what we have not done for xenomai: use the pkg-config
package. This approach is used for many libraries nowadays.
--
Gilles.
next prev parent reply other threads:[~2008-10-14 13:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-14 13:21 [Xenomai-help] how to build a Xenomai posix library ? roderik.wildenburg
2008-10-14 13:35 ` Gilles Chanteperdrix [this message]
2008-10-16 9:36 ` roderik.wildenburg
2008-10-16 9:48 ` Gilles Chanteperdrix
2008-10-16 10:14 ` roderik.wildenburg
2008-10-16 12:14 ` Gilles Chanteperdrix
2008-10-16 12:34 ` roderik.wildenburg
2008-10-16 12:41 ` Gilles Chanteperdrix
2008-10-17 9:58 ` [Xenomai-help] how to build a Xenomai posix library ? solved roderik.wildenburg
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=48F4A00B.5000001@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=roderik.wildenburg@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.