Ad Widget

Collapse

built zabbix-7.0.0alpha9 on Centos7.9 error

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • coffee
    Junior Member
    • Oct 2021
    • 15

    #1

    built zabbix-7.0.0alpha9 on Centos7.9 error

    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​


    Click image for larger version

Name:	image.png
Views:	380
Size:	151.3 KB
ID:	477379
    Last edited by coffee; 19-01-2024, 09:29. Reason: Add images
  • Answer selected by coffee at 19-01-2024, 10:44.
    coffee
    Junior Member
    • Oct 2021
    • 15

    Solved, the low versions of libevent and net snmp caused it. I upgraded to libevent-2.1.12 and net snmp 5.9.4 to resolve the issue.

    Comment

    • coffee
      Junior Member
      • Oct 2021
      • 15

      #2
      Click image for larger version

Name:	image.png
Views:	347
Size:	22.6 KB
ID:	477378
      The net snmp related component packages are as follows.

      Comment

      • coffee
        Junior Member
        • Oct 2021
        • 15

        #3
        Solved, the low versions of libevent and net snmp caused it. I upgraded to libevent-2.1.12 and net snmp 5.9.4 to resolve the issue.

        Comment

        Working...