Ad Widget

Collapse

Problem with copiling Zabbix 1.4.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sushilk
    Junior Member
    • Feb 2007
    • 26

    #1

    Problem with copiling Zabbix 1.4.2

    checking for main in -lnetsnmp ... no
    configure: error: Not found NET-SNMP library

    [root@support2 zabbix-1.4.2]# rpm -qa | grep net-snmp
    net-snmp-5.1.2-11.EL4.6
    net-snmp-utils-5.1.2-11.EL4.6
    net-snmp-devel-5.1.2-11.EL4.6
    net-snmp-libs-5.1.2-11.EL4.6

    [root@support2 zabbix-1.4.2]# rpm -qa | grep mysql
    mysql-4.1.12-3.RHEL4.1
    mysql-devel-4.1.12-3.RHEL4.1
    libdbi-dbd-mysql-0.6.5-10.RHEL4.1
    mysql-bench-4.1.12-3.RHEL4.1
    mysqlclient10-3.23.58-4.RHEL4.1
    mysql-server-4.1.12-3.RHEL4.1
    php-mysql-4.3.9-3.8

    [root@support2 zabbix-1.4.2]# ll /usr/lib/libnetsnmp.so.5
    lrwxrwxrwx 1 root root 19 Oct 20 18:35 /usr/lib/libnetsnmp.so.5 -> libnetsnmp.so.5.1.2

    [root@support2 ~]# cd /usr/lib
    [root@support2 lib]# ls libnetsnmp.so* -l
    lrwxrwxrwx 1 root root 19 Oct 20 18:52 libnetsnmp.so -> libnetsnmp.so.5.1.2
    lrwxrwxrwx 1 root root 19 Oct 20 18:35 libnetsnmp.so.5 -> libnetsnmp.so.5.1.2
    -rw-r--r-- 1 root root 516712 Sep 7 2005 libnetsnmp.so.5.1.2


    Please advice as soon as possible.
    Waiting 4 the reply to proceed further
    thanks in adv.
    Sushil
    Last edited by sushilk; 20-10-2007, 18:10.
  • sushilk
    Junior Member
    • Feb 2007
    • 26

    #2
    This is what config.log shows

    configure:10557: gcc -o conftest -g -O2 -I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -I/usr/include/rpm -I/usr/include/rpm -I. -I/usr/include/net-snmp -L/usr/lib conftest.c -lnetsnmp -lm -lresolv >&5
    /usr/lib/libnetsnmp.so: undefined reference to `EVP_DigestInit'
    /usr/lib/libnetsnmp.so: undefined reference to `EVP_DigestFinal'
    /usr/lib/libnetsnmp.so: undefined reference to `EVP_DigestFinal_ex'
    /usr/lib/libnetsnmp.so: undefined reference to `AES_set_encrypt_key'
    /usr/lib/libnetsnmp.so: undefined reference to `EVP_md5'
    /usr/lib/libnetsnmp.so: undefined reference to `HMAC'
    /usr/lib/libnetsnmp.so: undefined reference to `EVP_MD_CTX_cleanup'
    /usr/lib/libnetsnmp.so: undefined reference to `SSLeay'
    /usr/lib/libnetsnmp.so: undefined reference to `EVP_sha1'
    /usr/lib/libnetsnmp.so: undefined reference to `EVP_MD_CTX_init'
    /usr/lib/libnetsnmp.so: undefined reference to `EVP_DigestUpdate'
    /usr/lib/libnetsnmp.so: undefined reference to `RAND_bytes'
    /usr/lib/libnetsnmp.so: undefined reference to `DES_cbc_encrypt'
    /usr/lib/libnetsnmp.so: undefined reference to `DES_ncbc_encrypt'
    /usr/lib/libnetsnmp.so: undefined reference to `DES_key_sched'
    /usr/lib/libnetsnmp.so: undefined reference to `AES_cfb128_encrypt'
    collect2: ld returned 1 exit status

    Comment

    • SharkCZ
      Member
      • Apr 2006
      • 39

      #3
      see http://www.zabbix.com/forum/showthre...?t=7309&page=2

      Did you try the "Search" function of the forum?

      Comment

      • sushilk
        Junior Member
        • Feb 2007
        • 26

        #4
        SharkCZ

        ;;
        esac
        done

        if test "x$enable_static" = "xyes"; then
        for i in $_full_libnetsnmp_libs; do


        The above line are already there in configure script.
        Thanks
        Sush

        Comment

        • sushilk
          Junior Member
          • Feb 2007
          • 26

          #5
          Thanks all

          Got it
          Remedy for configure: error: Not found NET-SNMP library

          Please see this page http://www.zabbix.com/forum/showthread.php?t=7309
          go to 9229 line of configure file and change

          -LIBS="-lnetsnmp $LIBS"
          +LIBS="-lnetsnmp -lcurl $LIBS"

          I am using 1.4.2

          Cheers,
          Sush

          Comment

          • Niels
            Senior Member
            • May 2007
            • 239

            #6
            Still no luck for me on Suse 10, even after editing configure. This is with current svn branch 1.4.

            Comment

            • stefanw
              Junior Member
              • Aug 2007
              • 7

              #7
              I have 1.4.2 running on Suse 10 SP1. All I had to do was to edit the config file.

              Comment

              Working...