Ad Widget

Collapse

[1.6.2]compile problems

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • loulancn
    Junior Member
    • Feb 2009
    • 3

    #1

    [1.6.2]compile problems

    make[3]: Leaving directory `/root/zabbix-1.6.2/src/zabbix_server/pinger'
    Making all in poller
    make[3]: Entering directory `/root/zabbix-1.6.2/src/zabbix_server/poller'
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -I/usr/include/mysql -g -pipe -m32 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -MT checks_snmp.o -MD -MP -MF ".deps/checks_snmp.Tpo" -c -o checks_snmp.o checks_snmp.c; \
    then mv -f ".deps/checks_snmp.Tpo" ".deps/checks_snmp.Po"; else rm -f ".deps/checks_snmp.Tpo"; exit 1; fi
    checks_snmp.c: In function `snmp_get_index':
    checks_snmp.c:180: error: structure has no member named `localname'
    checks_snmp.c: In function `get_snmp':
    checks_snmp.c:473: error: structure has no member named `localname'
    make[3]: *** [checks_snmp.o] Error 1
    make[3]: Leaving directory `/root/zabbix-1.6.2/src/zabbix_server/poller'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/root/zabbix-1.6.2/src/zabbix_server'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/root/zabbix-1.6.2/src'
    make: *** [all-recursive] Error 1

    My System info

    [root@linux zabbix-1.6.2]# cat /etc/redhat-release
    CentOS release 4.7 (Final)
    [root@linux zabbix-1.6.2]# rpm -qa|grep -i snmp
    net-snmp-5.1.2-13.el4
    net-snmp-utils-5.1.2-13.el4
    net-snmp-libs-5.1.2-13.el4
    net-snmp-devel-5.1.2-13.el4





    Help
    Last edited by loulancn; 05-02-2009, 13:44.
  • simix
    Member
    • Jul 2006
    • 53

    #2
    net-snmp of RHEL/CentOS 4.x is too old. So that means you can't build the server part with SNMP support.

    Comment

    • loulancn
      Junior Member
      • Feb 2009
      • 3

      #3
      how to fix it ?
      upgrade My system to Centos5 ?

      Comment

      • xs-
        Senior Member
        Zabbix Certified Specialist
        • Dec 2007
        • 393

        #4
        - Compile net-snmp yourself and install it to i.e. --prefix=/opt/net-snmp
        - Add /opt/net-snmp/lib to /etc/ld.so.conf + run ldconfig
        - When configuring zabbix use the following example
        LDFLAGS="-L/opt/net-snmp/lib ${LDFLAGS}" CPPFLAGS="-I/opt/net-snmp/include ${CPPFLAGS}" \
        ./configure --enable-server --enable-proxy --enable-agent \
        --prefix=<inst_base>
        --with-<your db of choice> \
        --with-net-snmp=/opt/net-snmp/bin/net-snmp-config \
        --with-curl
        ....
        - When compiling zabbix, use the following example
        LDFLAGS="-L/opt/net-snmp/lib ${LDFLAGS}" CPPFLAGS="-I/opt/net-snmp/include ${CPPFLAGS}" \
        make all install
        Hope this helps


        And, please, dont forget to uninstall your out-of-date dist net-snmp

        Comment

        • loulancn
          Junior Member
          • Feb 2009
          • 3

          #5
          thanks a lot !
          I try

          Comment

          • gsaini
            Junior Member
            • May 2006
            • 5

            #6
            ERROR when compiling with SNMP

            Hi,

            I am trying to compile Zabbix server 1.6.2 on Solaris 10 (SPARC) with Oracle 10g. It is working fine without enabling SNMP option. When I enable SNMP I am getting following error :

            checking for net-snmp-config... /usr/local/net-snmp
            configure: error: Invalid NET-SNMP directory - unable to find net-snmp-config

            net-snmp-config file do exist but I am not sure why it is compailing about this. See listing of required file below :
            -rwxr-xr-x 1 root root 23467 Dec 30 19:43 /usr/local/net-snmp/bin/net-snmp-config

            I will appreciate any help on this.

            Thanks

            Comment

            • xs-
              Senior Member
              Zabbix Certified Specialist
              • Dec 2007
              • 393

              #7
              --with-net-snmp=/usr/local/net-snmp/bin/net-snmp-config

              /usr/local/net-snmp/ is not a default binary path, _and_ not a default place for net-snmp-config to be, so you need to define it in the configure rule.

              Comment

              Working...