Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-78884

QtCoAP build failure in '5.13': mismatched types ‘const typename QtPrivate::FunctionPointer<Func>::Object*’ and ‘QPointer<QDtls>’

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P0: Blocker
    • 5.13.2, 5.14.0 RC1
    • 5.13.2
    • CoAP
    • None
    • 4f8a4a5c04ea85c8b79c2caf1c92683dbf9aba07 (qt/qtcoap/5.13)

    Description

      agent:2019/10/01 09:07:32 build.go:220: qcoapprotocol.cpp: In member function ‘void QCoapProtocol::sendRequest(QPointer<QCoapReply>, QCoapConnection*)’:
      agent:2019/10/01 09:07:32 build.go:220: qcoapprotocol.cpp:145:6: error: no matching function for call to ‘QCoapProtocol::connect(QPointer<QCoapReply>&, void (QCoapReply::)(const QCoapToken&), QCoapProtocol const, QCoapProtocol::sendRequest(QPointer<QCoapReply>, QCoapConnection*)::__lambda5)’
      agent:2019/10/01 09:07:32 build.go:220: });
      agent:2019/10/01 09:07:32 build.go:220: ^
      agent:2019/10/01 09:07:32 build.go:220: qcoapprotocol.cpp:145:6: note: candidates are:
      agent:2019/10/01 09:07:32 build.go:220: In file included from ../../include/QtCoap/../../src/coap/qcoapglobal.h:35:0,
      agent:2019/10/01 09:07:32 build.go:220: from ../../include/QtCoap/qcoapglobal.h:1,
      agent:2019/10/01 09:07:32 build.go:220: from qcoapprotocol_p.h:34,
      agent:2019/10/01 09:07:32 build.go:220: from qcoapprotocol.cpp:31:
      agent:2019/10/01 09:07:32 build.go:220: /home/qt/work/install/include/QtCore/qobject.h:212:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
      agent:2019/10/01 09:07:32 build.go:220: static QMetaObject::Connection connect(const QObject *sender, const char *signal,
      agent:2019/10/01 09:07:32 build.go:220: ^
      agent:2019/10/01 09:07:32 build.go:220: /home/qt/work/install/include/QtCore/qobject.h:212:36: note: no known conversion for argument 2 from ‘void (QCoapReply::*)(const QCoapToken&)

      {aka void (QCoapReply::*)(const QByteArray&)}

      ’ to ‘const char*’
      agent:2019/10/01 09:07:32 build.go:220: /home/qt/work/install/include/QtCore/qobject.h:215:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType)
      agent:2019/10/01 09:07:32 build.go:220: static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal,
      agent:2019/10/01 09:07:32 build.go:220: ^
      agent:2019/10/01 09:07:32 build.go:220: /home/qt/work/install/include/QtCore/qobject.h:215:36: note: no known conversion for argument 2 from ‘void (QCoapReply::*)(const QCoapToken&)

      {aka void (QCoapReply::*)(const QByteArray&)}

      ’ to ‘const QMetaMethod&’
      agent:2019/10/01 09:07:32 build.go:220: /home/qt/work/install/include/QtCore/qobject.h:467:32: note: QMetaObject::Connection QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
      agent:2019/10/01 09:07:32 build.go:220: inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal,
      agent:2019/10/01 09:07:32 build.go:220: ^
      agent:2019/10/01 09:07:32 build.go:220: /home/qt/work/install/include/QtCore/qobject.h:467:32: note: no known conversion for argument 2 from ‘void (QCoapReply::*)(const QCoapToken&)

      {aka void (QCoapReply::*)(const QByteArray&)}

      ’ to ‘const char*’
      agent:2019/10/01 09:07:32 build.go:220: /home/qt/work/install/include/QtCore/qobject.h:232:43: note: template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType)
      agent:2019/10/01 09:07:32 build.go:220: static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal,
      agent:2019/10/01 09:07:32 build.go:220: ^
      agent:2019/10/01 09:07:32 build.go:220: /home/qt/work/install/include/QtCore/qobject.h:232:43: note: template argument deduction/substitution failed:
      agent:2019/10/01 09:07:32 build.go:220: qcoapprotocol.cpp:145:6: note: mismatched types ‘const typename QtPrivate::FunctionPointer<Func>::Object*’ and ‘QPointer<QCoapReply>’
      agent:2019/10/01 09:07:32 build.go:220: });

      Build log: https://testresults.qt.io/logs/qt/qtcoap/148a5835d922cf0dd9aabfdacd301f775469079e/LinuxSLES_12x86_64LinuxSLES_12x86_64GCCqtci-linux-SLES-12-x86_64-cbad69DisableTests/8e714297be8539ee558f0aa135233c9f7a860a17/build_1569920199/log.txt.gz

      Details: http://ci-files01-hki.intra.qt.io:8080/coin/integration/qt/tqtc-qt5/tasks/1569919118
      Tested changes (refs/builds/qtci/tqtc/5.13/1569919117):
      https://codereview.qt-project.org/q/commit:4041489da07e983148932fb1cd493f154875027b Merge remote-tracking branch 'origin/5.13' into tqtc/5.13
      https://codereview.qt-project.org/q/commit:401301c7b01584f25dc276a06710bfd335c35159 Update submodules on 'tqtc/5.13' in qt5

      Attachments

        For Gerrit Dashboard: QTBUG-78884
        # Subject Branch Project Status CR V

        Activity

          People

            sonakur Sona Kurazyan
            janihe Jani Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes