Gentoo Archives: gentoo-user

From: urpion@×××.com
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Shared libraries lack a SONAME
Date: Fri, 25 Sep 2020 09:45:29
Message-Id: <20200925094454.GA802@imap.gmx.com:993>
1 On Fri, Sep 25, 2020 at 04:54:28PM +1000, urpion@×××.com wrote:
2 > On Fri, Sep 25, 2020 at 03:39:20PM +1000, urpion@×××.com wrote:
3 > > Hi! I'm trying to install a library, lsp-dsp-lib-0.5.9, but I fail at
4 > > install phase.
5 > >
6 > >
7 > > >>> Install media-libs/lsp-dsp-lib-0.5.9 into /home/tmp/portage/media-libs/lsp-dsp-lib-0.5.9/image
8 > > make -j4 -l1 DESTDIR=/home/tmp/portage/media-libs/lsp-dsp-lib-0.5.9/image install
9 > > make lsp-common-lib.o
10 > > ld [lsp-dsp-lib] lsp-dsp-lib.o
11 > > g++ [lsp-dsp-lib] liblsp-dsp-lib-0.5.9.so
12 > > ar [lsp-dsp-lib] liblsp-dsp-lib-0.5.9.a
13 > > Installing lsp-dsp-lib
14 > > install /home/tmp/portage/media-libs/lsp-dsp-lib-0.5.9/work/lsp-dsp-lib/.build/lsp-dsp-lib/liblsp-dsp-lib-0.5.9.so -t /home/tmp/portage/media-libs/lsp-dsp-lib-0.5.9/image/usr/lib
15 > > cp /home/tmp/portage/media-libs/lsp-dsp-lib-0.5.9/work/lsp-dsp-lib/.build/lsp-dsp-lib/liblsp-dsp-lib-0.5.9.a -t /home/tmp/portage/media-libs/lsp-dsp-lib-0.5.9/image/usr/lib
16 > > Install OK
17 > > >>> Completed installing media-libs/lsp-dsp-lib-0.5.9 into /home/tmp/portage/media-libs/lsp-dsp-lib-0.5.9/image
18 > >
19 > > * Final size of build directory: 14760 KiB (14.4 MiB)
20 > > * Final size of installed tree: 2120 KiB ( 2.0 MiB)
21 > >
22 > >
23 > > # Copyright 2020 Gentoo Authors
24 > > * QA Notice: The following shared libraries lack a SONAME
25 > > * /usr/lib/liblsp-dsp-lib-0.5.9.so
26 > >
27 > > Files matching a file type that is not allowed:
28 > > usr/lib/liblsp-dsp-lib-0.5.9.so
29 > >
30 > >
31 > > I read "Scanelf: Missing Shared Object Name (SONAME)"
32 > > Which says "To fix this issue, make sure the shared library
33 > > is linked with the proper -Wl,-soname,... flag."
34 > > https://dev.gentoo.org/~zmedico/portage/doc/ch07s04.html
35 > >
36 > > and this forum post about LDFAGS
37 > > https://forums.gentoo.org/viewtopic.php?t=67777
38 > > Which defines an ebuild variable LDFLAGS
39 > >
40 > > So I added to my ebuild:
41 > > LDFAGS="-Wl,-soname,liblsp-dsp-lib-0.5.9.so"
42 > > then tried:
43 > > LDFAGS="-Wl,-soname,liblsp-dsp-lib.so"
44 > > But no go. The docs say I need the actual ABI name.
45 > > Is this the right approach? What is the actual ABI name?
46 > > Any insight is apreciated
47 > > Thank you all.
48 > >
49 > Whoops! Sorry about the typo.
50 > I have tried these:
51 > LDFLAGS="-Wl,-soname,liblsp-dsp-lib-0.5.9.so"
52 > LDFLAGS="-Wl,-soname,liblsp-dsp-lib.so"
53 > LDFLAGS="-Wl,-soname,liblsp-dsp-lib.so.0"
54
55 I have tried using flag-o-matic.eclass like this
56
57 src_configure() {
58 append-ldflags -Wl,-soname,liblsp-dsp-lib-0.5.9.so
59 make PREFIX=/usr config
60 }
61
62 ... but doesn't change anything.