You are not logged in.

#1 2024-01-29 17:07:20

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,653

[SOLVED] Cantata: error while loading shared libraries: libtag.so.1

Cantata has stopped working with missing libtag.so.1. It seems like this is connected to the recent update of taglib to 2,0-1.
Is this a bug or is there a solution?

Last edited by d_fajardo (2024-02-06 13:00:41)

Offline

#2 2024-01-29 17:09:57

pdp8
Member
Registered: 2023-05-14
Posts: 5

Re: [SOLVED] Cantata: error while loading shared libraries: libtag.so.1

Cantata is an AUR package. Have you rebuilt it since the taglib update?

Offline

#3 2024-01-29 17:10:35

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,171

Re: [SOLVED] Cantata: error while loading shared libraries: libtag.so.1

Since it's now an AUR package (https://aur.archlinux.org/packages/cantata), definitely not a bug. Up to you to rebuild after a library soname change.

Offline

#4 2024-01-29 17:11:11

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,465
Website

Re: [SOLVED] Cantata: error while loading shared libraries: libtag.so.1

Mod note: moving to AUR Issues


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2024-01-29 17:17:05

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,653

Re: [SOLVED] Cantata: error while loading shared libraries: libtag.so.1

Scimmia wrote:

Up to you to rebuild after a library soname change.

Actually tried to rebuild it but keeps crashing on rebuild with fhe following error:

[ 35%] Built target solidlite
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Offline

#6 2024-01-29 17:26:16

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,171

Re: [SOLVED] Cantata: error while loading shared libraries: libtag.so.1

Which is likely why it was dropped, it didn't build and the maintainer decided it wasn't worth fixing. It has a new maintainer in the AUR, it'll be up to them to fix it.

Offline

#7 2024-01-29 17:35:33

pdp8
Member
Registered: 2023-05-14
Posts: 5

Re: [SOLVED] Cantata: error while loading shared libraries: libtag.so.1

Have you tried building the cantata-git AUR package?

Offline

#8 2024-01-29 18:51:19

stanczew
Member
Registered: 2021-03-02
Posts: 91

Re: [SOLVED] Cantata: error while loading shared libraries: libtag.so.1

Full build log:

==> Making package: cantata 2.5.0-4 (Mon 29 Jan 2024 19:04:21)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found cantata-2.5.0.tar.bz2
==> Validating source files with sha256sums...
    cantata-2.5.0.tar.bz2 ... Passed
==> Extracting sources...
  -> Extracting cantata-2.5.0.tar.bz2 with bsdtar
==> Starting build()...
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "2.1.0") 
-- Checking for module 'avahi-client'
--   Found avahi-client, version 0.8
-- Avahi-Libs found: /usr/lib/libavahi-common.so;/usr/lib/libavahi-client.so
-- Avahi-Include-Dirs found: /usr/include/avahi-common;/usr/include/avahi-client
-- Set build type to Release
CMake Warning (dev) at cmake/FindTaglib.cmake:28 (exec_program):
  Policy CMP0153 is not set: The exec_program command should not be called.
  Run "cmake --help-policy CMP0153" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  Use execute_process() instead.
Call Stack (most recent call first):
  CMakeLists.txt:143 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/FindTaglib.cmake:35 (exec_program):
  Policy CMP0153 is not set: The exec_program command should not be called.
  Run "cmake --help-policy CMP0153" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  Use execute_process() instead.
Call Stack (most recent call first):
  CMakeLists.txt:143 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/FindTaglib.cmake:37 (exec_program):
  Policy CMP0153 is not set: The exec_program command should not be called.
  Run "cmake --help-policy CMP0153" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  Use execute_process() instead.
Call Stack (most recent call first):
  CMakeLists.txt:143 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Taglib found: -ltag -lz
-- Performing Test TAGLIB_CAN_SAVE_ID3VER
-- Performing Test TAGLIB_CAN_SAVE_ID3VER - Failed
-- Performing Test TAGLIB_ASF_FOUND
-- Performing Test TAGLIB_ASF_FOUND - Success
-- Performing Test TAGLIB_MP4_FOUND
-- Performing Test TAGLIB_MP4_FOUND - Success
-- Performing Test TAGLIB_OPUS_FOUND
-- Performing Test TAGLIB_OPUS_FOUND - Success
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (PkgConfig)
  does not match the name of the calling package (Cdioparanoia).  This can
  lead to problems in calling code that expects `find_package` result
  variables (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPkgConfig.cmake:99 (find_package_handle_standard_args)
  cmake/FindCdioparanoia.cmake:11 (include)
  CMakeLists.txt:152 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Checking for module 'libcdio_paranoia'
--   Found libcdio_paranoia, version 10.2+2.0.1
-- Looking for include file cdio/paranoia.h
-- Looking for include file cdio/paranoia.h - not found
-- Looking for include file cdio/cdda.h
-- Looking for include file cdio/cdda.h - not found
-- Looking for include file cdio/paranoia/paranoia.h
-- Looking for include file cdio/paranoia/paranoia.h - found
-- Looking for include file cdio/paranoia/cdda.h
-- Looking for include file cdio/paranoia/cdda.h - found
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args`
  (CDIOPARANOIA) does not match the name of the calling package
  (Cdioparanoia).  This can lead to problems in calling code that expects
  `find_package` result variables (e.g., `_FOUND`) to follow a certain
  pattern.
Call Stack (most recent call first):
  cmake/FindCdioparanoia.cmake:35 (find_package_handle_standard_args)
  CMakeLists.txt:152 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found CDIOPARANOIA: /usr/include;/usr/include  
-- Checking for module 'libcddb'
--   Found libcddb, version 1.3.2
-- Found CDDB: /usr/include  
-- Checking for one of the modules 'libmusicbrainz5cc'
-- Checking for one of the modules 'libmusicbrainz5'
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args`
  (MUSICBRAINZ5) does not match the name of the calling package
  (MusicBrainz5).  This can lead to problems in calling code that expects
  `find_package` result variables (e.g., `_FOUND`) to follow a certain
  pattern.
Call Stack (most recent call first):
  cmake/FindMusicBrainz5.cmake:36 (find_package_handle_standard_args)
  CMakeLists.txt:165 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found MUSICBRAINZ5: /usr/include;/usr/include/neon;/usr/include/libxml2  
-- Found FFMPEG: /usr/lib/libavcodec.so  
-- Found MPG123: /usr/lib/libmpg123.so  
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (PkgConfig)
  does not match the name of the calling package (Mtp).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPkgConfig.cmake:99 (find_package_handle_standard_args)
  cmake/FindMtp.cmake:19 (INCLUDE)
  CMakeLists.txt:185 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Checking for module 'libmtp'
--   Found libmtp, version 1.1.21
CMake Warning (dev) at cmake/FindMtp.cmake:34 (exec_program):
  Policy CMP0153 is not set: The exec_program command should not be called.
  Run "cmake --help-policy CMP0153" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  Use execute_process() instead.
Call Stack (most recent call first):
  CMakeLists.txt:185 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found MTP: /usr/lib/libmtp.so
-- Found ZLIB: /usr/lib/libz.so (found version "1.3.1")  
-- Enabling exceptions
-- Checking for module 'libebur128'
--   Found libebur128, version 1.2.6
-- Using system libebur128
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (PkgConfig)
  does not match the name of the calling package (UDev).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPkgConfig.cmake:99 (find_package_handle_standard_args)
  cmake/FindUDev.cmake:15 (include)
  3rdparty/solid-lite/CMakeLists.txt:49 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Checking for module 'libudev'
--   Found libudev, version 255
-- Found UDev: /usr/include  
-- Building Solid UDev backend.
-- Warning: environment variable XDG_DATA_DIRS not set, falling back to /usr/share
-- Building Solid HAL backend.
-- Building Solid UDisks2 backend.
CMake Deprecation Warning at 3rdparty/qtiocompressor/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.



-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
-----------------------------------------------------------------------------
   * Avahi Support - Automatic MPD-Server Detection
   * TagLib - Tag editor, file organiser, etc.
   * libcdio_paranoia - CD ripping.
   * libcddb - CD info retrieval via CDDB.
   * libmusicbrainz5 - CD info retrieval via MusicBrainz.
   * libavcodec/libavutil/libavformat - ReplayGain calculation.
   * libmpg123 - ReplayGain calculation.
   * libmtp - MTP Device Support.
   * Qt5Multimedia - MPD HTTP stream playback.
   * UDev - UDev support for Solid
   * media-player-info - Enables identification and querying of portable media players

-----------------------------------------------------------------------------
-- Congratulations! All external packages have been found.
-----------------------------------------------------------------------------

-- Configuring done (2.5s)
-- Generating done (0.0s)
-- Build files have been written to: /tmp/makepkg/build/cantata/src/build
[  0%] Built target qtiocompressor_autogen_timestamp_deps
[  0%] Built target cantata-tags_autogen_timestamp_deps
[  0%] Built target support-core_autogen_timestamp_deps
[  0%] Built target cantata-replaygain_autogen_timestamp_deps
[  0%] Built target solidlite_autogen_timestamp_deps
[  0%] Built target support_autogen_timestamp_deps
Updating '/tmp/makepkg/build/cantata/src/build/translations/cantata_cs.qm'...
    Generated 1599 translation(s) (1599 finished and 0 unfinished)
[  1%] Automatic MOC and UIC for target cantata-tags
[  1%] Automatic MOC and UIC for target support-core
[  1%] Automatic MOC and UIC for target support
[  4%] Automatic MOC and UIC for target solidlite
[  4%] Automatic MOC and UIC for target qtiocompressor
[  4%] Automatic MOC and UIC for target cantata-replaygain
Updating '/tmp/makepkg/build/cantata/src/build/translations/cantata_da.qm'...
    Generated 1599 translation(s) (1599 finished and 0 unfinished)
Updating '/tmp/makepkg/build/cantata/src/build/translations/cantata_de.qm'...
    Generated 1434 translation(s) (1327 finished and 107 unfinished)
    Ignored 165 untranslated source text(s)
Updating '/tmp/makepkg/build/cantata/src/build/translations/cantata_en_GB.qm'...
    Generated 42 translation(s) (0 finished and 42 unfinished)
    Ignored 1557 untranslated source text(s)
Updating '/tmp/makepkg/build/cantata/src/build/translations/cantata_es.qm'...
    Generated 1139 translation(s) (0 finished and 1139 unfinished)
    Ignored 460 untranslated source text(s)
[  4%] Built target cantata-tags_autogen
[  4%] Built target support-core_autogen
Updating '/tmp/makepkg/build/cantata/src/build/translations/cantata_fi.qm'...
[  4%] Built target qtiocompressor_autogen
    Generated 1237 translation(s) (1194 finished and 43 unfinished)
    Ignored 362 untranslated source text(s)
[  4%] Building CXX object tags/CMakeFiles/cantata-tags.dir/cantata-tags_autogen/mocs_compilation.cpp.o
[  5%] Building CXX object tags/CMakeFiles/cantata-tags.dir/taghelper.cpp.o
[  5%] Building CXX object tags/CMakeFiles/cantata-tags.dir/__/mpd-interface/song.cpp.o
[  5%] Building CXX object tags/CMakeFiles/cantata-tags.dir/tags.cpp.o
[  5%] Building CXX object tags/CMakeFiles/cantata-tags.dir/main.cpp.o
[  5%] Building CXX object tags/CMakeFiles/cantata-tags.dir/filetyperesolver.cpp.o
[  6%] Building CXX object support/CMakeFiles/support-core.dir/thread.cpp.o
Updating '/tmp/makepkg/build/cantata/src/build/translations/cantata_fr.qm'...
[  6%] Building CXX object support/CMakeFiles/support-core.dir/utils.cpp.o
[  6%] Building CXX object support/CMakeFiles/support-core.dir/support-core_autogen/mocs_compilation.cpp.o
    Generated 1557 translation(s) (1549 finished and 8 unfinished)
    Ignored 42 untranslated source text(s)
[  6%] Building CXX object 3rdparty/qtiocompressor/CMakeFiles/qtiocompressor.dir/qtiocompressor_autogen/mocs_compilation.cpp.o
[  6%] Building CXX object 3rdparty/qtiocompressor/CMakeFiles/qtiocompressor.dir/qtiocompressor.cpp.o
Updating '/tmp/makepkg/build/cantata/src/build/translations/cantata_hu.qm'...
    Generated 1275 translation(s) (0 finished and 1275 unfinished)
    Ignored 324 untranslated source text(s)
[  6%] Built target cantata-replaygain_autogen
Updating '/tmp/makepkg/build/cantata/src/build/translations/cantata_it.qm'...
    Generated 1599 translation(s) (1599 finished and 0 unfinished)
Updating '/tmp/makepkg/build/cantata/src/build/translations/cantata_ja.qm'...
[  6%] Building CXX object replaygain/CMakeFiles/cantata-replaygain.dir/cantata-replaygain_autogen/mocs_compilation.cpp.o
[  6%] Building CXX object replaygain/CMakeFiles/cantata-replaygain.dir/ffmpeginput.cpp.o
    Generated 1544 translation(s) (1535 finished and 9 unfinished)
    Ignored 55 untranslated source text(s)
[  6%] Building CXX object replaygain/CMakeFiles/cantata-replaygain.dir/main.cpp.o
[  7%] Building CXX object replaygain/CMakeFiles/cantata-replaygain.dir/mpg123input.cpp.o
[  7%] Building CXX object replaygain/CMakeFiles/cantata-replaygain.dir/replaygain.cpp.o
[  7%] Building CXX object replaygain/CMakeFiles/cantata-replaygain.dir/trackscanner.cpp.o
Updating '/tmp/makepkg/build/cantata/src/build/translations/cantata_ko.qm'...
    Generated 1599 translation(s) (0 finished and 1599 unfinished)
Updating '/tmp/makepkg/build/cantata/src/build/translations/cantata_nl.qm'...
    Generated 1584 translation(s) (1584 finished and 0 unfinished)
    Ignored 15 untranslated source text(s)
Updating '/tmp/makepkg/build/cantata/src/build/translations/cantata_pl.qm'...
    Generated 1599 translation(s) (1599 finished and 0 unfinished)
Updating '/tmp/makepkg/build/cantata/src/build/translations/cantata_pt_BR.qm'...
    Generated 1558 translation(s) (1553 finished and 5 unfinished)
    Ignored 41 untranslated source text(s)
[  7%] Built target support_autogen
[  7%] Generating ui_shortcutssettingswidget.h
Updating '/tmp/makepkg/build/cantata/src/build/translations/cantata_ru.qm'...
    Generated 1272 translation(s) (0 finished and 1272 unfinished)
    Ignored 327 untranslated source text(s)
[  7%] Generating qrc_support.cpp
Updating '/tmp/makepkg/build/cantata/src/build/translations/cantata_zh_CN.qm'...
    Generated 1302 translation(s) (1285 finished and 17 unfinished)
    Ignored 297 untranslated source text(s)
[  7%] Built target translations
[  8%] Building CXX object replaygain/CMakeFiles/cantata-replaygain.dir/jobcontroller.cpp.o
[  9%] Building CXX object support/CMakeFiles/support.dir/support_autogen/mocs_compilation.cpp.o
[  9%] Building CXX object support/CMakeFiles/support.dir/icon.cpp.o
[  9%] Built target solidlite_autogen
[  9%] Building CXX object support/CMakeFiles/support.dir/fancytabwidget.cpp.o
/tmp/makepkg/build/cantata/src/cantata-2.5.0/replaygain/ffmpeginput.cpp: In member function ‘virtual unsigned int FfmpegInput::channels() const’:
/tmp/makepkg/build/cantata/src/cantata-2.5.0/replaygain/ffmpeginput.cpp:284:43: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
  284 |     return handle ? handle->codecContext->channels : 0;
      |                                           ^~~~~~~~
In file included from /tmp/makepkg/build/cantata/src/cantata-2.5.0/replaygain/ffmpeginput.cpp:21:
/usr/include/libavcodec/avcodec.h:1072:9: note: declared here
 1072 |     int channels;
      |         ^~~~~~~~
/tmp/makepkg/build/cantata/src/cantata-2.5.0/replaygain/ffmpeginput.cpp:284:43: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
  284 |     return handle ? handle->codecContext->channels : 0;
      |                                           ^~~~~~~~
/usr/include/libavcodec/avcodec.h:1072:9: note: declared here
 1072 |     int channels;
      |         ^~~~~~~~
/tmp/makepkg/build/cantata/src/cantata-2.5.0/replaygain/ffmpeginput.cpp:284:43: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
  284 |     return handle ? handle->codecContext->channels : 0;
      |                                           ^~~~~~~~
/usr/include/libavcodec/avcodec.h:1072:9: note: declared here
 1072 |     int channels;
      |         ^~~~~~~~
/tmp/makepkg/build/cantata/src/cantata-2.5.0/replaygain/ffmpeginput.cpp: In member function ‘virtual bool FfmpegInput::setChannelMap(int*) const’:
/tmp/makepkg/build/cantata/src/cantata-2.5.0/replaygain/ffmpeginput.cpp:299:41: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
  299 |     if (handle && handle->codecContext->channel_layout) {
      |                                         ^~~~~~~~~~~~~~
/usr/include/libavcodec/avcodec.h:1130:14: note: declared here
 1130 |     uint64_t channel_layout;
      |              ^~~~~~~~~~~~~~
/tmp/makepkg/build/cantata/src/cantata-2.5.0/replaygain/ffmpeginput.cpp:299:41: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
  299 |     if (handle && handle->codecContext->channel_layout) {
      |                                         ^~~~~~~~~~~~~~
/usr/include/libavcodec/avcodec.h:1130:14: note: declared here
 1130 |     uint64_t channel_layout;
      |              ^~~~~~~~~~~~~~
/tmp/makepkg/build/cantata/src/cantata-2.5.0/replaygain/ffmpeginput.cpp:299:41: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
  299 |     if (handle && handle->codecContext->channel_layout) {
      |                                         ^~~~~~~~~~~~~~
/usr/include/libavcodec/avcodec.h:1130:14: note: declared here
 1130 |     uint64_t channel_layout;
      |              ^~~~~~~~~~~~~~
/tmp/makepkg/build/cantata/src/cantata-2.5.0/replaygain/ffmpeginput.cpp:302:60: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
  302 |         while (mapIndex < (unsigned) handle->codecContext->channels) {
      |                                                            ^~~~~~~~
/usr/include/libavcodec/avcodec.h:1072:9: note: declared here
 1072 |     int channels;
      |         ^~~~~~~~
/tmp/makepkg/build/cantata/src/cantata-2.5.0/replaygain/ffmpeginput.cpp:302:60: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
  302 |         while (mapIndex < (unsigned) handle->codecContext->channels) {
      |                                                            ^~~~~~~~
/usr/include/libavcodec/avcodec.h:1072:9: note: declared here
 1072 |     int channels;
      |         ^~~~~~~~
/tmp/makepkg/build/cantata/src/cantata-2.5.0/replaygain/ffmpeginput.cpp:302:60: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
  302 |         while (mapIndex < (unsigned) handle->codecContext->channels) {
      |                                                            ^~~~~~~~
/usr/include/libavcodec/avcodec.h:1072:9: note: declared here
 1072 |     int channels;
      |         ^~~~~~~~
/tmp/makepkg/build/cantata/src/cantata-2.5.0/replaygain/ffmpeginput.cpp:303:39: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
  303 |             if (handle->codecContext->channel_layout & (1 << bitCounter)) {
      |                                       ^~~~~~~~~~~~~~
/usr/include/libavcodec/avcodec.h:1130:14: note: declared here
 1130 |     uint64_t channel_layout;
      |              ^~~~~~~~~~~~~~
/tmp/makepkg/build/cantata/src/cantata-2.5.0/replaygain/ffmpeginput.cpp:303:39: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
  303 |             if (handle->codecContext->channel_layout & (1 << bitCounter)) {
      |                                       ^~~~~~~~~~~~~~
/usr/include/libavcodec/avcodec.h:1130:14: note: declared here
 1130 |     uint64_t channel_layout;
      |              ^~~~~~~~~~~~~~
/tmp/makepkg/build/cantata/src/cantata-2.5.0/replaygain/ffmpeginput.cpp:303:39: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
  303 |             if (handle->codecContext->channel_layout & (1 << bitCounter)) {
      |                                       ^~~~~~~~~~~~~~
/usr/include/libavcodec/avcodec.h:1130:14: note: declared here
 1130 |     uint64_t channel_layout;
      |              ^~~~~~~~~~~~~~
/tmp/makepkg/build/cantata/src/cantata-2.5.0/replaygain/ffmpeginput.cpp: In member function ‘size_t FfmpegInput::readOnePacket()’:
/tmp/makepkg/build/cantata/src/cantata-2.5.0/replaygain/ffmpeginput.cpp:473:45: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
  473 |     int numChannels = handle->codecContext->channels;
      |                                             ^~~~~~~~
/usr/include/libavcodec/avcodec.h:1072:9: note: declared here
 1072 |     int channels;
      |         ^~~~~~~~
/tmp/makepkg/build/cantata/src/cantata-2.5.0/replaygain/ffmpeginput.cpp:473:45: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
  473 |     int numChannels = handle->codecContext->channels;
      |                                             ^~~~~~~~
/usr/include/libavcodec/avcodec.h:1072:9: note: declared here
 1072 |     int channels;
      |         ^~~~~~~~
/tmp/makepkg/build/cantata/src/cantata-2.5.0/replaygain/ffmpeginput.cpp:473:45: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
  473 |     int numChannels = handle->codecContext->channels;
      |                                             ^~~~~~~~
/usr/include/libavcodec/avcodec.h:1072:9: note: declared here
 1072 |     int channels;
      |         ^~~~~~~~
[  9%] Building CXX object replaygain/CMakeFiles/cantata-replaygain.dir/__/support/thread.cpp.o
[  9%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/solidlite_autogen/mocs_compilation.cpp.o
[ 10%] Building CXX object support/CMakeFiles/support.dir/messagewidget.cpp.o
[ 10%] Linking CXX static library libqtiocompressor.a
[ 11%] Built target qtiocompressor
[ 11%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/solidnamespace.cpp.o
[ 11%] Building CXX object support/CMakeFiles/support.dir/buddylabel.cpp.o
[ 11%] Building CXX object support/CMakeFiles/support.dir/action.cpp.o
[ 11%] Building CXX object support/CMakeFiles/support.dir/actioncollection.cpp.o
[ 12%] Building CXX object support/CMakeFiles/support.dir/lineedit.cpp.o
[ 12%] Building CXX object support/CMakeFiles/support.dir/configuration.cpp.o
/tmp/makepkg/build/cantata/src/cantata-2.5.0/tags/tags.cpp: In function ‘void Tags::readAPETags(TagLib::APE::Tag*, Song*, ReplayGain*, QImage*, int*)’:
/tmp/makepkg/build/cantata/src/cantata-2.5.0/tags/tags.cpp:622:64: error: ‘const class TagLib::APE::Item’ has no member named ‘value’; did you mean ‘values’?
  622 |             TagLib::ByteVector item = map["COVER ART (FRONT)"].value();
      |                                                                ^~~~~
      |                                                                values
[ 12%] Building CXX object support/CMakeFiles/support.dir/gtkstyle.cpp.o
[ 13%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/managerbase.cpp.o
/tmp/makepkg/build/cantata/src/cantata-2.5.0/tags/tags.cpp: In function ‘void Tags::readTags(TagLib::FileRef, Song*, ReplayGain*, QImage*, QString*, int*)’:
/tmp/makepkg/build/cantata/src/cantata-2.5.0/tags/tags.cpp:1304:36: error: invalid conversion from ‘TagLib::Tag*’ to ‘TagLib::ID3v2::Tag*’ [-fpermissive]
 1304 |             readID3v2Tags(file->tag(), song, rg, img, lyrics, rating);
      |                           ~~~~~~~~~^~
      |                                    |
      |                                    TagLib::Tag*
/tmp/makepkg/build/cantata/src/cantata-2.5.0/tags/tags.cpp:313:47: note:   initializing argument 1 of ‘void Tags::readID3v2Tags(TagLib::ID3v2::Tag*, Song*, ReplayGain*, QImage*, QString*, int*)’
  313 | static void readID3v2Tags(TagLib::ID3v2::Tag *tag, Song *song, ReplayGain *rg, QImage *img, QString *lyrics, int *rating)
      |                           ~~~~~~~~~~~~~~~~~~~~^~~
/tmp/makepkg/build/cantata/src/cantata-2.5.0/tags/tags.cpp: In function ‘bool Tags::writeTags(TagLib::FileRef, const Song&, const Song&, const RgTags&, const QByteArray&, int, bool)’:
/tmp/makepkg/build/cantata/src/cantata-2.5.0/tags/tags.cpp:1422:45: error: invalid conversion from ‘TagLib::Tag*’ to ‘TagLib::ID3v2::Tag*’ [-fpermissive]
 1422 |             changed=writeID3v2Tags(file->tag(), from, to, rg, img, rating) || changed;
      |                                    ~~~~~~~~~^~
      |                                             |
      |                                             TagLib::Tag*
/tmp/makepkg/build/cantata/src/cantata-2.5.0/tags/tags.cpp:496:48: note:   initializing argument 1 of ‘bool Tags::writeID3v2Tags(TagLib::ID3v2::Tag*, const Song&, const Song&, const RgTags&, const QByteArray&, int)’
  496 | static bool writeID3v2Tags(TagLib::ID3v2::Tag *tag, const Song &from, const Song &to, const RgTags &rg, const QByteArray &img, int rating)
      |                            ~~~~~~~~~~~~~~~~~~~~^~~
/tmp/makepkg/build/cantata/src/cantata-2.5.0/tags/tags.cpp: In function ‘Song Tags::read(const QString&)’:
/tmp/makepkg/build/cantata/src/cantata-2.5.0/tags/tags.cpp:1458:76: warning: ‘virtual int TagLib::AudioProperties::length() const’ is deprecated [-Wdeprecated-declarations]
 1458 |     song.time=fileref.audioProperties() ? fileref.audioProperties()->length() : 0;
      |                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /usr/include/taglib/fileref.h:33,
                 from /tmp/makepkg/build/cantata/src/cantata-2.5.0/tags/filetyperesolver.h:28,
                 from /tmp/makepkg/build/cantata/src/cantata-2.5.0/tags/tags.cpp:26:
/usr/include/taglib/audioproperties.h:82:17: note: declared here
   82 |     virtual int length() const;
      |                 ^~~~~~
make[2]: *** [tags/CMakeFiles/cantata-tags.dir/build.make:125: tags/CMakeFiles/cantata-tags.dir/tags.cpp.o] Error 1
[ 13%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/device.cpp.o
make[2]: *** Waiting for unfinished jobs....
[ 13%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/devicemanager.cpp.o
[ 14%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/deviceinterface.cpp.o
[ 14%] Building CXX object support/CMakeFiles/support.dir/spinner.cpp.o
[ 14%] Linking CXX executable ../cantata-replaygain
[ 15%] Building CXX object support/CMakeFiles/support.dir/messagebox.cpp.o
[ 15%] Building CXX object support/CMakeFiles/support.dir/inputdialog.cpp.o
[ 15%] Linking CXX static library libsupport-core.a
[ 15%] Building CXX object support/CMakeFiles/support.dir/thread.cpp.o
[ 15%] Built target support-core
[ 16%] Building CXX object support/CMakeFiles/support.dir/squeezedtextlabel.cpp.o
[ 16%] Built target cantata-replaygain
[ 16%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/genericinterface.cpp.o
[ 16%] Building CXX object support/CMakeFiles/support.dir/proxystyle.cpp.o
make[1]: *** [CMakeFiles/Makefile2:470: tags/CMakeFiles/cantata-tags.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 16%] Building CXX object support/CMakeFiles/support.dir/pagewidget.cpp.o
[ 16%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/block.cpp.o
[ 16%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/storagedrive.cpp.o
[ 16%] Building CXX object support/CMakeFiles/support.dir/combobox.cpp.o
[ 17%] Building CXX object support/CMakeFiles/support.dir/configdialog.cpp.o
[ 17%] Building CXX object support/CMakeFiles/support.dir/monoicon.cpp.o
[ 18%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/opticaldrive.cpp.o
[ 18%] Building CXX object support/CMakeFiles/support.dir/pathrequester.cpp.o
[ 18%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/storagevolume.cpp.o
[ 18%] Building CXX object support/CMakeFiles/support.dir/kmessagewidget.cpp.o
[ 18%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/opticaldisc.cpp.o
[ 18%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/storageaccess.cpp.o
[ 19%] Building CXX object support/CMakeFiles/support.dir/dialog.cpp.o
[ 20%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/portablemediaplayer.cpp.o
[ 20%] Building CXX object support/CMakeFiles/support.dir/shortcutsmodel.cpp.o
[ 20%] Building CXX object support/CMakeFiles/support.dir/shortcutssettingswidget.cpp.o
[ 21%] Building CXX object support/CMakeFiles/support.dir/keysequencewidget.cpp.o
[ 21%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/predicate.cpp.o
[ 21%] Building CXX object support/CMakeFiles/support.dir/acceleratormanager.cpp.o
[ 21%] Building CXX object support/CMakeFiles/support.dir/urllabel.cpp.o
[ 21%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/predicateparse.cpp.o
[ 21%] Building CXX object support/CMakeFiles/support.dir/qrc_support.cpp.o
[ 22%] Building C object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/predicate_lexer.c.o
[ 22%] Building C object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/predicate_parser.c.o
[ 22%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/xdgbasedirs.cpp.o
[ 22%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/ifaces/block.cpp.o
[ 23%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/ifaces/opticaldrive.cpp.o
[ 23%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/ifaces/device.cpp.o
[ 23%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/ifaces/deviceinterface.cpp.o
[ 23%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/ifaces/devicemanager.cpp.o
[ 24%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/ifaces/genericinterface.cpp.o
[ 24%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/ifaces/opticaldisc.cpp.o
[ 24%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/ifaces/portablemediaplayer.cpp.o
[ 25%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/ifaces/storagedrive.cpp.o
[ 25%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/ifaces/storagevolume.cpp.o
[ 25%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/ifaces/storageaccess.cpp.o
[ 25%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/shared/rootdevice.cpp.o
[ 26%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/udev/udevdevice.cpp.o
[ 26%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/udev/udevmanager.cpp.o
[ 26%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/udev/udevdeviceinterface.cpp.o
[ 26%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/udev/udevgenericinterface.cpp.o
[ 27%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/udev/udevportablemediaplayer.cpp.o
[ 27%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/udev/udevblock.cpp.o
[ 27%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/shared/udevqtclient.cpp.o
[ 28%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/shared/udevqtdevice.cpp.o
[ 28%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/hal/halblock.cpp.o
[ 28%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/hal/halcdrom.cpp.o
[ 28%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/hal/haldeviceinterface.cpp.o
[ 29%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/hal/halfstabhandling.cpp.o
[ 29%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/hal/halgenericinterface.cpp.o
[ 29%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/hal/haldevice.cpp.o
[ 29%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/hal/halmanager.cpp.o
[ 30%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/hal/halopticaldisc.cpp.o
[ 30%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/hal/halportablemediaplayer.cpp.o
[ 30%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/hal/halstorageaccess.cpp.o
[ 31%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/hal/halstorage.cpp.o
[ 31%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/hal/halvolume.cpp.o
[ 31%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/udisks2/udisksmanager.cpp.o
[ 31%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/udisks2/udisksdevice.cpp.o
[ 32%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/udisks2/udisksdevicebackend.cpp.o
[ 33%] Linking CXX static library libsupport.a
[ 33%] Built target support
[ 33%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/udisks2/udisksblock.cpp.o
[ 33%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/udisks2/udisksstoragevolume.cpp.o
[ 33%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/udisks2/udisksdeviceinterface.cpp.o
[ 34%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/udisks2/udisksopticaldisc.cpp.o
[ 34%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/udisks2/udisksopticaldrive.cpp.o
[ 34%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/udisks2/udisksstoragedrive.cpp.o
[ 35%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/udisks2/udisksstorageaccess.cpp.o
[ 35%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/udisks2/udisksgenericinterface.cpp.o
[ 35%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/udisks2/dbus/manager.cpp.o
[ 35%] Linking CXX static library libsolidlite.a
[ 35%] Built target solidlite
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Actual errors are in tags.cpp – as expected for a major update of taglib.


pdp8 wrote:

Have you tried building the cantata-git AUR package?

It requires taglib-extras, which also doesn't compile with the new taglib smile
Changing taglib-extras to taglib (which I suppose was done at some point in the main package, but not in -git one) results in the same errors as above. Which is not a surprise – the fork which cantata-git switched to doesn't have any taglib-related updates.


Here is a list of solutions and/or workarounds that I can see:

  • Install taglib1 and use your old Cantata version (2.5.0-3) – quick, but no way to go forward with this

  • Build Cantata linking to taglib1 instead of taglib

  • Build with -DENABLE_TAGLIB=OFF

  • Update the code in tags.cpp to conform to taglib 2

  • Find a new music player, since Cantata is unmaintained

Last edited by stanczew (2024-01-29 18:52:13)

Online

#9 2024-01-29 19:37:02

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,653

Re: [SOLVED] Cantata: error while loading shared libraries: libtag.so.1

Yes i got this message from the maintainer;

@d_fajardo your post don't identify which is the error, only that it fails, anyway, I made some tests, there has been a taglib update to v2.0 this have introduced breaking changes, taglib1 have been uploaded on the AUR, bad news there isn't a way to specify the taglib path with cmake at first sight

the options at the moment are:

disable taglib support (this disable tagging, replaygain and media device)
depends or makedepends on taglib1 but the pkgbuild must be build in clean chroot using a local repo or passing the taglib package

This is too bad as I really like Cantata, the interface and the extra features. There's not a lot of QT frontend for mpd but I'm more inclined to just try another player rather than tinkering on a problem.

Offline

#10 2024-01-29 20:27:12

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,653

Re: [SOLVED] Cantata: error while loading shared libraries: libtag.so.1

It seems other player like Amarok won't build as well because taglib-extras won't build as deps.

Offline

#11 2024-01-30 19:39:57

brix
Member
Registered: 2014-05-26
Posts: 69

Re: [SOLVED] Cantata: error while loading shared libraries: libtag.so.1

cantata-git in AUR now builds against taglib (v. 2) rather than taglib-extras thanks to edits by the maintainer of the cantata fork it's based on.

Simply replace 'taglib-extras' with 'taglib' in the PKGBUILD.

With luck this could lead to cantata's return to the extras repo.


Enough is more.

Offline

#12 2024-02-06 13:00:18

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,653

Re: [SOLVED] Cantata: error while loading shared libraries: libtag.so.1

Great! Replacing taglib-extras with taglib in PKGBUILD works. Thanks to the devs for continuing support. I tried other MPD interfaces but I still prefer by far Cantata.,

Offline

Board footer

Powered by FluxBB