From: Philippe Gerum <rpm@xenomai.org>
To: Leopold Palomo-Avellaneda <leo@alaxarxa.net>, xenomai@xenomai.org
Subject: Re: [Xenomai] Cannot create a share library linked against Xenomai libs
Date: Tue, 20 Sep 2016 09:06:15 +0200 [thread overview]
Message-ID: <a5c36b27-1f4e-ac3a-bac8-4d668b23291b@xenomai.org> (raw)
In-Reply-To: <8882775.Clc1uLdNep@soho>
On 09/20/2016 08:37 AM, Leopold Palomo-Avellaneda wrote:
> El Dimarts, 20 de setembre de 2016, a les 06:18:45,
> dietmar.schindler@manroland-web.com va escriure:
>>> Von: Xenomai [mailto:xenomai-bounces@xenomai.org] Im Auftrag von Leopold
>>> Palomo-Avellaneda Gesendet: Montag, 19. September 2016 22:45
>>>
>>> I'm trying to build a shared library, using the posix skin with Xenomai
>>> 3.0.3. I have built xenomai with:
>>>
>>> '--with-core=cobalt' '--enable-smp' '--enable-pshared' '--enable-fortify'
>>> '--enable-shared
>>>
>>> I built withour any error. However, when I try to build a library (shared)
>>> that uses xenomai I got this error:
>>>
>>> /usr/bin/ld: /usr/xenomai/lib/xenomai/bootstrap.o: relocation R_X86_64_32
>>> against `.rodata.str1.1' can not be used when making a shared object;
>>> recompile with -fPIC
>>
>> Here is an answer to a similar problem:
>> http://stackoverflow.com/a/38431538/2413201 It says to use the compiler
>> flags -Wformat=0 or/and -Wno-format-security; perhaps it helps also in your
>> case. --
>
> Thanks,
>
> but not. I have tried in both cases: recompiling my lib and xenomai. Still
> getting the same error.
>
> What surprises me more is that with 2.6.x I have no error but with 3.x I get
> it.
>
2.6.x did not have any bootstrap module, which explains the difference.
--
Philippe.
next prev parent reply other threads:[~2016-09-20 7:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-19 20:45 [Xenomai] Cannot create a share library linked against Xenomai libs Leopold Palomo-Avellaneda
2016-09-20 6:18 ` dietmar.schindler
2016-09-20 6:37 ` Leopold Palomo-Avellaneda
2016-09-20 7:06 ` Philippe Gerum [this message]
2016-09-20 7:04 ` Philippe Gerum
2016-09-20 10:56 ` Leopold Palomo-Avellaneda
2016-09-21 8:30 ` Philippe Gerum
2016-09-21 10:41 ` Leopold Palomo-Avellaneda
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=a5c36b27-1f4e-ac3a-bac8-4d668b23291b@xenomai.org \
--to=rpm@xenomai.org \
--cc=leo@alaxarxa.net \
--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.