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

Problem with compiling zabbix against custom snmp libs

    XMLWordPrintable

Details

    Description

      I have net-snmp located in /usr/local/net-snmp/
      Since 3.0.2 discoverer component from zabbix-server does not compile - gcc can't find snmp headers.

      gcc -DHAVE_CONFIG_H -I. -I../../../include     -O2  -I/usr/local/curl/include -MT discoverer.o -MD -MP -MF .deps/discoverer.Tpo -c -o discoverer.o discoverer.c
      In file included from discoverer.c:33:0:
      ../poller/checks_snmp.h:30:39: fatal error: net-snmp/net-snmp-config.h: No such file or directory
       # include <net-snmp/net-snmp-config.h>
                                             ^
      compilation terminated.
      Makefile:401: recipe for target 'discoverer.o' failed
      make: *** [discoverer.o] Error 1
      

      in Makefile there are required -L flags but -I flag for snmp is missing.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              MrLuke Artur W,
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: