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.
On Debian 13.4 x86_64 I cannot compile nbd and got this error message:
My IDE shows me that
HAVE_NETLINKis not defined, therefore the declaration ofpersist_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.