-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.9] Compile error on x86 32bit linux machine #202
Comments
I've encountered the same problem:
I could get it compiled using this patch: commit 8989a087ecf113c4f81730fce96e02ba42efcde1
Author: Thomas Devoogdt <thomas.devoogdt@barco.com>
Date: Thu Aug 19 09:03:57 2021 +0200
agent/mibgroup/ip-mib/data_access/ipaddress_ioctl.c: fix unavailable netsnmp_access_other_info_get function
netsnmp_access_other_info_get is not compiled if HAVE_LINUX_RTNETLINK_H is not defined
Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
diff --git a/agent/mibgroup/ip-mib/data_access/ipaddress_ioctl.c b/agent/mibgroup/ip-mib/data_access/ipaddress_ioctl.c
index 01bde911a2..45edd04ba1 100644
--- a/agent/mibgroup/ip-mib/data_access/ipaddress_ioctl.c
+++ b/agent/mibgroup/ip-mib/data_access/ipaddress_ioctl.c
@@ -244,7 +244,7 @@ _netsnmp_ioctl_ipaddress_container_load_v4(netsnmp_container *container,
* get broadcast
*/
memset(&addr_info, 0, sizeof(struct address_flag_info));
-#if defined (NETSNMP_ENABLE_IPV6)
+#if defined (NETSNMP_ENABLE_IPV6) && defined (HAVE_LINUX_RTNETLINK_H)
addr_info = netsnmp_access_other_info_get(entry->if_index, AF_INET);
if(addr_info.bcastflg) {
bcastentry = netsnmp_access_ipaddress_entry_create(); Problem is that <linux/rtnetlink.h> is not available on older kernels, netsnmp_access_other_info_get was therefore not compiled. |
fenner
pushed a commit
to fenner/net-snmp
that referenced
this issue
Aug 24, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to compile net-snmp 5.9 from sources on x86 32bit linux machne:
Configure parameters:
./configure --without-perl-modules --disable-embedded-perl --enable-ipv6 --prefix=/usr/ --with-defaults --enable-new-features --with-default-snmp-version=2 --with-systemd --with-security-modules="usm tsm" --enable-blumenthal-aes --with-transports="DTLSUDP" --with-install-prefix="/home/user/net-snmp-5.9/package"
make ends with an error:
Logs:
config.log
The text was updated successfully, but these errors were encountered: