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

--disable-static configure flag breaks compilation

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.8.4
    • 1.6, 1.6.6, 1.9.0 (alpha)
    • Installation (I)
    • None
    • ALT Linux Sisyphus

      Zabbix 1.6 release.

      %configure --with-mysql \
      --disable-static \
      --with-net-snmp \
      --enable-server \
      --enable-agent \
      --with-ldap \
      --with-libcurl \
      --with-jabber \
      --enable-proxy \
      --enable-ipv6

      ./configure output:
      checking for strtod... yes
      checking for snprintf... yes
      checking for vasprintf... yes
      checking for asprintf... yes
      checking for vsnprintf... yes
      checking for hstrerror... yes
      checking for atoll... yes
      checking for getopt_long... yes
      checking for mysql_config... /usr/bin/mysql_config
      checking for main in -lz ... no
      configure: error: Not found z library
      error: Bad exit status from /usr/src/tmp/rpm-tmp.35655 (%build)

      config.log:
      configure:9347: checking for main in -lz
      configure:9376: gcc -o conftest -pipe -Wall -O2 -march=pentium4 -static conftest.c -lz -lm -lresolv >&5
      /usr/bin/ld: cannot find -lz
      collect2: ld returned 1 exit status

      I think that isn't normal behavior.

            Unassigned Unassigned
            vvk Vladimir Kamarzin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: