Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 792555 - media-sound/cantata-2.4.2 - .../cantata-2.4.2/3rdparty/solid-lite/backends/udisks2/udisksblock.h:48:5: error: 'dev_t' does not name a type; did you mean 'div_t'? (on musl)
Summary: media-sound/cantata-2.4.2 - .../cantata-2.4.2/3rdparty/solid-lite/backends/ud...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo musl team
URL: https://github.com/CDrummond/cantata/...
Whiteboard:
Keywords: PATCH, UPSTREAM
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2021-05-27 21:59 UTC by ernsteiswuerfel
Modified: 2021-08-11 08:51 UTC (History)
1 user (show)

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


Attachments
build.log (cantata-2.4.2:20210527-193339.log,63.65 KB, text/plain)
2021-05-27 21:59 UTC, ernsteiswuerfel
Details
emerge --info (file_792555.txt,6.41 KB, text/plain)
2021-05-27 21:59 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2021-05-27 21:59:06 UTC
Created attachment 711810 [details]
build.log

[...]
FAILED: 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/udisks2/udisksblock.cpp.o 
/usr/bin/x86_64-gentoo-linux-musl-g++ -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DWITH_SOLID_UDISKS2 -I3rdparty/solid-lite/solidlite_autogen/include -I/usr/include/qt5/QtMultimedia -I/var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2/3rdparty -I/var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2 -I. -I/usr/include/taglib -I/usr/local/include -I/var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2/3rdparty/solid-lite -I3rdparty/solid-lite -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore -isystem /usr/lib/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtSql -isystem /usr/include/qt5/QtDBus  -std=c++11 -Os -march=bdver3 -pipe -fPIC   -I/usr/include/taglib -fexceptions -UQT_NO_EXCEPTIONS -fPIC -std=gnu++11 -MD -MT 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/udisks2/udisksblock.cpp.o -MF 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/udisks2/udisksblock.cpp.o.d -o 3rdparty/solid-lite/CMakeFiles/solidlite.dir/backends/udisks2/udisksblock.cpp.o -c /var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2/3rdparty/solid-lite/backends/udisks2/udisksblock.cpp
In file included from /var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2/3rdparty/solid-lite/backends/udisks2/udisksblock.cpp:28:
/var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2/3rdparty/solid-lite/backends/udisks2/udisksblock.h:48:5: error: 'dev_t' does not name a type; did you mean 'div_t'?
   48 |     dev_t m_devNum;
      |     ^~~~~
      |     div_t
/var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2/3rdparty/solid-lite/backends/udisks2/udisksblock.cpp: In constructor 'Solid::Backends::UDisks2::Block::Block(Solid::Backends::UDisks2::Device*)':
/var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2/3rdparty/solid-lite/backends/udisks2/udisksblock.cpp:35:5: error: 'm_devNum' was not declared in this scope
   35 |     m_devNum = m_device->prop("DeviceNumber").toULongLong();
      |     ^~~~~~~~
In file included from /var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2/3rdparty/solid-lite/backends/udisks2/udisksblock.cpp:21:
/var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2/3rdparty/solid-lite/backends/udisks2/udisksblock.cpp: In member function 'virtual int Solid::Backends::UDisks2::Block::deviceMinor() const':
/var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2/3rdparty/solid-lite/backends/udisks2/udisksblock.cpp:82:18: error: 'm_devNum' was not declared in this scope
   82 |     return MINOR(m_devNum);
      |                  ^~~~~~~~
/var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2/3rdparty/solid-lite/backends/udisks2/udisksblock.cpp: In member function 'virtual int Solid::Backends::UDisks2::Block::deviceMajor() const':
/var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2/3rdparty/solid-lite/backends/udisks2/udisksblock.cpp:87:18: error: 'm_devNum' was not declared in this scope
   87 |     return MAJOR(m_devNum);
      |                  ^~~~~~~~
ninja: build stopped: subcommand failed.
Comment 1 ernsteiswuerfel archtester 2021-05-27 21:59:39 UTC
Created attachment 711813 [details]
emerge --info
Comment 2 Andreas Sturmlechner gentoo-dev 2021-08-03 16:26:10 UTC
Since this is forked from KDE's solid library, the same patch should work, adapted to the different directory structure:

https://invent.kde.org/frameworks/solid/-/commit/2382c3f8d3669c473130f4baefb68d244dcb5cbc
Comment 3 Andreas Sturmlechner gentoo-dev 2021-08-05 11:02:38 UTC
Please test if you can.

https://github.com/CDrummond/cantata/commit/b3fd0e51bb35bb911e1c77bf48841e2652cc4946
Comment 4 Larry the Git Cow gentoo-dev 2021-08-05 19:08:27 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=656f75dd8ebd952db3a9e8dca9684bd59443f3ad

commit 656f75dd8ebd952db3a9e8dca9684bd59443f3ad
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2021-08-05 19:06:51 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-08-05 19:08:21 +0000

    media-sound/cantata: Fix build with musl libc
    
    Upstream commit 835e48074834fb5b888d53b00f84967701d6d78a
    
    Reported-by: ernsteiswuerfel <erhard_f@mailbox.org>
    Closes: https://bugs.gentoo.org/792555
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-sound/cantata/cantata-2.4.2.ebuild           |  5 +++-
 .../cantata/files/cantata-2.4.2-solid-musl.patch   | 29 ++++++++++++++++++++++
 2 files changed, 33 insertions(+), 1 deletion(-)
Comment 5 ernsteiswuerfel archtester 2021-08-05 23:58:41 UTC
(In reply to Andreas Sturmlechner from comment #3)
> Please test if you can.
Thanks for the patch! Tested just now and it worked but later I ran into another problem:

[...]
[350/376] /usr/bin/x86_64-gentoo-linux-musl-g++ -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_SQL_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -Icantata_autogen/include -I/var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2/3rdparty -I/var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2 -I. -I/usr/include/taglib -I/usr/local/include -I/usr/include/neon -I/usr/include/libxml2 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtMultimedia -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore -isystem /usr/lib/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtSql -isystem /usr/include/qt5/QtDBus  -std=c++11 -Os -march=x86-64 -mtune=k8 -msse3 -pipe -fPIE   -I/usr/include/taglib -fexceptions -UQT_NO_EXCEPTIONS -fPIC -std=gnu++11 -MD -MT CMakeFiles/cantata.dir/gui/main.cpp.o -MF CMakeFiles/cantata.dir/gui/main.cpp.o.d -o CMakeFiles/cantata.dir/gui/main.cpp.o -c /var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2/gui/main.cpp
FAILED: CMakeFiles/cantata.dir/gui/main.cpp.o 
/usr/bin/x86_64-gentoo-linux-musl-g++ -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_SQL_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -Icantata_autogen/include -I/var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2/3rdparty -I/var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2 -I. -I/usr/include/taglib -I/usr/local/include -I/usr/include/neon -I/usr/include/libxml2 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtMultimedia -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore -isystem /usr/lib/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtSql -isystem /usr/include/qt5/QtDBus  -std=c++11 -Os -march=x86-64 -mtune=k8 -msse3 -pipe -fPIE   -I/usr/include/taglib -fexceptions -UQT_NO_EXCEPTIONS -fPIC -std=gnu++11 -MD -MT CMakeFiles/cantata.dir/gui/main.cpp.o -MF CMakeFiles/cantata.dir/gui/main.cpp.o.d -o CMakeFiles/cantata.dir/gui/main.cpp.o -c /var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2/gui/main.cpp
/var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2/gui/main.cpp:264:10: fatal error: execinfo.h: No such file or directory
  264 | #include <execinfo.h>
      |          ^~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.


Shall I re-open or report it as another bug?
Comment 6 Andreas Sturmlechner gentoo-dev 2021-08-11 08:51:04 UTC
(In reply to ernsteiswuerfel from comment #5)
> Shall I re-open or report it as another bug?
Different area, new report.