Skip to content

10.2.0: build fails on Linux with --disable-ipv6 #458

@Polynomial-C

Description

@Polynomial-C
x86_64-pc-linux-gnu-gcc -march=native -mtune=native -O2 -pipe -std=c99 -DHAVE_CONFIG_H -DNDEBUG -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DINET -DARP -DARPING -DIPV4LL -DAUTH -DPRIVSEP -DEMBEDDED_CONFIG=\"/lib/dhcpcd/dhcpcd-definitions.conf\" -DPLUGIN_DEV -I.. -I../src -I./crypt -c if-options.c -o if-options.o
if-options.c: In function ‘parse_option’:
if-options.c:910:17: error: ‘vsiop’ undeclared (first use in this function); did you mean ‘vsio’?
  910 |                 vsiop = &ifo->vsio;
      |                 ^~~~~
      |                 vsio
if-options.c:910:17: note: each undeclared identifier is reported only once for each function it appears in
if-options.c:911:17: error: ‘vsio_lenp’ undeclared (first use in this function)
  911 |                 vsio_lenp = &ifo->vsio_len;
      |                 ^~~~~~~~~
if-options.c:912:17: error: ‘opt_max’ undeclared (first use in this function)
  912 |                 opt_max = UINT8_MAX;
      |                 ^~~~~~~
if-options.c:913:17: error: ‘opt_header’ undeclared (first use in this function)
  913 |                 opt_header = sizeof(uint8_t) + sizeof(uint8_t);
      |                 ^~~~~~~~~~
if-options.c:968:61: error: ‘in6addr’ undeclared (first use in this function); did you mean ‘in6_addr’?
  968 |                         } else if (inet_pton(AF_INET6, fp, &in6addr) == 1) {
      |                                                             ^~~~~~~
      |                                                             in6_addr
if-options.c:996:22: error: ‘sl’ undeclared (first use in this function); did you mean ‘dl’?
  996 |                 for (sl = 0, vsio = *vsiop; sl < *vsio_lenp; sl++, vsio++) {
      |                      ^~
      |                      dl
if-options.c:996:30: error: ‘vsio’ undeclared (first use in this function)
  996 |                 for (sl = 0, vsio = *vsiop; sl < *vsio_lenp; sl++, vsio++) {
      |                              ^~~~
if-options.c:1015:30: error: ‘vsio_so’ undeclared (first use in this function)
 1015 |                 for (sl = 0, vsio_so = vsio->so;
      |                              ^~~~~~~
make[1]: *** [Makefile:55: if-options.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions