Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 710560 - media-video/shotcut-19.12.31 fails to build: error: binding reference of type 'Mlt::Producer&' to 'const Mlt::Producer' discards qualifiers
Summary: media-video/shotcut-19.12.31 fails to build: error: binding reference of type...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Dmitriy Baranov
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-23 10:21 UTC by Pacho Ramos
Modified: 2020-02-23 11:18 UTC (History)
1 user (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 Pacho Ramos gentoo-dev 2020-02-23 10:21:07 UTC
Maybe it needs newer mlt version, I have current stable 6.16.0-r2

ETWORK_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I. -I../CuteLogger/include -isystem /usr/include/mlt++ -isystem /usr/include/mlt -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtOpenGL -isystem /usr/include/qt5/QtPrintSupport -isystem /usr/include/qt5/QtWebKitWidgets -isystem /usr/include/qt5/QtQuickWidgets -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtWebKit -isystem /usr/include/qt5/QtMultimedia -isystem /usr/include/qt5/QtX11Extras -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtWebSockets -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtSql -isystem /usr/include/qt5/QtCore -I. -isystem /usr/include/libdrm -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o timelinedock.o docks/timelinedock.cpp
In file included from /usr/include/qt5/QtCore/qdebug.h:47,
                 from /usr/include/qt5/QtGui/qgenericmatrix.h:45,
                 from /usr/include/qt5/QtGui/qquaternion.h:44,
                 from /usr/include/qt5/QtGui/qmatrix4x4.h:46,
                 from /usr/include/qt5/QtGui/QMatrix4x4:1,
                 from /usr/include/qt5/QtQuick/qsgnode.h:44,
                 from /usr/include/qt5/QtQuick/qsgrendererinterface.h:43,
                 from /usr/include/qt5/QtQuick/qquickwindow.h:44,
                 from /usr/include/qt5/QtQuickWidgets/qquickwidget.h:44,
                 from /usr/include/qt5/QtQuickWidgets/QQuickWidget:1,
                 from docks/timelinedock.h:22,
                 from docks/timelinedock.cpp:18:
/usr/include/qt5/QtCore/qmap.h: In instantiation of 'QMapData<Key, T>::Node* QMapData<Key, T>::createNode(const Key&, const T&, QMapData<Key, T>::Node*, bool) [with Key = int; T = Mlt::Producer; QMapData<Key, T>::Node = QMapNode<int, Mlt::Producer>]':
/usr/include/qt5/QtCore/qmap.h:811:11:   required from 'QMap<K, V>::iterator QMap<K, V>::insertMulti(const Key&, const T&) [with Key = int; T = Mlt::Producer]'
/usr/include/qt5/QtCore/qmap.h:1207:39:   required from 'typename QMap<K, V>::iterator QMultiMap<K, V>::insert(const Key&, const T&) [with Key = int; T = Mlt::Producer; typename QMap<K, V>::iterator = QMap<int, Mlt::Producer>::iterator]'
docks/timelinedock.cpp:885:68:   required from here
/usr/include/qt5/QtCore/qmap.h:230:17: error: binding reference of type 'Mlt::Producer&' to 'const Mlt::Producer' discards qualifiers
  230 |                 new (&n->value) T(v);
      |                 ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/mlt++/MltTractor.h:28,
                 from ./models/multitrackmodel.h:24,
                 from docks/timelinedock.h:24,
                 from docks/timelinedock.cpp:18:
/usr/include/mlt++/MltProducer.h:48:24: note:   initializing argument 1 of 'Mlt::Producer::Producer(Mlt::Producer&)'
   48 |    Producer( Producer &producer );
      |              ~~~~~~~~~~^~~~~~~~
make[1]: *** [Makefile:2997: timelinedock.o] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-video/shotcut-19.12.31/work/shotcut-19.12.31/src'
make: *** [Makefile:74: sub-src-make_first] Error 2
 * ERROR: media-video/shotcut-19.12.31::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-video/shotcut-19.12.31::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-video/shotcut-19.12.31::gentoo'`.
 * The complete build log is located at '/var/log/portage/build/media-video/shotcut-19.12.31:20200223-101754.log.gz'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/media-video/shotcut-19.12.31/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/shotcut-19.12.31/temp/environment'.
 * Working directory: '/var/tmp/portage/media-video/shotcut-19.12.31/work/shotcut-19.12.31'
 * S: '/var/tmp/portage/media-video/shotcut-19.12.31/work/shotcut-19.12.31'
Comment 1 Pacho Ramos gentoo-dev 2020-02-23 10:25:02 UTC
Yes, it needs mlt-6.18
Comment 2 Dmitriy Baranov 2020-02-23 11:01:23 UTC
If its possible, please make commit with fix. It takes a long time to build for me.
Comment 3 Pacho Ramos gentoo-dev 2020-02-23 11:17:55 UTC
OK, thanks, I go for it
Comment 4 Larry the Git Cow gentoo-dev 2020-02-23 11:18:13 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36e837640e6e9b9d5f2234899e15919847c23a79

commit 36e837640e6e9b9d5f2234899e15919847c23a79
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2020-02-23 11:17:55 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2020-02-23 11:17:55 +0000

    media-video/shotcut: Needs newer mlt
    
    Closes: https://bugs.gentoo.org/710560
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 media-video/shotcut/shotcut-19.12.31.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)