Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-19708

Compilation on FreeBSD with snmp library fails

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • 6.0.0alpha1
    • 6.0.0alpha1
    • Server (S)
    • FreeBSD 11.2-RELEASE-p14, amd64

      make clean
      ./bootstrap.sh
      ./configure --enable-agent --enable-server --with-mysql --with-libcurl --enable-ipv6 --with-libxml2 --with-net-snmp --prefix=$(pwd)
      make
      

      results in

      Making all in poller
      cc -DHAVE_CONFIG_H -I. -I../../../include    -I../../../src/libs/zbxsysinfo/simple  -I../../../src/libs/zbxdbcache  -I/usr/local/include -I/include -I/usr/local/include -I/usr/local/lib/perl5/5.30/mach/CORE -I/usr/include -I. -I/usr/local/include     -I/usr/local/include -g -O2  -I/usr/local/include -MT libzbxpoller_a-checks_snmp.o -MD -MP -MF .deps/libzbxpoller_a-checks_snmp.Tpo -c -o libzbxpoller_a-checks_snmp.o `test -f 'checks_snmp.c' || echo './'`checks_snmp.c
      checks_snmp.c:609:35: error: use of undeclared identifier 'usmAES192CiscoPrivProtocol'; did you mean 'usmAES192PrivProtocol'?
                                                      session.securityPrivProto = usmAES192CiscoPrivProtocol;
                                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                  usmAES192PrivProtocol
      /usr/local/include/net-snmp/library/transform_oids.h:26:26: note: 'usmAES192PrivProtocol' declared here
      NETSNMP_IMPORT oid      *usmAES192PrivProtocol; /* backwards compat */
                               ^
      checks_snmp.c:610:49: error: use of undeclared identifier 'usmAES192CiscoPrivProtocol'; did you mean 'usmAES192PrivProtocol'?
                                                      session.securityPrivProtoLen = OID_LENGTH(usmAES192CiscoPrivProtocol);
                                                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                                usmAES192PrivProtocol
      /usr/local/include/net-snmp/library/asn1.h:48:32: note: expanded from macro 'OID_LENGTH'
      #define OID_LENGTH(x)  (sizeof(x)/sizeof(oid))
                                     ^
      /usr/local/include/net-snmp/library/transform_oids.h:26:26: note: 'usmAES192PrivProtocol' declared here
      NETSNMP_IMPORT oid      *usmAES192PrivProtocol; /* backwards compat */
                               ^
      checks_snmp.c:614:35: error: use of undeclared identifier 'usmAES256CiscoPrivProtocol'; did you mean 'usmAES256PrivProtocol'?
                                                      session.securityPrivProto = usmAES256CiscoPrivProtocol;
                                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                  usmAES256PrivProtocol
      /usr/local/include/net-snmp/library/transform_oids.h:27:26: note: 'usmAES256PrivProtocol' declared here
      NETSNMP_IMPORT oid      *usmAES256PrivProtocol; /* backwards compat */
                               ^
      checks_snmp.c:615:49: error: use of undeclared identifier 'usmAES256CiscoPrivProtocol'; did you mean 'usmAES256PrivProtocol'?
                                                      session.securityPrivProtoLen = OID_LENGTH(usmAES256CiscoPrivProtocol);
                                                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                                usmAES256PrivProtocol
      /usr/local/include/net-snmp/library/asn1.h:48:32: note: expanded from macro 'OID_LENGTH'
      #define OID_LENGTH(x)  (sizeof(x)/sizeof(oid))
                                     ^
      /usr/local/include/net-snmp/library/transform_oids.h:27:26: note: 'usmAES256PrivProtocol' declared here
      NETSNMP_IMPORT oid      *usmAES256PrivProtocol; /* backwards compat */
                               ^
      4 errors generated.
      *** Error code 1
      

            arimdjonoks Artjoms Rimdjonoks
            arimdjonoks Artjoms Rimdjonoks
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: