From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leopold Palomo-Avellaneda Date: Tue, 20 Sep 2016 08:37:32 +0200 Message-ID: <8882775.Clc1uLdNep@soho> In-Reply-To: References: <1560138.jJyhniltkJ@indiana> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Subject: Re: [Xenomai] Cannot create a share library linked against Xenomai libs List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org 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. Best regards, Leopold -- -- Linux User 152692 GPG: 05F4A7A949A2D9AA Catalonia ------------------------------------- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?