Ad Widget

Collapse

Seems I am doing something stupid while installing this great tool.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rajeevtomar
    Member
    • Mar 2005
    • 50

    #1

    Seems I am doing something stupid while installing this great tool.

    Seems I am doing something stupid while installing this great tool.

    Error is pasted below :

    postgres@zabbix-test1:~/zabbix-1.0> make
    Making all in src/zabbix_agent
    make[1]: Entering directory `/var/lib/pgsql/zabbix-1.0/src/zabbix_agent'
    gcc -o ../../bin/zabbix_agent -static -g -O2 -I../../include zabbix_agent.c sysinfo.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/snprintf.c -Wall
    /tmp/cc9f6YHD.o(.text+0xc4): In function `check_ssh':
    /var/lib/pgsql/zabbix-1.0/src/zabbix_agent/sysinfo.c:2383: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    gcc -o ../../bin/zabbix_agentd -static -g -O2 -I../../include zabbix_agentd.c sysinfo.c stats.c interfaces.c diskdevices.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/pid.c ../../include/snprintf.c -Wall
    /tmp/cc2tuYJZ.o(.text+0x444): In function `daemon_init':
    /var/lib/pgsql/zabbix-1.0/src/zabbix_agent/zabbix_agentd.c:140: warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /tmp/ccLu9gfA.o(.text+0xc4): In function `check_ssh':
    /var/lib/pgsql/zabbix-1.0/src/zabbix_agent/sysinfo.c:2383: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    make[1]: Leaving directory `/var/lib/pgsql/zabbix-1.0/src/zabbix_agent'
    Making all in src/zabbix_sender
    make[1]: Entering directory `/var/lib/pgsql/zabbix-1.0/src/zabbix_sender'
    gcc -o ../../bin/zabbix_sender -static -g -O2 -I../../include ../../include/snprintf.c zabbix_sender.c
    /tmp/cc44x4E8.o(.text+0x1d): In function `send_value':
    /var/lib/pgsql/zabbix-1.0/src/zabbix_sender/zabbix_sender.c:70: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    make[1]: Leaving directory `/var/lib/pgsql/zabbix-1.0/src/zabbix_sender'
    Making all in src/zabbix_sucker
    make[1]: Entering directory `/var/lib/pgsql/zabbix-1.0/src/zabbix_sucker'
    gcc -o ../../bin/zabbix_suckerd -static -g -O2 -I../../include -I/usr/include/pgsql -I/usr/include zabbix_sucker.c ../../include/db.c ../../include/functions.c ../../include/expression.c ../../include/cfg.c ../../include/log.c ../../include/security.c ../../include/pid.c ../../include/snprintf.c ../zabbix_agent/sysinfo.c alerter.c pinger.c housekeeper.c -Wall -lcrypt -L/usr/lib -lpq -L/usr/lib -lnetsnmp -lcrypto
    /usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../../i586-suse-linux/bin/ld: cannot find -lnetsnmp
    collect2: ld returned 1 exit status
    make[1]: *** [all] Error 1
    make[1]: Leaving directory `/var/lib/pgsql/zabbix-1.0/src/zabbix_sucker'
    make: *** [all] Error 1


    Please let me know, if anybody has any clue....???

    Thanks, Rajeev
  • rajeevtomar
    Member
    • Mar 2005
    • 50

    #2
    My Configure option is :

    ./configure --with-pgsql=/usr --enable-static --with-net-snmp=/usr

    Comment

    • rajeevtomar
      Member
      • Mar 2005
      • 50

      #3
      When I removed --enable-static it all worked fine. Please let me know what I will have to do make it compile with --enable-static

      Response/hint will be highly appreciated.

      Thanks, Rajeev

      Comment

      • rajeevtomar
        Member
        • Mar 2005
        • 50

        #4
        Also, my OS Version SuSe 9.1.

        -Rajeev

        Comment

        • rajeevtomar
          Member
          • Mar 2005
          • 50

          #5
          Alexei

          Alexei,

          Please help me on this ...I am closing to deadline. I will have to show a working model at the earlieast.

          Thanking in anticipation.

          Regards,
          Rajeev

          Comment

          • rajeevtomar
            Member
            • Mar 2005
            • 50

            #6
            Can any one send me a solution for the above mentioned problem...???

            I want to compile with option "--enable-static" on SUSE 9.1 with snmp support. But when doing so, I am getting above mentioned errors.

            When I am removing the option "--enable-static"...it's all working fine.

            Thanking in anticipation.

            Rajeev

            Comment

            • rajeevtomar
              Member
              • Mar 2005
              • 50

              #7
              urgent

              Can somebody will tell me the solution of the above mentioned problem...>?? I will be highly thankful to him/her.

              I am stuck at this point.

              Regards, Rajeev

              Comment

              • mconigliaro
                Senior Member
                • Jun 2005
                • 116

                #8
                im getting this same error on suse pro 9.3

                Comment

                • welshpjw
                  Member
                  • Mar 2005
                  • 50

                  #9
                  Sorry, I don't run SUSE, but I could swear I previously read some reports of the type of issue you are having. I can't currently find the google incantation to get you the answer. I think it had something to do with SSL or LDAP, but am not sure.

                  Comment

                  • welshpjw
                    Member
                    • Mar 2005
                    • 50

                    #10
                    A couple of post talk about openssl-static-devel package. Hope this helps.

                    Comment

                    • mconigliaro
                      Senior Member
                      • Jun 2005
                      • 116

                      #11
                      suse doesn't have an openssl-static-devel package. i do have openssl-devel installed though.

                      Comment

                      Working...