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

--disable-static configure flag breaks compilation

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6, 1.6.6, 1.9.0 (alpha)
    • Fix Version/s: 1.8.4
    • Component/s: Installation (I)
    • Labels:
      None
    • Environment:
      ALT Linux Sisyphus

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: