Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

error: ‘struct xcan_routing_table’ declared inside parameter list not visible outside of definition #1

Open
Tomblarom opened this issue Feb 28, 2022 · 0 comments

Comments

@Tomblarom
Copy link

I tried to install your repo and can't compile. Am I missing something?

  • git clone <repo>
  • cd into <repo>
  • cmake ./
  • make

Error-Message :(

[ 12%] Building C object CMakeFiles/XCAN_EXE.dir/modules/xcan_dev_socketcan.c.o
In file included from /home/kali/xcan-router/modules/xcan_dev_socketcan.c:2:
/home/kali/xcan-router/stack/include/xcan_stack.h: In function ‘xcan_sendto_dev’:
/home/kali/xcan-router/stack/include/xcan_stack.h:31:28: error: ‘struct xcan_routing_table’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
   31 | int xcan_stack_init(struct xcan_routing_table *routing_table);
      |                            ^~~~~~~~~~~~~~~~~~
In file included from /home/kali/xcan-router/modules/xcan_dev_socketcan.c:5:
/usr/include/unistd.h:255:22: error: storage class specified for parameter ‘useconds_t’
  255 | typedef __useconds_t useconds_t;
      |                      ^~~~~~~~~~
/usr/include/unistd.h:274:21: error: storage class specified for parameter ‘socklen_t’
  274 | typedef __socklen_t socklen_t;
      |                     ^~~~~~~~~
...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant