Gentoo Archives: gentoo-user

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