Ad Widget

Collapse

SuSE 9.3 Compilation Error / netsnmp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dennis
    Junior Member
    • Jul 2005
    • 1

    #1

    SuSE 9.3 Compilation Error / netsnmp

    I get an error during make:

    Making all in src/zabbix_sucker
    make[1]: Entering directory `/usr/local/src/zabbix-1.0/src/zabbix_sucker'
    gcc -o ../../bin/zabbix_suckerd -static -g -O2 -I../../include -I/usr/include/mysql -I/usr/include zabbix_sucker.c ../../include/db.c ../../include/functions.c ../../include/expression.c ../../include/cfg.c ../../include/log.c ../../include/security.c ../../include/pid.c ../../include/snprintf.c ../zabbix_agent/sysinfo.c alerter.c pinger.c housekeeper.c -Wall -L/usr/lib/mysql -lmysqlclient -lm -L/usr/lib -lnetsnmp -lcrypto
    /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: cannot find -lnetsnmp
    collect2: ld returned 1 exit status
    make[1]: *** [all] Error 1
    make[1]: Leaving directory `/usr/local/src/zabbix-1.0/src/zabbix_sucker'
    make: *** [all] Error 1
    The following Packages are installed:

    net-snmp-5.1.2-3
    net-snmp-devel-5.1.2-3.1
  • mconigliaro
    Senior Member
    • Jun 2005
    • 116

    #2
    are you trying to compile static binaries? im pretty sure i had the same problem when compiling static binaries on sles9, but i never found the fix...

    Comment

    • riegersteve
      Member
      • Oct 2004
      • 68

      #3
      is you root

      Comment

      • mconigliaro
        Senior Member
        • Jun 2005
        • 116

        #4
        i just tried again on alpha12, and im having the same problem. someone reported that installing 'libsnmp5-dev' was the fix, but that package doesnt exist on sles9.

        as far as i can tell, this only happens when using --enable-static.

        Comment

        • primos
          Member
          • Jul 2005
          • 61

          #5
          snmp on sles 9

          I lik ezabbix very much and tried to help somebody else, but almost everybody are more experienced then I , but I run SLES 9, migrated from SLES 8,I can be of some help to you. Zabbix works on both of them , just on sles 8 I was only able to compile snmp UCD. Just I had to migrate the DB because in 4.0x I could not make Innodb, SLES 9 binaries are available at mysql.com.

          Static or no static, both works for me, but sometimes bad things happen(strange erros), so work with fresh extracted files and there shouldn't be a problem!


          #rpm -qa | grep snmp

          net-snmp-devel-5.1-80.11
          php4-snmp-4.3.4-43.8
          evlog-snmp-1.6.0-35.20
          net-snmp-5.1-80.1
          Last edited by primos; 16-08-2005, 10:03.

          Comment

          Working...