Mailinglist Archive: opensuse-buildservice (46 mails)

< Previous Next >
[opensuse-buildservice] Re: Only root can link in OBS
  • From: Andreas Schwab <schwab@xxxxxxxxxxxxxx>
  • Date: Fri, 07 Dec 2018 19:12:39 +0100
  • Message-id: <87sgz9tdd4.fsf@igel.home>
On Dez 07 2018, Till Dörges <doerges@xxxxxxxxxxxx> wrote:

Problem now is, the %{__make} fails when trying to link the final binary with
lots of
"undefined reference to" symbols from the external proprietary lib.

That's probably due to SUSE_ASNEEDED, see
<https://build.opensuse.org/package/view_file/openSUSE:Factory/binutils/binutils-build-as-needed.diff>
and
<https://github.com/openSUSE/post-build-checks/blob/master/suse-buildsystem.sh>.
The right way to fix that is to reorder the linker command line so that
libraries appear after the objects that reference their symbols.

What does work, is to use root4abuild or similar and then adjust the SPEC
file like so

sudo %{__make}

That removes SUSE_ASNEEDED from the environment.

Andreas.

--
Andreas Schwab, schwab@xxxxxxxxxxxxxx
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References