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

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.13.0 RC 3, Some future release
    • Fix Version/s: 5.12.5, 5.13.1, 5.14.0 Alpha
    • Component/s: SerialBus: CAN Bus
    • Labels:
    • Environment:
      Fedora Rawhide
      Linux 5.2.0-0.rc7
      gcc 9.1.1 20190605 (Red Hat 9.1.1-2)
    • Platform/s:
      Linux/X11
    • Commits:
      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

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

            Activity

              People

              Assignee:
              aha_1980 André Hartmann
              Reporter:
              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