Ad Widget

Collapse

configure fails on OpenBSD 4.1: net-snmp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rickauer
    Junior Member
    • May 2007
    • 4

    #1

    configure fails on OpenBSD 4.1: net-snmp

    Code:
    # ./configure --enable-server --enable-agent --with-mysql --with-net-snmp 
    
    ...
    
    checking for net-snmp-config... /usr/local/bin/net-snmp-config
    checking for main in -lnetsnmp ... no
    configure: error: Not found NET-SNMP library
    I've read about net-snmp related problems here but none of the suggested fixes seem to work for OpenBSD. This is 1.3.7.
    Code:
     # grep snmp config.log
      $ ./configure --enable-server --enable-agent --with-mysql --with-net-snmp --enable-static
    configure:9919: checking for net-snmp-config
    configure:9937: found /usr/local/bin/net-snmp-config
    configure:9949: result: /usr/local/bin/net-snmp-config
    configure:10003: checking for main in -lnetsnmp
    configure:10032: gcc -o conftest -g -O2   -I/usr/local/include/mysql -pipe     -I. -I/usr/local/include   -static    -L/usr/local/lib/mysql -L/usr/lib      conftest.c -lnetsnmp   -lkvm    -lmysqlclient  -lz -lm -lssl -lcrypto    -lcrypto -lm -lcrypto >&5
    /usr/bin/ld: cannot find -lnetsnmp
    ac_cv_lib_netsnmp__main=no
    ac_cv_path__libnetsnmp_config=/usr/local/bin/net-snmp-config
    _libnetsnmp_config='/usr/local/bin/net-snmp-config'
    Any help is appreciated.

    Cheers,
    Stephan
  • nickfixit
    Junior Member
    • Jan 2005
    • 6

    #2
    Same problem

    I'm trying to install 1.3.7 onto a Solaris 10 sparc box.

    Same problem

    Comment

    • rickauer
      Junior Member
      • May 2007
      • 4

      #3
      curl fixes it

      By coincidence I've just discovered that the "missing" -lnetsnmp problem is fixable (at least on OpenBSD) by installing 'curl' first.... (applies to 1.3.8). Maybe some zabbix developers could look into the configure script to fix that?

      Thanks,
      Stephan

      Comment

      • Maxwell2609
        Junior Member
        • Aug 2007
        • 2

        #4
        OpenBSD 4.1 / ZAbbix 1.4.2: NET-SNMP problem

        hi all,

        I'm facing the same problem with the net-snmp libraries running configure with:
        Code:
        ./configure --enable-server --with-mysql --with-net-snmp=/usr/local/bin/net-snmp-config
        Does anybody knows how to bypass this issue with configure?

        thanks in advance for your help.

        Maxwell.

        Comment

        • dqueue
          Junior Member
          • Sep 2007
          • 1

          #5
          workaround for configure error under OpenBSD

          Having just upgraded one of my OpenBSD boxes, I set out to reinstall an updated version Zabbix. I installed the latest version of OpenBSD, v4.1 on i386 architecture. I chose Zabbix 1.4.2, because it was the latest available production release. Of course, I ran into the problem with configure failing on net-snmp.

          My configure statement:
          Code:
          ./configure --enable-server --enable-agent --with-mysql --with-libcurl --with-net-snmp
          Reviewing config.log, I determined the net-snmp libs were found; there was an SSL problem that caused conftest to fail.

          I edited configure, navigated to line 10534, which read:
          Code:
          LIBS="-lnetsnmp  $LIBS"
          To this, I inserted two other libraries, ssl and crypto. After this, configure succeeded, as did make install.

          The changed line in configure read:
          Code:
          LIBS="-lnetsnmp -lssl -lcrypto $LIBS"
          Worked for me...

          Comment

          • FabianGM
            Junior Member
            • Sep 2012
            • 2

            #6
            Originally posted by dqueue
            Of course, I ran into the problem with configure failing on net-snmp.

            My configure statement:
            Code:
            ./configure --enable-server --enable-agent --with-mysql --with-libcurl --with-net-snmp
            Reviewing config.log, I determined the net-snmp libs were found; there was an SSL problem that caused conftest to fail.

            I edited configure, navigated to line 10534, which read:
            Code:
            LIBS="-lnetsnmp  $LIBS"
            To this, I inserted two other libraries, ssl and crypto. After this, configure succeeded, as did make install.

            The changed line in configure read:
            Code:
            LIBS="-lnetsnmp -lssl -lcrypto $LIBS"
            Worked for me...
            Hi
            Could you be more specific, what file did you edit?. I can not find the line that you mention
            thanks

            Comment

            • FabianGM
              Junior Member
              • Sep 2012
              • 2

              #7
              Solution for me

              I fixed the problem in this way:
              I installed all packages of net-snmp-*
              Code:
              yum install net-snmp-*
              All packages are no more than 6MB.
              Try this solution, I hope it fixed you problem


              My Zabbix version is:
              Zabbix 2.0.0 with MySQL

              Comment

              • ericgearhart
                Senior Member
                • Jan 2009
                • 115

                #8
                Fabian - this is a 5 year old thread, and he's on OpenBSD. OpenBSD doesn't have yum

                Comment

                Working...