Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 678228 - media-sound/cantata-2.3.3 - cantata: error while loading shared libraries: libsolidlite.so: cannot open shared object file: No such file or directory
Summary: media-sound/cantata-2.3.3 - cantata: error while loading shared libraries: li...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL: https://github.com/CDrummond/cantata/...
Whiteboard:
Keywords:
Depends on:
Blocks: 677112
  Show dependency tree
 
Reported: 2019-02-17 13:27 UTC by Bigos
Modified: 2019-02-21 10:55 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bigos 2019-02-17 13:27:12 UTC
After recently building media-sound/cantata-2.3.3, it no longer launches due to:

  cantata: error while loading shared libraries: libsolidlite.so:
  cannot open shared object file: No such file or directory

libsolidlite.so is an internal cantata library, but it is not being installed. It should either be linked statically or installed (I assume the former was intended, as there is no "install()" command for it in the CMake files).

I have found the following in the 3rdparty/solid-lite/CMakeLists.txt file:

  add_library(solidlite ${solidlite_LIB_SRCS})

Usually, there should be a SHARED or STATIC constant signifying the type of the library we want to build. However, it is ommited here. From the documentation [1]:

  If no type is given explicitly the type is STATIC or SHARED based on
  whether the current value of the variable BUILD_SHARED_LIBS is ON.

It looks like the default value of BUILD_SHARED_LIBS has changed recently [2].

I am using cmake version 3.13.4.

[1] https://cmake.org/cmake/help/v3.14/command/add_library.html
[2] https://archives.gentoo.org/gentoo-dev/message/8fd670ee2f38ce8fac699b01c9471c29
Comment 1 Larry the Git Cow gentoo-dev 2019-02-17 16:19:11 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=564cb54b235260ec1550e33bc2e4750cafc2226f

commit 564cb54b235260ec1550e33bc2e4750cafc2226f
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2019-02-17 16:11:25 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2019-02-17 16:12:59 +0000

    media-sound/cantata: Fix bundled solid-lite static linking
    
    Thanks-to: Bigos <wielkiegie@gmail.com>
    Closes: https://bugs.gentoo.org/678228
    Package-Manager: Portage-2.3.60, Repoman-2.3.12
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-sound/cantata/cantata-2.3.3-r1.ebuild        | 122 +++++++++++++++++++++
 .../files/cantata-2.3.3-solidlite-static.patch     |  29 +++++
 2 files changed, 151 insertions(+)