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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical 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)

      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
       

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes