[mythtv-users] Broken Compile - Arch Linux (Ambiguous operator overload)

Martin Gallant martyg at goodbit.net
Fri Feb 24 04:27:38 UTC 2017


Hello,

I am trying to compile the 0.28.1 release on Arch Linux.

Can anyone point me in the right direction with these errors before I go
into a deep dive?
Looks to me like an issue with bleeding edge build tools, but that's just a
guess.

Does this look familiar to anyone?

loggingserver.cpp: In member function 'virtual void DBLoggerThread::run()':
loggingserver.cpp:725:36: error: ambiguous overload for 'operator!='
(operand types are 'QCharRef' and 'char')
             if (item->message()[0] != '\0')
                 ~~~~~~~~~~~~~~~~~~~^~~~~~~
In file included from /usr/include/qt/QtCore/qobject.h:47:0,
                 from /usr/include/qt/QtCore/qiodevice.h:45,
                 from /usr/include/qt/QtCore/qdatastream.h:44,
                 from /usr/include/qt/QtGui/qregion.h:49,
                 from /usr/include/qt/QtGui/qevent.h:45,
                 from /usr/include/qt/QtGui/QList:1,
                 from loggingserver.cpp:5:
/usr/include/qt/QtCore/qstring.h:1639:13: note: candidate: bool
operator!=(QChar, const QStringRef&)
 inline bool operator!=(QChar lhs, const QStringRef &rhs) Q_DECL_NOTHROW {
return !(lhs == rhs); }
             ^~~~~~~~
/usr/include/qt/QtCore/qstring.h:1620:13: note: candidate: bool
operator!=(QChar, const QString&)
 inline bool operator!=(QChar lhs, const QString &rhs) Q_DECL_NOTHROW {
return !(lhs == rhs); }
             ^~~~~~~~
In file included from /usr/include/qt/QtCore/qstring.h:48:0,
                 from /usr/include/qt/QtCore/qobject.h:47,
                 from /usr/include/qt/QtCore/qiodevice.h:45,
                 from /usr/include/qt/QtCore/qdatastream.h:44,
                 from /usr/include/qt/QtGui/qregion.h:49,
                 from /usr/include/qt/QtGui/qevent.h:45,
                 from /usr/include/qt/QtGui/QList:1,
                 from loggingserver.cpp:5:
/usr/include/qt/QtCore/qchar.h:576:30: note: candidate: constexpr bool
operator!=(QChar, QChar)
 Q_DECL_CONSTEXPR inline bool operator!=(QChar c1, QChar c2) Q_DECL_NOTHROW
{ return !operator==(c1, c2); }
                              ^~~~~~~~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20170223/5a30251b/attachment.html>


More information about the mythtv-users mailing list