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

[REG 5.15.1->6.0.0] macOS: network/secureudpclient fails to build

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Invalid
    • Affects Version/s: 6.0.0 Beta2
    • Fix Version/s: None
    • Component/s: Network
    • Labels:
    • Environment:
      macOS10.15 and macOS10.14
      Creator 4.13.3
    • Platform/s:
      macOS

      Description

      Build the example from command line, build fails with:

      Scanning dependencies of target secureudpclient_autogen
      [ 14%] Automatic MOC and UIC for target secureudpclient
      [ 14%] Built target secureudpclient_autogen
      Scanning dependencies of target secureudpclient
      [ 28%] Building CXX object CMakeFiles/secureudpclient.dir/secureudpclient_autogen/mocs_compilation.cpp.o
      In file included from /Users/qt/RTA/qt5/Examples/Qt-6.0.0/network/secureudpclient/secureudpclient_autogen/mocs_compilation.cpp:3:
      In file included from /Users/qt/RTA/qt5/Examples/Qt-6.0.0/network/secureudpclient/secureudpclient_autogen/EWIEGA46WW/moc_association.cpp:10:
      /Users/qt/RTA/qt5/Examples/Qt-6.0.0/network/secureudpclient/secureudpclient_autogen/EWIEGA46WW/../../association.h:86:5: error: unknown type name 'QDtls'
          QDtls crypto;
          ^
      In file included from /Users/qt/RTA/qt5/Examples/Qt-6.0.0/network/secureudpclient/secureudpclient_autogen/mocs_compilation.cpp:3:
      /Users/qt/RTA/qt5/Examples/Qt-6.0.0/network/secureudpclient/secureudpclient_autogen/EWIEGA46WW/moc_association.cpp:179:21: error: cannot initialize object parameter of type 'QObject' with an expression of type 'DtlsAssociation'
          return QObject::qt_metacast(_clname);
                          ^~~~~~~~~~~
      /Users/qt/RTA/qt5/Examples/Qt-6.0.0/network/secureudpclient/secureudpclient_autogen/EWIEGA46WW/moc_association.cpp:184:20: error: cannot initialize object parameter of type 'QObject' with an expression of type 'DtlsAssociation'
          _id = QObject::qt_metacall(_c, _id, _a);
                         ^~~~~~~~~~~
      /Users/qt/RTA/qt5/Examples/Qt-6.0.0/network/secureudpclient/secureudpclient_autogen/EWIEGA46WW/moc_association.cpp:189:32: error: cannot initialize a parameter of type 'QObject *' with an rvalue of type 'DtlsAssociation *'
                  qt_static_metacall(this, _c, _id, _a);
                                     ^~~~
      /Users/qt/RTA/qt5/Examples/Qt-6.0.0/network/secureudpclient/secureudpclient_autogen/EWIEGA46WW/moc_association.cpp:103:51: note: passing argument to parameter '_o' here
      void DtlsAssociation::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
                                                        ^
      /Users/qt/RTA/qt5/Examples/Qt-6.0.0/network/secureudpclient/secureudpclient_autogen/EWIEGA46WW/moc_association.cpp:203:5: error: no matching function for call to 'activate'
          QMetaObject::activate(this, &staticMetaObject, 0, _a);
          ^~~~~~~~~~~~~~~~~~~~~
      /Users/qt/RTA/qt5/6.0.0/clang_64/lib/QtCore.framework/Headers/qobjectdefs.h:222:17: note: candidate function not viable: no known conversion from 'DtlsAssociation *' to 'QObject *' for 1st argument
          static void activate(QObject *sender, const QMetaObject *, int local_signal_index, void **argv);
                      ^
      /Users/qt/RTA/qt5/6.0.0/clang_64/lib/QtCore.framework/Headers/qobjectdefs.h:223:17: note: candidate function not viable: no known conversion from 'DtlsAssociation *' to 'QObject *' for 1st argument
          static void activate(QObject *sender, int signal_offset, int local_signal_index, void **argv);
                      ^
      /Users/qt/RTA/qt5/6.0.0/clang_64/lib/QtCore.framework/Headers/qobjectdefs.h:221:17: note: candidate function not viable: requires 3 arguments, but 4 were provided
          static void activate(QObject *sender, int signal_index, void **argv);
                      ^
      In file included from /Users/qt/RTA/qt5/Examples/Qt-6.0.0/network/secureudpclient/secureudpclient_autogen/mocs_compilation.cpp:3:
      /Users/qt/RTA/qt5/Examples/Qt-6.0.0/network/secureudpclient/secureudpclient_autogen/EWIEGA46WW/moc_association.cpp:210:5: error: no matching function for call to 'activate'
          QMetaObject::activate(this, &staticMetaObject, 1, _a);
          ^~~~~~~~~~~~~~~~~~~~~
      /Users/qt/RTA/qt5/6.0.0/clang_64/lib/QtCore.framework/Headers/qobjectdefs.h:222:17: note: candidate function not viable: no known conversion from 'DtlsAssociation *' to 'QObject *' for 1st argument
          static void activate(QObject *sender, const QMetaObject *, int local_signal_index, void **argv);
                      ^
      /Users/qt/RTA/qt5/6.0.0/clang_64/lib/QtCore.framework/Headers/qobjectdefs.h:223:17: note: candidate function not viable: no known conversion from 'DtlsAssociation *' to 'QObject *' for 1st argument
          static void activate(QObject *sender, int signal_offset, int local_signal_index, void **argv);
                      ^
      /Users/qt/RTA/qt5/6.0.0/clang_64/lib/QtCore.framework/Headers/qobjectdefs.h:221:17: note: candidate function not viable: requires 3 arguments, but 4 were provided
          static void activate(QObject *sender, int signal_index, void **argv);
                      ^
      In file included from /Users/qt/RTA/qt5/Examples/Qt-6.0.0/network/secureudpclient/secureudpclient_autogen/mocs_compilation.cpp:3:
      /Users/qt/RTA/qt5/Examples/Qt-6.0.0/network/secureudpclient/secureudpclient_autogen/EWIEGA46WW/moc_association.cpp:217:5: error: no matching function for call to 'activate'
          QMetaObject::activate(this, &staticMetaObject, 2, _a);
          ^~~~~~~~~~~~~~~~~~~~~
      /Users/qt/RTA/qt5/6.0.0/clang_64/lib/QtCore.framework/Headers/qobjectdefs.h:222:17: note: candidate function not viable: no known conversion from 'DtlsAssociation *' to 'QObject *' for 1st argument
          static void activate(QObject *sender, const QMetaObject *, int local_signal_index, void **argv);
                      ^
      /Users/qt/RTA/qt5/6.0.0/clang_64/lib/QtCore.framework/Headers/qobjectdefs.h:223:17: note: candidate function not viable: no known conversion from 'DtlsAssociation *' to 'QObject *' for 1st argument
          static void activate(QObject *sender, int signal_offset, int local_signal_index, void **argv);
                      ^
      /Users/qt/RTA/qt5/6.0.0/clang_64/lib/QtCore.framework/Headers/qobjectdefs.h:221:17: note: candidate function not viable: requires 3 arguments, but 4 were provided
          static void activate(QObject *sender, int signal_index, void **argv);
                      ^
      In file included from /Users/qt/RTA/qt5/Examples/Qt-6.0.0/network/secureudpclient/secureudpclient_autogen/mocs_compilation.cpp:3:
      /Users/qt/RTA/qt5/Examples/Qt-6.0.0/network/secureudpclient/secureudpclient_autogen/EWIEGA46WW/moc_association.cpp:224:5: error: no matching function for call to 'activate'
          QMetaObject::activate(this, &staticMetaObject, 3, _a);
          ^~~~~~~~~~~~~~~~~~~~~
      /Users/qt/RTA/qt5/6.0.0/clang_64/lib/QtCore.framework/Headers/qobjectdefs.h:222:17: note: candidate function not viable: no known conversion from 'DtlsAssociation *' to 'QObject *' for 1st argument
          static void activate(QObject *sender, const QMetaObject *, int local_signal_index, void **argv);
                      ^
      /Users/qt/RTA/qt5/6.0.0/clang_64/lib/QtCore.framework/Headers/qobjectdefs.h:223:17: note: candidate function not viable: no known conversion from 'DtlsAssociation *' to 'QObject *' for 1st argument
          static void activate(QObject *sender, int signal_offset, int local_signal_index, void **argv);
                      ^
      /Users/qt/RTA/qt5/6.0.0/clang_64/lib/QtCore.framework/Headers/qobjectdefs.h:221:17: note: candidate function not viable: requires 3 arguments, but 4 were provided
          static void activate(QObject *sender, int signal_index, void **argv);
      

      Example builds fine on linux.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            releaseteam Qt Release Team
            Reporter:
            joaijala Johanna Äijälä
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes