Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.
This repository was 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

Description

@Tomblarom

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;
      |                     ^~~~~~~~~
...

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