Ad Widget

Collapse

Can't compile pre-1.5 on Sles10.1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • themons
    Senior Member
    • Feb 2005
    • 110

    #1

    Can't compile pre-1.5 on Sles10.1

    Hello everybody,

    I would like to test the future version off zabbix but when, i try to compile it with snmp some errors appears. I search on the forum but none of the solution i found works for the moment i use it whithout snmp, but it's realy a needs because we plan to use the new version on a SLES enviroment and mostly to monitor cisco hardware, SNMP is required.

    when i try to compile:
    Code:
     ./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-libcurl
    Result:
    Code:
    checking for curl-config... /usr/bin/curl-config
    checking for the version of libcurl... 7.15.1
    checking for libcurl >= version 7.13.1... yes
    checking for main in -lcurl... yes
    checking whether libcurl is usable... yes
    checking for curl_free... yes
    checking for net-snmp-config... /usr/bin/net-snmp-config
    checking for main in -lnetsnmp ... no
    configure: error: Not found NET-SNMP library
    So i try:

    Code:
    # /usr/bin/net-snmp-config --libs
    -L/usr/lib -lnetsnmp -lcrypto -lm -L/usr/lib -lwrap
    Then i launch:
    Code:
     ./configure --enable-server --enable-agent --with-mysql --with-net-snmp=/usr/lib/ --with-libcurl
    Result:
    Code:
    checking for curl-config... /usr/bin/curl-config
    checking for the version of libcurl... 7.15.1
    checking for libcurl >= version 7.13.1... yes
    checking for main in -lcurl... yes
    checking whether libcurl is usable... yes
    checking for curl_free... yes
    checking for net-snmp-config... /usr/lib/
    configure: error: Invalid NET-SNMP directory - unable to find net-snmp-config


    When I launch In static:
    Code:
     ./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-libcurl --enable-static
    The result is :
    Code:
    checking for main in -lssl ... yes
    checking for main in -lcrypto ... yes
    checking for main in -ldl ... yes
    checking for main in -lz ... (cached) yes
    checking for main in -lcurl... yes
    checking whether libcurl is usable... yes
    checking for curl_free... yes
    checking for net-snmp-config... /usr/bin/net-snmp-config
    checking for main in -lcrypto ... (cached) yes
    checking for main in -lm ... (cached) yes
    checking for main in -lwrap ... no
    configure: error: Not found wrap library
    For information:
    Code:
    # rpm -qa |grep snmp
    net-snmp-5.3.0.1-25.15
    net-snmp-devel-5.3.0.1-25.15
    php5-snmp-5.1.2-29.35
    Environement
    Code:
    cat /etc/SuSE-release
    SUSE Linux Enterprise Server 10 (i586)
    VERSION = 10
    PATCHLEVEL = 1
    I need Help Thank to All

    P.S. : When I complie whitout SNMP it works
    Zabbix 1.8.3
    SLES 11 x64

    French Zabbix user
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    try adding lssl to CFLAGS, as in :
    export CFLAGS=-lssl
    Zabbix 3.0 Network Monitoring book

    Comment

    • themons
      Senior Member
      • Feb 2005
      • 110

      #3
      It works

      Originally posted by richlv
      try adding lssl to CFLAGS, as in :
      export CFLAGS=-lssl
      IT WORKS WITH THIS SOLUTION !!!

      But I don't know what I have done with
      Code:
      export CFLAGS=-lssl
      Can you explain it ?
      Zabbix 1.8.3
      SLES 11 x64

      French Zabbix user

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        that adds an additional parameter for gcc, in this case it informs about additional dependencies.
        why isn't this flag passed by default, i don't know

        as for why exactly this flag, if you took a look at config.log after a failed configure, you'd see more information, which would lead you to the solution.
        Zabbix 3.0 Network Monitoring book

        Comment

        • richlv
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Oct 2005
          • 3112

          #5
          just a quick note : it looks like some changes in current trunk require tcpd-devel to be installed now
          Zabbix 3.0 Network Monitoring book

          Comment

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

            #6
            Originally posted by richlv
            just a quick note : it looks like some changes in current trunk require tcpd-devel to be installed now
            Hmm... I am not aware of this! What is it required for?
            Alexei Vladishev
            Creator of Zabbix, Product manager
            New York | Tokyo | Riga
            My Twitter

            Comment

            • richlv
              Senior Member
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Oct 2005
              • 3112

              #7
              Originally posted by Alexei
              Hmm... I am not aware of this! What is it required for?
              sles 10 sp1, trunk revision 5665.
              configure fails with :
              checking for main in -lnetsnmp ... no
              configure: error: Not found NET-SNMP library

              both net-snmp and net-snmp-devel are installed.
              config.log reveals that it failed with "ld: cannot find -lwrap", which seems to be tcp wrappers dev stuff that on sles is included in tcpd-devel package.

              ps. that net-snmp message probably should be reworded a bit
              Zabbix 3.0 Network Monitoring book

              Comment

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

                #8
                It looks like a broken dependency of the net-snmp-devel package in the SLES.
                Alexei Vladishev
                Creator of Zabbix, Product manager
                New York | Tokyo | Riga
                My Twitter

                Comment

                • richlv
                  Senior Member
                  Zabbix Certified Trainer
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Oct 2005
                  • 3112

                  #9
                  hard to tell, i have seen over-depending problem enough to appreciate sane, minimal dependencies.
                  also, zabbix compiled with net-snmp support just fine until few weeks or days ago - without that package being installed.
                  Zabbix 3.0 Network Monitoring book

                  Comment

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

                    #10
                    Please, give me output of:

                    net-snmp-config --libs
                    Alexei Vladishev
                    Creator of Zabbix, Product manager
                    New York | Tokyo | Riga
                    My Twitter

                    Comment

                    • richlv
                      Senior Member
                      Zabbix Certified Trainer
                      Zabbix Certified SpecialistZabbix Certified Professional
                      • Oct 2005
                      • 3112

                      #11
                      -L/usr/lib -lnetsnmp -lcrypto -lm -L/usr/lib -lwrap

                      so that -lwrap there implies a dependency on wrappers ?
                      Zabbix 3.0 Network Monitoring book

                      Comment

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

                        #12
                        Originally posted by richlv
                        -L/usr/lib -lnetsnmp -lcrypto -lm -L/usr/lib -lwrap

                        so that -lwrap there implies a dependency on wrappers ?
                        Exactly! ZABBIX assumes that all the libs are already available.
                        Alexei Vladishev
                        Creator of Zabbix, Product manager
                        New York | Tokyo | Riga
                        My Twitter

                        Comment

                        • kc5kse
                          Member
                          • Feb 2008
                          • 73

                          #13
                          Yes, tcpd-devl is needed

                          I can confirm; tcpd-devel rpm needs to be installed for zabbix configure to work properly. I

                          Comment

                          • tazzu
                            Junior Member
                            • Nov 2006
                            • 26

                            #14
                            Confirmed !

                            Thx kc5kse ! After installing tcpd-devel the net-snmp error disappiers... Dam ! That was hard to find (this post)

                            Comment

                            Working...