Ad Widget

Collapse

1.4 configure --with-net-snmp failed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RohrbaGe
    Senior Member
    • Aug 2005
    • 167

    #1

    1.4 configure --with-net-snmp failed

    Hi,

    on a suse 9.2 and 10.1 machine I have problems to get the net-snmp
    running.
    On both machines the compiling of older zabbix version worsk fine.
    net-snmp + net-snmp devel are installed.

    I read in the forum that other guys had the same problems, but I do not understand the solutions. The seems not to work for me.

    The message is:

    I´m quite sure that this is only a lib-path problem, but I did
    not found the place to change it.
    The net-snmp-config file is in the right place.

    checking for net-snmp-config... /usr/bin/net-snmp-config
    checking for main in -lnetsnmp ... no
    configure: error: Not found NET-SNMP library

    In which files I have to change the path for the libs.

    Regards
    Gerald
  • gold_21
    Junior Member
    • May 2007
    • 7

    #2
    same issue

    I am using Ubuntu and same issue!

    Comment

    • Wolfgang
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified Specialist
      • Apr 2005
      • 116

      #3
      Originally posted by RohrbaGe
      Hi,

      ...
      checking for main in -lnetsnmp ... no
      ...
      You need libnetsnmp installed (libnetsnmp.so).
      So you have to figure out which package on your distro provides these file and install that package.

      Regards

      Wolfgang
      http://www.intellitrend.de
      Specialised in monitoring large environments and Zabbix API programming.

      Comment

      • treyh
        Member
        • May 2007
        • 64

        #4
        library link

        Hey,

        The libnetsnmp.so may be on the system but not in the right spot.

        I ran into a similar issue when installing nfsen on freebsd 6.2

        I resolved it by doing a search for all *.so's and when I found where most of them were stored, I created a symlink to the .so file and bam, worked like a champ.

        Example:
        Most .so's in freebsd are located under /usr/lib
        cd /usr/lib
        ln -s /usr/apps/application/xxxxx/library_file.so library_file.so

        Comment

        • gold_21
          Junior Member
          • May 2007
          • 7

          #5
          Link library

          Hi,

          Thanks treyh and wolfgang.

          I found two version of libnetsnmp.so. one under /usr/local/lib and the other one under /usr/lib.

          I linked libnetsnmp.so to /usr/lib/libnetsnmp.so and configure file was created.


          My Question, Should I link all libnetsnmptrap.so also?


          gold_21

          Comment

          • RohrbaGe
            Senior Member
            • Aug 2005
            • 167

            #6
            Hi guys,

            I have tried you solutions, I think they are pointing to the right direction but still
            are not soling the problem really.
            I ´m quite sure that there is only a lib path problem.
            I have now the libnetsnmp stuff in /usr/lib and in /usr/local/lib, and still
            the configure does not worked.


            Yesterday I allready foudn a thread in this forum, that seems to have the solution.
            But I do not understand that...







            Can pls. someone with more knowledge look at the thread I found and give a shot comment?

            Thats what in my eyes makes same sense, but where I have to change that.
            ... _libnetsnmp_libdir="`$_libnetsnmp_config --libdir`"
            ...ya i find the above sentence in configure and change to --libs

            The other hint I found is about libcurl
            Curl and devel is installed on my machine, but I got an error messaging about curl if I run.
            ./configure --with-myql --with-netsnmp --enable-server --with-libcurl

            If I run without the curl option I get the netsnmp error.

            Regards
            Gerald

            Comment

            • treyh
              Member
              • May 2007
              • 64

              #7
              explations

              I'll explain this in a very basic way:

              1. http://www.zabbix.com/forum/showthr...&highlight=SNMP
              This person modified the configure file, he changed:
              =========
              _libnetsnmp_libdir="`$_libnetsnmp_config --libdir`"
              =========
              to
              =========
              _libnetsnmp_libdir="`$_libnetsnmp_config --libs`"

              2.http://www.zabbix.com/forum/showthre...snmp+configure
              Verify that libcurl is installed

              3.http://www.zabbix.com/forum/showthre...snmp+configure
              this person got zabbix to install by specifying the destination to libcurl
              --with-libcurl=/usr/local

              When I installed from source, my configure command looked like

              ./configure --enable-server --enable-agentd --enable-mysql=/var/apps/mysql --enable-netsnmp --enable-libcurl

              Hope this helps

              Comment

              • bee
                Senior Member
                • Jun 2007
                • 133

                #8
                Hi,
                Seem it not works for me
                Im trying to configure 1.4 on FreeBSD 6.2-STABLE box. Most of additional packages such net-snmp and mysql done via ports mechanism.

                I've create symlink to /usr/lib for both libnetsnmp.so and libnetsnmp.15 and still got the error.
                After do some reasearch, i found the following line on my config.log

                configure:9992: checking for net-snmp-config
                configure:10023: result: /usr/local/bin/net-snmp-config
                configure:10159: checking for main in -lnetsnmp
                configure:10188: gcc -o conftest -g -O2 -I/usr/local/include/mysql -fno-strict-aliasing -pipe -I/usr/local/lib/perl5/5.8.8/mach/CORE -I. -I/usr/local/include -L/usr/local/lib/mysql -L/usr/local/lib conftest.c -lnetsnmp -lkvm -lm -lmysqlclient >&5
                /usr/local/lib/libnetsnmp.so: undefined reference to `EVP_DigestInit'
                /usr/local/lib/libnetsnmp.so: undefined reference to `EVP_DigestFinal'
                /usr/local/lib/libnetsnmp.so: undefined reference to `EVP_DigestFinal_ex'
                /usr/local/lib/libnetsnmp.so: undefined reference to `AES_set_encrypt_key'
                /usr/local/lib/libnetsnmp.so: undefined reference to `EVP_md5'
                /usr/local/lib/libnetsnmp.so: undefined reference to `HMAC'
                /usr/local/lib/libnetsnmp.so: undefined reference to `EVP_MD_CTX_cleanup'
                /usr/local/lib/libnetsnmp.so: undefined reference to `SSLeay'
                /usr/local/lib/libnetsnmp.so: undefined reference to `EVP_sha1'
                /usr/local/lib/libnetsnmp.so: undefined reference to `EVP_MD_CTX_init'
                /usr/local/lib/libnetsnmp.so: undefined reference to `EVP_DigestUpdate'
                /usr/local/lib/libnetsnmp.so: undefined reference to `RAND_bytes'
                /usr/local/lib/libnetsnmp.so: undefined reference to `DES_cbc_encrypt'
                /usr/local/lib/libnetsnmp.so: undefined reference to `DES_ncbc_encrypt'
                /usr/local/lib/libnetsnmp.so: undefined reference to `DES_key_sched'
                /usr/local/lib/libnetsnmp.so: undefined reference to `AES_cfb128_encrypt'
                configure:10194: $? = 1
                configure: failed program was:


                Not sure if above lof represent the real problem, but any clue or comment will very welcome

                Thanks,
                Dede Nurmansyah

                Comment

                • zombiehunter
                  Member
                  • Jun 2007
                  • 31

                  #9
                  check out this thread- they got me working.

                  Comment

                  • treyh
                    Member
                    • May 2007
                    • 64

                    #10
                    configure

                    Try specifiying the path to mysql and net-snmp

                    ./configure --enable-server --with-net-snmp=/path/to/net-snmp --with-mysql=/path/to/mysql --with-libcurl

                    Comment

                    • bee
                      Senior Member
                      • Jun 2007
                      • 133

                      #11
                      at the desperate stage

                      Hi
                      thanks for your clue, but i still ain't get my luck. It still not working for me and still got the same error message and i'm bit desperate now.
                      I believe, the problem occurs when configure with -net-snmp parameter and have issue with crypto library. But i'm sure if my cyrpto libbrary already installed. I was did reinstall my net-snmp-5.3.1 and reconfigure with --with-openssl parameter.Also not work and get same error message. I have upgrade with the latest net-snmp 5.4 also generate same error message.
                      At the same time, my buddy do installtion of zabbix using ucd-snmp without any error at all.
                      I'm confuse.

                      Comment

                      • dima_sml
                        Junior Member
                        • Jul 2007
                        • 3

                        #12
                        upgrade to net-snmp 5.4.1

                        I've had the same problem with zabbix-1.4.2 & net-snmp-5.3.1,
                        but zabbix-1.4.1 configure ok! with net-snmp-5.3.1.
                        solution for me: upgrade to net-snmp 5.4.1.
                        ONLY after this upgrade i has configured succesfull zabbix-1.4.2 & zabbix-1.5
                        Last edited by dima_sml; 31-08-2007, 23:51.

                        Comment

                        • Alexei
                          Founder, CEO
                          Zabbix Certified Trainer
                          Zabbix Certified SpecialistZabbix Certified Professional
                          • Sep 2004
                          • 5654

                          #13
                          I order to start thinking about these problems I need more detailed information:

                          - OS, version
                          - list of all net-snmp packages installed
                          - full command line when running ./configure
                          - error message
                          Alexei Vladishev
                          Creator of Zabbix, Product manager
                          New York | Tokyo | Riga
                          My Twitter

                          Comment

                          • dima_sml
                            Junior Member
                            • Jul 2007
                            • 3

                            #14
                            Originally posted by Alexei
                            I order to start thinking about these problems I need more detailed information:

                            - OS, version
                            - list of all net-snmp packages installed
                            - full command line when running ./configure
                            - error message
                            -slackware11
                            bash-3.1# uname -a
                            Linux hostname 2.4.33.3 #1 Fri Sep 1 01:48:52 CDT 2006 i686 pentium4 i386 GNU/Linux

                            -net-snmp installed from sources: net-snmp-5.3.0.1.tar.gz
                            bash-3.1# net-snmp-config --version --libs --libdir --configure-options
                            5.3.0.1
                            -L/usr/lib -lnetsnmp -lcrypto -lm
                            -L/usr/lib
                            '--prefix=/usr'

                            problem to configure zabbix >=1.4.2 (1.4.1 was configured successfully):
                            bash-3.1#./configure --prefix=/usr --enable-server --enable-agent --with-mysql --with-net-snmp
                            ...
                            checking for net-snmp-config... /usr/bin/net-snmp-config
                            checking for main in -lnetsnmp ... no
                            configure: error: Not found NET-SNMP library
                            ...

                            -error message, contained in config.log:
                            ...
                            configure:10361: checking for net-snmp-config
                            configure:10379: found /usr/bin/net-snmp-config
                            configure:10392: result: /usr/bin/net-snmp-config
                            configure:10528: checking for main in -lnetsnmp
                            configure:10557: gcc -o conftest -g -O2 -I/usr/include/mysql -march=i486 -mtune=i686 -I/usr/include/rpm -I. -I/usr/include -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
                            configure:10563: $? = 1
                            configure: failed program was:
                            | /* confdefs.h. */
                            ...
                            configure:10597: result: no
                            configure:10605: error: Not found NET-SNMP library
                            ...

                            when i install net-snmp-5.4.1 from sources: net-snmp-5.4.1.tar.gz
                            problem with configure zabbix >=1.4.2 is dissapear !
                            (all net-snmp-sources from net-snmp.sourceforge.net)
                            ... may be write the version of the net-snmp program in zabbix manual -
                            software requirements ?
                            Last edited by dima_sml; 01-09-2007, 17:15.

                            Comment

                            • bing
                              Junior Member
                              • Jun 2005
                              • 17

                              #15
                              64bit path error

                              I had the issue on centos 5 - 64 bit. Got around it by using the flag

                              --enable-static

                              So it finds the path. Looks like a patch is in the works

                              Comment

                              Working...