Skip to content

undefined symbol persist_mode_main when HAVE_NETLINK=0 - #186

Closed
andreasbaumann wants to merge 1 commit into
NetworkBlockDevice:masterfrom
andreasbaumann:persist_mode_main_netlink_patch
Closed

andreasbaumann wants to merge 1 commit into
NetworkBlockDevice:masterfrom
andreasbaumann:persist_mode_main_netlink_patch

Conversation

@andreasbaumann

Copy link
Copy Markdown

Reproducable when manually setting HAVE_NETLINK to 0 in config.h:

nbd-client.c: In function ‘main’:
nbd-client.c:1549:32: error: implicit declaration of function ‘persist_mode_main’ [-Wimplicit-function-declaration]
 1549 |                         return persist_mode_main(index, sockfds, flags);
      |                                ^~~~~~~~~~~~~~~~~

@yoe

yoe commented Aug 30, 2026

Copy link
Copy Markdown
Member

In response to this mistake, I've made netlink not optional in commit 6a48271. This should have happened years ago.

You must make sure that libnl-genl is installed and that its .pc file is available in the pkg-config (or pkgconf) search path for this to work.

@yoe yoe closed this Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants