Skip to content

10.0.9 with gcc-14: udev.c:127:13: error: implicit declaration of function ‘if_getnetworknamespace’ #352

@Polynomial-C

Description

@Polynomial-C

gcc-14 seems to not like the 10.0.9 release:

x86_64-pc-linux-gnu-gcc -fPIC -DPIC -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  -march=native -mtune=native -O2 -pipe -std=c99  -c udev.c -o udev.So
udev.c: In function ‘udev_start’:
udev.c:127:13: error: implicit declaration of function ‘if_getnetworknamespace’ [-Wimplicit-function-declaration]
  127 |         if (if_getnetworknamespace(netns, sizeof(netns)) != NULL) {
      |             ^~~~~~~~~~~~~~~~~~~~~~
udev.c:127:58: warning: comparison between pointer and integer
  127 |         if (if_getnetworknamespace(netns, sizeof(netns)) != NULL) {
      |                                                          ^~
make[2]: *** [Makefile:21: udev.So] Error 1

whereas gcc-13 has no issue with that code.

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