From: Brian Gix <bgix@codeaurora.org>
To: Antonio Ospite <ospite@studenti.unina.it>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: Building master on Debian systems fails at linking "check".
Date: Mon, 14 Nov 2011 10:12:55 -0800 [thread overview]
Message-ID: <4EC15A27.90305@codeaurora.org> (raw)
In-Reply-To: <20111114155620.4fc2987fad25c9ccd724f68a@studenti.unina.it>
Hi Antonio,
On 11/14/2011 6:56 AM, Antonio Ospite wrote:
> Hi,
>
> building the master branch (a267bc2) on Debian systems fails when
> linking the unit tests to the "check" library with this error:
>
> CCLD unit/test-eir
> /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libcheck.a
> (check.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be
> used when making a shared object; recompile with
> -fPIC /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libcheck.a:
> could not read symbols: Bad value collect2: ld returned 1 exit status
> make[1]: *** [unit/test-eir] Error 1 make: *** [all] Error 2
>
> [...]
I run into the same problem with an ubuntu-10.10 installation running in
a VM.
>
> The workaround I use for now is:
> - run "make" and let the build system fail
> - show the failing command with "make V=1"
> - change -lcheck to -lcheck_pic and rerun the command
> - "make" will now proceed with the build
This same solution works for me: After running ./bootstrap-configure, I
change the unit_test_eir_LDADD line in the Makefile to:
unit_test_eir_LDADD = lib/libbluetooth-private.la -lglib-2.0 -lcheck_pic
There is probably a way to make this happen automatically, but I don't
know enough about the configure mechanism to know how to do this.
--
Brian Gix
bgix@codeaurora.org
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
next prev parent reply other threads:[~2011-11-14 18:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-14 14:56 Building master on Debian systems fails at linking "check" Antonio Ospite
2011-11-14 18:12 ` Brian Gix [this message]
2011-11-14 21:51 ` Antonio Ospite
2011-11-15 2:25 ` Marcel Holtmann
2011-11-15 2:31 ` Brian Gix
2011-11-15 2:53 ` Marcel Holtmann
2011-11-15 2:58 ` Brian Gix
2011-11-15 2:59 ` Marcel Holtmann
2011-11-18 9:37 ` Antonio Ospite
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=4EC15A27.90305@codeaurora.org \
--to=bgix@codeaurora.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=ospite@studenti.unina.it \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox