Hello All,
  I was attempting to compile the git head of net-snmp. One big change is
that uses netlink sockets instead of reading /proc/net/*

The issue is the API is different to the library I can see.

mibgroup/mibII/tcpTable.c:631:12: error: too few arguments to function
‘nl_geterror’
  631 |     return nl_geterror();
      |            ^~~~~~~~~~~

And indeed nl_geterror() requires a int:
https://github.com/tgraf/libnl/blob/master/include/netlink/errno.h#L56
extern const char * nl_geterror(int);

So I'm not exactly sure what netlink library is being used here. I cannot
disable this feature either:
mibgroup/if-mib/data_access/interface_linux.c:27:2: error: #error libnl-3
is required. Please install the libnl-3 and libnl-route-3 development
packages and remove --without-nl from the configure options if necessary.
   27 | #error libnl-3 is required. Please install the libnl-3 and
libnl-route-3 development packages and remove --without-nl from the
configure options if necessary.
      |  ^~~~~

 - Craig

-- 

Craig Small             https://dropbear.xyz/  csmall at : dropbear.xyz
Debian GNU/Linux        https://www.debian.org/
<http://www.debian.org/>  csmall at : debian.org
GPG fingerprint:     5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to