Skip to content

[Question]: Is it possible to compile current origin/master on FreeBSD 13.2 #28

@mrdsam

Description

@mrdsam

Ask a question

Is it possible to compile current origin/master on FreeBSD 13.2?
I get the following error. Any ideas?
Version 1.4 works without problems.

  CC       check_interfaces.o
check_interfaces.c: In function 'parse_and_check_commandline':
check_interfaces.c:1262:30: error: array type has incomplete element type 'struct option'
 1262 |         static struct option longopts[] = {
      |                              ^~~~~~~~
check_interfaces.c:1263:29: error: 'no_argument' undeclared (first use in this function)
 1263 |                 {"aliases", no_argument, NULL, 'a'},
      |                             ^~~~~~~~~~~
check_interfaces.c:1263:29: note: each undeclared identifier is reported only once for each function it appears in
check_interfaces.c:1265:31: error: 'required_argument' undeclared (first use in this function)
 1265 |                 {"bandwidth", required_argument, NULL, 'b'},
      |                               ^~~~~~~~~~~~~~~~~
check_interfaces.c:1293:23: warning: implicit declaration of function 'getopt_long' [-Wimplicit-function-declaration]
 1293 |         while ((opt = getopt_long(argc, argv,
      |                       ^~~~~~~~~~~
*** Error code 1

Stop.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions