-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Native CAN device does not build when VFS is used #8922
Copy link
Copy link
Closed
Labels
Type: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)The issue reports a bug / The PR fixes a bug (including spelling errors)
Description
Description
Cannot build candev_linux when vfs is used.
Bisecting returned 93a521c as the culprit (introduced in #8652)
Steps to reproduce the issue
cd tests/conn_can
USEMODULE=vfs make BOARD=native
Expected results
Build OK
Actual results
/home/vincent/Devel/git/RIOT/cpu/native/can/candev_linux.c: In function ‘_init’:
/home/vincent/Devel/git/RIOT/cpu/native/can/candev_linux.c:165:29: error: ‘PF_CAN’ undeclared (first use in this function); did you mean ‘AF_MAX’?
dev->sock = real_socket(PF_CAN, SOCK_RAW, CAN_RAW);
^~~~~~
AF_MAX
/home/vincent/Devel/git/RIOT/cpu/native/can/candev_linux.c:165:29: note: each undeclared identifier is reported only once for each function it appears in
/home/vincent/Devel/git/RIOT/cpu/native/can/candev_linux.c:198:23: error: ‘AF_CAN’ undeclared (first use in this function); did you mean ‘PF_CAN’?
addr.can_family = AF_CAN;
^~~~~~
PF_CAN
Versions
Installed compiler toolchains
-----------------------------
native gcc: gcc (Ubuntu 7.2.0-8ubuntu3.2) 7.2.0
arm-none-eabi-gcc: arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 7-2017-q4-major) 7.2.1 20170904 (release) [ARM/embedded-7-branch revision 255204]
avr-gcc: missing
mips-mti-elf-gcc: missing
msp430-gcc: msp430-gcc (GCC) 4.6.3 20120301 (mspgcc LTS 20120406 unpatched)
clang: clang version 4.0.1-6 (tags/RELEASE_401/final)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)The issue reports a bug / The PR fixes a bug (including spelling errors)