Skip to content

nbd-client.c:1559:32: error: implicit declaration of function ‘persist_mode_main’ [-Wimplicit-function-declaration] #192

@RokerHRO

Description

@RokerHRO

On Debian 13.4 x86_64 I cannot compile nbd and got this error message:

[…]
 CC       nbd_client-nbd-client.o
nbd-client.c: In function ‘main’:
nbd-client.c:1559:32: error: implicit declaration of function ‘persist_mode_main’ [-Wimplicit-function-declaration]
 1559 |                         return persist_mode_main(index, sockfds, flags);
      |                                ^~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:832: nbd_client-nbd-client.o] Error 1

My IDE shows me that HAVE_NETLINK is not defined, therefore the declaration of persist_mode_main() in line 1109 is within the disabled block.

So if NBD needs libnl it should mentioned in the README and the configure script should emit an error if libnl is missing. If libnl is optional it should compile without it.

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