Ad Widget

Collapse

[1.4] fail to compile with snmp on SuSe

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zogzog
    Junior Member
    • Jun 2007
    • 3

    #1

    [1.4] fail to compile with snmp on SuSe

    Hello,
    I don't manage to compile the new zabbix on SuSe 10.1 or openSuse 10.2
    On the same computer, it works easly with 1.1.7
    And without snmp it works well


    I have
    ~/zabbix-1.4 # rpm -qa |grep snmp
    net-snmp-devel-5.3.0.1-21
    net-snmp-5.3.0.1-21


    ~/zabbix-1.4 # ./configure --enable-server --enable-agent --with-net-snmp --with-mysql
    [...]
    checking for main in -lnetsnmp ... no
    configure: error: Not found NET-SNMP library
    ~/zabbix-1.4 #

    the corresponding section in config.log:
    configure:10159: checking for main in -lnetsnmp
    configure:10188: gcc -o conftest -g -O2 -I/usr/include/mysql -fmessage-length=0 -D_FORTIFY_SOURCE=2 -g -DPIC -fPIC -DUNDEF_HAVE_INITGROUPS -fno-strict-aliasing -I/usr/include/rpm -I. -I/usr/include -L/usr/lib64/mysql -L/usr/lib64 -L/usr/lib conftest.c -lnetsnmp -lm -lresolv -lnsl -lmysqlclient >&5
    /usr/lib64/libnetsnmp.so: undefined reference to `EVP_DigestInit'
    /usr/lib64/libnetsnmp.so: undefined reference to `EVP_DigestFinal'
    /usr/lib64/libnetsnmp.so: undefined reference to `EVP_DigestFinal_ex'
    /usr/lib64/libnetsnmp.so: undefined reference to `AES_set_encrypt_key'
    /usr/lib64/libnetsnmp.so: undefined reference to `EVP_md5'
    /usr/lib64/libnetsnmp.so: undefined reference to `HMAC'
    /usr/lib64/libnetsnmp.so: undefined reference to `EVP_MD_CTX_cleanup'
    /usr/lib64/libnetsnmp.so: undefined reference to `SSLeay'
    /usr/lib64/libnetsnmp.so: undefined reference to `EVP_sha1'
    /usr/lib64/libnetsnmp.so: undefined reference to `EVP_MD_CTX_init'
    /usr/lib64/libnetsnmp.so: undefined reference to `EVP_DigestUpdate'
    /usr/lib64/libnetsnmp.so: undefined reference to `RAND_bytes'
    /usr/lib64/libnetsnmp.so: undefined reference to `DES_cbc_encrypt'
    /usr/lib64/libnetsnmp.so: undefined reference to `DES_ncbc_encrypt'
    /usr/lib64/libnetsnmp.so: undefined reference to `DES_key_sched'
    /usr/lib64/libnetsnmp.so: undefined reference to `AES_cfb128_encrypt'
    collect2: ld returned 1 exit status
    configure:10194: $? = 1
    configure: failed program was:
    | /* confdefs.h. */

    I've found an other article in the forum but the change seems to be yet incorporated

    Any idea?

    Thanks
  • RohrbaGe
    Senior Member
    • Aug 2005
    • 167

    #2
    Zabbix 1.4 on Suse

    Hi,

    I had also the same problems on Suse 10.1.
    I have it running now, but I can“t tell you why.

    I have reinstalled several packages and sometimes it has worked.


    Regards

    Gerald

    Comment

    • zogzog
      Junior Member
      • Jun 2007
      • 3

      #3
      I don't believe in luck with computer
      and I've tried with 3 servers 10.1 10.1 and one 10.2

      If it's one time yes and another time no and with the tree tries, I'm very unlucky

      any other idea ?

      Comment

      • zogzog
        Junior Member
        • Jun 2007
        • 3

        #4
        in fact there is a bug in configure
        you have to install libcurl to compile with snmp
        strange isn't it ?

        Comment

        • Niels
          Senior Member
          • May 2007
          • 239

          #5
          Strange indeed -- I have curl and curl-devel installed and still get this error.

          Comment

          Working...