Hi, I built zabbix-7.0.0alpha9 on Centos7.9 and encountered the following error, which seems to be related to net snmp. However, I have already installed net snmp, which is version 5.7.2-49.el7_ 9.3. x86_ 64, please help me.
make error:
checks_snmp.c: In function ‘asynch_response’:
checks_snmp.c:2285:8: error: ‘NETSNMP_CALLBACK_OP_SEC_ERROR’ undeclared (first use in this function)
case NETSNMP_CALLBACK_OP_SEC_ERROR:
^
checks_snmp.c:2285:8: note: each undeclared identifier is reported only once for each function it appears in
checks_snmp.c:2289:8: error: ‘NETSNMP_CALLBACK_OP_RESEND’ undeclared (first use in this function)
case NETSNMP_CALLBACK_OP_RESEND:
^
checks_snmp.c: In function ‘get_values_snmp’:
checks_snmp.c:3198:59: error: ‘EVDNS_BASE_INITIALIZE_NAMESERVERS’ undeclared (first use in this function)
if (NULL == (dnsbase = evdns_base_new(snmp_result.base, EVDNS_BASE_INITIALIZE_NAMESERVERS)))
^
make[3]: *** [libzbxpoller_a-checks_snmp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/libzbxpoller_a-checks_simple_vmware.Tpo .deps/libzbxpoller_a-checks_simple_vmware.Po
make[3]: Leaving directory `/root/zabbix-7.0.0alpha9/src/zabbix_server/poller'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/zabbix-7.0.0alpha9/src/zabbix_server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/zabbix-7.0.0alpha9/src'
make: *** [all-recursive] Error 1
make error:
checks_snmp.c: In function ‘asynch_response’:
checks_snmp.c:2285:8: error: ‘NETSNMP_CALLBACK_OP_SEC_ERROR’ undeclared (first use in this function)
case NETSNMP_CALLBACK_OP_SEC_ERROR:
^
checks_snmp.c:2285:8: note: each undeclared identifier is reported only once for each function it appears in
checks_snmp.c:2289:8: error: ‘NETSNMP_CALLBACK_OP_RESEND’ undeclared (first use in this function)
case NETSNMP_CALLBACK_OP_RESEND:
^
checks_snmp.c: In function ‘get_values_snmp’:
checks_snmp.c:3198:59: error: ‘EVDNS_BASE_INITIALIZE_NAMESERVERS’ undeclared (first use in this function)
if (NULL == (dnsbase = evdns_base_new(snmp_result.base, EVDNS_BASE_INITIALIZE_NAMESERVERS)))
^
make[3]: *** [libzbxpoller_a-checks_snmp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/libzbxpoller_a-checks_simple_vmware.Tpo .deps/libzbxpoller_a-checks_simple_vmware.Po
make[3]: Leaving directory `/root/zabbix-7.0.0alpha9/src/zabbix_server/poller'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/zabbix-7.0.0alpha9/src/zabbix_server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/zabbix-7.0.0alpha9/src'
make: *** [all-recursive] Error 1
Comment