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

Forgotten include causes qt not compile (master branch) error: ‘SIOCGSTAMP’ was not declared in this scope

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.12.5, 5.13.1, 5.14.0 Alpha
    • 5.13.0 RC 3, Some future release
    • SerialBus: CAN Bus
    • Fedora Rawhide
      Linux 5.2.0-0.rc7
      gcc 9.1.1 20190605 (Red Hat 9.1.1-2)
    • Linux/X11
    • 43d746c2c0c87c8694e835f3b052317c8fa02482 (qt/qtserialbus/5.12)

    Description

      qtserialbus.git/tree/src/plugins/canbus/socketcan/socketcanbackend.* missing .
      Because of that :
      socketcanbackend.cpp: In member function ‘void SocketCanBackend::readSocket()’:
      socketcanbackend.cpp:697:41: error: ‘SIOCGSTAMP’ was not declared in this scope; did you mean ‘SIOCSARP’?
      697 | if (Q_UNLIKELY(ioctl(canSocket, SIOCGSTAMP, &timeStamp) < 0)) {

      ^~~~~~~~~~

      <thiago> no, not a known bug
      <thiago> report or fix it
      <thiago> it's a one-liner
      <thiago> linux/sockios.h

      adding
      #include <linux/sockios.h>
      solved problem
       

      Attachments

        Issue Links

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

          Activity

            People

              aha_1980 André Hartmann
              usta Ömer Fadıl USTA
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes