Ad Widget

Collapse

Problem to make it on a SuSE8.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • porrier
    Junior Member
    • Feb 2006
    • 4

    #1

    Problem to make it on a SuSE8.2

    Hello!

    I try to compile zabbix-1.1beta7 on a SuSE8.2. I already modiifed the Makefile.in and
    added @SNMP_LFLAGS@ to includedir = @includedir@ on line 170 in src/zabbix_server.
    After a ./configure --enable-server --enable-agent --with-mysql --with-ucd-snmp=/usr I get this error:

    ...
    Making all in poller
    make[3]: Entering directory `/home/andreas/zabbix-1.1beta7/src/zabbix_server/poller'
    make[4]: Entering directory `/home/andreas/zabbix-1.1beta7/src/zabbix_server/poller'
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -I/usr/include/mysql -I/usr/include -g -O2 -MT checks_agent.o -MD -MP -MF ".deps/checks_agent.Tpo" -c -o checks_agent.o checks_agent.c; \
    then mv -f ".deps/checks_agent.Tpo" ".deps/checks_agent.Po"; else rm -f ".deps/checks_agent.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -I/usr/include/mysql -I/usr/include -g -O2 -MT checks_internal.o -MD -MP -MF ".deps/checks_internal.Tpo" -c -o checks_internal.o checks_internal.c; \
    then mv -f ".deps/checks_internal.Tpo" ".deps/checks_internal.Po"; else rm -f ".deps/checks_internal.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -I/usr/include/mysql -I/usr/include -g -O2 -MT checks_simple.o -MD -MP -MF ".deps/checks_simple.Tpo" -c -o checks_simple.o checks_simple.c; \
    then mv -f ".deps/checks_simple.Tpo" ".deps/checks_simple.Po"; else rm -f ".deps/checks_simple.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -I/usr/include/mysql -I/usr/include -g -O2 -MT checks_snmp.o -MD -MP -MF ".deps/checks_snmp.Tpo" -c -o checks_snmp.o checks_snmp.c; \
    then mv -f ".deps/checks_snmp.Tpo" ".deps/checks_snmp.Po"; else rm -f ".deps/checks_snmp.Tpo"; exit 1; fi
    checks_snmp.c: In function `get_value_snmp':
    checks_snmp.c:126: error: `USM_AUTH_PROTO_MD5_LEN' undeclared (first use in this function)
    checks_snmp.c:126: error: (Each undeclared identifier is reported only once
    checks_snmp.c:126: error: for each function it appears in.)
    checks_snmp.c:168: error: `USM_PRIV_PROTO_DES_LEN' undeclared (first use in this function)
    checks_snmp.c:272: warning: left shift count >= width of type
    make[4]: *** [checks_snmp.o] Fehler 1
    make[4]: Leaving directory `/home/andreas/zabbix-1.1beta7/src/zabbix_server/poller'
    make[3]: *** [all-recursive] Fehler 1
    make[3]: Leaving directory `/home/andreas/zabbix-1.1beta7/src/zabbix_server/poller'
    make[2]: *** [all-recursive] Fehler 1
    make[2]: Leaving directory `/home/andreas/zabbix-1.1beta7/src/zabbix_server'
    make[1]: *** [all-recursive] Fehler 1
    make[1]: Leaving directory `/home/andreas/zabbix-1.1beta7/src'
    make: *** [all-recursive] Fehler 1

    Any suggestions please?

    Andreas
  • porrier
    Junior Member
    • Feb 2006
    • 4

    #2
    Hi!

    Originally posted by porrier

    I try to compile zabbix-1.1beta7 on a SuSE8.2. I already modiifed the Makefile.in and
    added @SNMP_LFLAGS@ to includedir = @includedir@ on line 170 in src/zabbix_server.
    After a ./configure --enable-server --enable-agent --with-mysql --with-ucd-snmp=/usr I get this error:
    ....
    I compiled and installed net-snmp and the problem is gone. Installed zabbix-1.1beta7 without
    problems so far.

    Andreas

    Comment

    • porrier
      Junior Member
      • Feb 2006
      • 4

      #3
      Hello!

      Originally posted by porrier

      I compiled and installed net-snmp and the problem is gone. Installed zabbix-1.1beta7 without
      problems so far.
      Now I have another problem starting the zabbix_server. I get:
      ./zabbix_server
      ./zabbix_server: error while loading shared libraries: libnetsnmp.so.8: cannot open shared object file: No such file or directory

      The values for snmp in the Makefile look correct.
      SNMP_INCLUDE = -I/usr/local/include
      SNMP_LFLAGS = -L/usr/local/lib
      SNMP_LIBS = -lnetsnmp -lcrypto

      This are the places where net-snmp is installed.

      Don't know what to do.

      Regards

      Andreas

      Comment

      • porrier
        Junior Member
        • Feb 2006
        • 4

        #4
        Originally posted by porrier
        Now I have another problem starting the zabbix_server. I get:
        ./zabbix_server
        ./zabbix_server: error while loading shared libraries: libnetsnmp.so.8: cannot open shared object file: No such file or directory

        The values for snmp in the Makefile look correct.
        SNMP_INCLUDE = -I/usr/local/include
        SNMP_LFLAGS = -L/usr/local/lib
        SNMP_LIBS = -lnetsnmp -lcrypto

        This are the places where net-snmp is installed.
        Believe it or not since I restartet the system this morning, zabbix_server finds the libnetsnmp. Yesterday a ldd on zabbix_server said this library could not be found.

        Andreas

        Comment

        • shalako
          Member
          • Apr 2006
          • 30

          #5
          libnetsnmp.so

          I'm having the same problem

          ./zabbix_suckerd: error while loading shared libraries: libnetsnmp.so.8: cannot open shared object file: No such file or directory

          net-snmp is installed in the default location and this lib is in fact in /usr/local/lib/as a link to libnetsnmp.so.8.0.0

          I've tried recompiling/installing net-snmp with and without openssl (same zabbix behavior). I'm about to try compiling without zlib, tho I'm not expecting much.

          Any assistance appreciated.

          Comment

          • krusty
            Senior Member
            • Oct 2005
            • 222

            #6
            Have you installed the snmp-devel packet???

            Comment

            • shalako
              Member
              • Apr 2006
              • 30

              #7
              The following are all installed:

              /usr/local/lib/libnetsnmp.a
              /usr/local/lib/libnetsnmp.so
              /usr/local/lib/libnetsnmp.la
              Last edited by shalako; 11-04-2006, 00:10.

              Comment

              Working...