Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-7812

problem compiling agent with --enable-static and --with-libcurl

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Major Major
    • None
    • 2.2.2
    • Agent (G)
    • None
    • redhat 6.3
      Linux tomcat2.vecna.net 2.6.32-279.14.1.el6.x86_64 #1 SMP Mon Oct 15 13:44:51 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux

      I'm trying to compile a static version of the 2.2.2 agent using the following config statement:

      ./configure --prefix /opt/zabbix --bindir=/opt/zabbix/bin --sbindir=/opt/zabbix/bin --sysconfdir=/opt/zabbix/etc --enable-agent --enable-static --with-postgresql --with-libcurl --with-net-snmp --with-ssh2 --with-openipmi

      The configure process errors out at this point:

      configure:10264: checking for curl-config
      configure:10282: found /usr/bin/curl-config
      configure:10294: result: /usr/bin/curl-config
      configure:10304: checking for the version of libcurl
      configure:10311: result: 7.33.0
      configure:10318: checking for libcurl >= version 7.13.1
      configure:10331: result: yes
      configure:10415: checking for main in -lcurl
      configure:10434: gcc -o conftest -g -O2 -rdynamic -static conftest.c -lcurl -lm -ldl -lrt -lresolv -lcurl >&5
      /usr/bin/ld: cannot find -lcurl
      /usr/bin/ld: cannot find -lcurl
      collect2: ld returned 1 exit status
      configure:10434: $? = 1
      configure: failed program was:

      /* confdefs.h */

      I have all the appropriate libraries for curl installed:

      rpm -qa | grep curl
      curl-7.33.0-1.41.amzn1.x86_64
      libcurl-devel-7.33.0-1.41.amzn1.x86_64
      libcurl-7.33.0-1.41.amzn1.x86_64

            Unassigned Unassigned
            lprikockis larry j prikockis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: