Skip to content

can compile socketcand with yocto but it's ok with SDK #1

Description

@arashgolgol

This is the error while trying to execute bitbake socketcad

| ../git/state_bcm.c: In function 'state_bcm':
| ../git/state_bcm.c:96:16: error: 'SIOCGSTAMP' undeclared (first use in this function); did you mean 'SIOCGRARP'?
|    96 |   if(ioctl(sc, SIOCGSTAMP, &tv) < 0) {
|       |                ^~~~~~~~~~
|       |                SIOCGRARP
| ../git/state_bcm.c:96:16: note: each undeclared identifier is reported only once for each function it appears in
| ../git/state_isotp.c:21:10: fatal error: linux/can/isotp.h: No such file or directory
|    21 | #include <linux/can/isotp.h>
|       |          ^~~~~~~~~~~~~~~~~~~
| compilation terminated.
| make: *** [Makefile:32: socketcand] Error 1
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/me/dunfell/tinker-board/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/socketcand/0.6.1+gitAUTOINC+46c5ce67a7-r0/temp/run.do_compile.427524' failed with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions