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

Compilation errors in qwaylanddatacontrolv1.cpp due to incomplete type definitions and undeclared identifiers.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P0: Blocker
    • None
    • 6.9.1
    • QPA: Wayland
    • None

    Description

      /home/qt/work/qt/qtwayland/src/client/qwaylanddatacontrolv1.cpp: In member function ‘virtual void QtWaylandClient::QWaylandDataControlSourceV1::zwlr_data_control_source_v1_send(const QString&, int32_t)’:
      /home/qt/work/qt/qtwayland/src/client/qwaylanddatacontrolv1.cpp:148:26: error: aggregate ‘QtWaylandClient::QWaylandDataControlSourceV1::zwlr_data_control_source_v1_send(const QString&, int32_t)::sigaction action’ has incomplete type and cannot be defined
        148 |         struct sigaction action, oldAction;
            |                          ^~~~~~
      /home/qt/work/qt/qtwayland/src/client/qwaylanddatacontrolv1.cpp:148:34: error: aggregate ‘QtWaylandClient::QWaylandDataControlSourceV1::zwlr_data_control_source_v1_send(const QString&, int32_t)::sigaction oldAction’ has incomplete type and cannot be defined
        148 |         struct sigaction action, oldAction;
            |                                  ^~~~~~~~~
      /home/qt/work/qt/qtwayland/src/client/qwaylanddatacontrolv1.cpp:149:29: error: ‘SIG_IGN’ was not declared in this scope
        149 |         action.sa_handler = SIG_IGN;
            |                             ^~~~~~~
      /home/qt/work/qt/qtwayland/src/client/qwaylanddatacontrolv1.cpp:150:9: error: ‘sigemptyset’ was not declared in this scope
        150 |         sigemptyset (&action.sa_mask);
            |         ^~~~~~~~~~~
      /home/qt/work/qt/qtwayland/src/client/qwaylanddatacontrolv1.cpp:153:19: error: ‘SIGPIPE’ was not declared in this scope; did you mean ‘EPIPE’?
        153 |         sigaction(SIGPIPE, &action, &oldAction);
            |                   ^~~~~~~
            |                   EPIPE
      /home/qt/work/qt/qtwayland/src/client/qwaylanddatacontrolv1.cpp:153:47: error: invalid use of incomplete type ‘struct QtWaylandClient::QWaylandDataControlSourceV1::zwlr_data_control_source_v1_send(const QString&, int32_t)::sigaction’
        153 |         sigaction(SIGPIPE, &action, &oldAction);
            |                                               ^
      /home/qt/work/qt/qtwayland/src/client/qwaylanddatacontrolv1.cpp:148:16: note: forward declaration of ‘struct QtWaylandClient::QWaylandDataControlSourceV1::zwlr_data_control_source_v1_send(const QString&, int32_t)::sigaction’
        148 |         struct sigaction action, oldAction;
            |                ^~~~~~~~~
      /home/qt/work/qt/qtwayland/src/client/qwaylanddatacontrolv1.cpp:154:26: error: ‘write’ was not declared in this scope; did you mean ‘fwrite’?
        154 |         ssize_t unused = write(fd, content.constData(), size_t(content.size()));
            |                          ^~~~~
            |                          fwrite
      /home/qt/work/qt/qtwayland/src/client/qwaylanddatacontrolv1.cpp:156:47: error: invalid use of incomplete type ‘struct QtWaylandClient::QWaylandDataControlSourceV1::zwlr_data_control_source_v1_send(const QString&, int32_t)::sigaction’
        156 |         sigaction(SIGPIPE, &oldAction, nullptr);
            |                                               ^
      /home/qt/work/qt/qtwayland/src/client/qwaylanddatacontrolv1.cpp:148:16: note: forward declaration of ‘struct QtWaylandClient::QWaylandDataControlSourceV1::zwlr_data_control_source_v1_send(const QString&, int32_t)::sigaction’
        148 |         struct sigaction action, oldAction;
            |                ^~~~~~~~~
      /home/qt/work/qt/qtwayland/src/client/qwaylanddatacontrolv1.cpp:158:5: error: ‘close’ was not declared in this scope; did you mean ‘pclose’?
        158 |     close(fd);
            |     ^~~~~
            |     pclose
      Sccache command failed, re-try calling build tool directly
      /home/qt/work/qt/qtwayland/src/client/qwaylanddatacontrolv1.cpp: In member function ‘virtual void QtWaylandClient::QWaylandDataControlSourceV1::zwlr_data_control_source_v1_send(const QString&, int32_t)’:
      /home/qt/work/qt/qtwayland/src/client/qwaylanddatacontrolv1.cpp:148:26: error: aggregate ‘QtWaylandClient::QWaylandDataControlSourceV1::zwlr_data_control_source_v1_send(const QString&, int32_t)::sigaction action’ has incomplete type and cannot be defined
        148 |         struct sigaction action, oldAction;
            |                          ^~~~~~
      /home/qt/work/qt/qtwayland/src/client/qwaylanddatacontrolv1.cpp:148:34: error: aggregate ‘QtWaylandClient::QWaylandDataControlSourceV1::zwlr_data_control_source_v1_send(const QString&, int32_t)::sigaction oldAction’ has incomplete type and cannot be defined
        148 |         struct sigaction action, oldAction;
            |                                  ^~~~~~~~~
      /home/qt/work/qt/qtwayland/src/client/qwaylanddatacontrolv1.cpp:149:29: error: ‘SIG_IGN’ was not declared in this scope
        149 |         action.sa_handler = SIG_IGN;
            |                             ^~~~~~~
      /home/qt/work/qt/qtwayland/src/client/qwaylanddatacontrolv1.cpp:150:9: error: ‘sigemptyset’ was not declared in this scope
        150 |         sigemptyset (&action.sa_mask);
            |         ^~~~~~~~~~~
      /home/qt/work/qt/qtwayland/src/client/qwaylanddatacontrolv1.cpp:153:19: error: ‘SIGPIPE’ was not declared in this scope; did you mean ‘EPIPE’?
        153 |         sigaction(SIGPIPE, &action, &oldAction);
            |                   ^~~~~~~
            |                   EPIPE
      /home/qt/work/qt/qtwayland/src/client/qwaylanddatacontrolv1.cpp:153:47: error: invalid use of incomplete type ‘struct QtWaylandClient::QWaylandDataControlSourceV1::zwlr_data_control_source_v1_send(const QString&, int32_t)::sigaction’
        153 |         sigaction(SIGPIPE, &action, &oldAction);
            |                                               ^
      /home/qt/work/qt/qtwayland/src/client/qwaylanddatacontrolv1.cpp:148:16: note: forward declaration of ‘struct QtWaylandClient::QWaylandDataControlSourceV1::zwlr_data_control_source_v1_send(const QString&, int32_t)::sigaction’
        148 |         struct sigaction action, oldAction;
            |                ^~~~~~~~~
      /home/qt/work/qt/qtwayland/src/client/qwaylanddatacontrolv1.cpp:154:26: error: ‘write’ was not declared in this scope; did you mean ‘fwrite’?
        154 |         ssize_t unused = write(fd, content.constData(), size_t(content.size()));
            |                          ^~~~~
            |                          fwrite
      /home/qt/work/qt/qtwayland/src/client/qwaylanddatacontrolv1.cpp:156:47: error: invalid use of incomplete type ‘struct QtWaylandClient::QWaylandDataControlSourceV1::zwlr_data_control_source_v1_send(const QString&, int32_t)::sigaction’
        156 |         sigaction(SIGPIPE, &oldAction, nullptr);
            |                                               ^
      /home/qt/work/qt/qtwayland/src/client/qwaylanddatacontrolv1.cpp:148:16: note: forward declaration of ‘struct QtWaylandClient::QWaylandDataControlSourceV1::zwlr_data_control_source_v1_send(const QString&, int32_t)::sigaction’
        148 |         struct sigaction action, oldAction;
            |                ^~~~~~~~~
      /home/qt/work/qt/qtwayland/src/client/qwaylanddatacontrolv1.cpp:158:5: error: ‘close’ was not declared in this scope; did you mean ‘pclose’?
        158 |     close(fd);
            |     ^~~~~
            |     pclose
      

      Build log: https://testresults.qt.io/logs/qt/qtwayland/aa74d3a967b9e259c44314596b7f6bc5e2d4f3ae/LinuxUbuntu_24_04x86_64LinuxUbuntu_24_04x86_64GCCqtci-linux-Ubuntu-24.04-x86_64-50-e1e1f9Sccache_UseConfigure/2f9c5239252a4f1f9b5c572b32a8da2bdf26ba2b/build_1744751425/log.txt.gz

      Details: https://testresults.qt.io/coin/integration/qt/qtwayland/tasks/1744751415

      Tested changes (refs/builds/qtci/6.9/1744750396):
      https://codereview.qt-project.org/c/qt/qtwayland/+/636994/1 Bump version to 6.9.1
      https://codereview.qt-project.org/c/qt/qtwayland/+/640163/2 Update dependencies on '6.9' in qt/qtwayland

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            janihe Jani Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes