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

configure script fails on FreeBSD with "Unable to use iconv (libiconv check failed)"

    Details

    • Team:
      Team C
    • Sprint:
      Sprint 31
    • Story Points:
      1

      Description

      If libiconv package is installed AND --with-libcurl option is specified then configure script fails:

      $ CFLAGS="-g -O2 -D_FORTIFY_SOURCE=2" ./configure --enable-server --enable-proxy --enable-agent \
          --enable-ipv6 --with-net-snmp --with-unixodbc --with-libxml2 --with-libcurl --with-ssh2 \
        --with-openipmi --with-ldap --with-mysql --with-openssl --prefix=`pwd` 2>&1 | tee my_configure.out
      ...
      checking whether libcurl is usable... yes
      checking for curl_free... yes
      checking for curl_easy_escape... yes
      checking for ICONV support... configure: error: Unable to use iconv (libiconv check failed)
      

      If libiconv package is removed OR --with-libcurl option is not used then configure script succeeds.

      The issue can be worked around by adding --with-iconv=/usr/local to configure options:

      $ CFLAGS="-g -O2 -D_FORTIFY_SOURCE=2" ./configure --enable-server --enable-proxy --enable-agent \
          --enable-ipv6 --with-net-snmp --with-unixodbc --with-libxml2 --with-libcurl --with-ssh2 \
        --with-openipmi --with-ldap --with-mysql --with-openssl --with-iconv=/usr/local --prefix=`pwd` 2>&1 | tee my_configure.out
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                MVekslers Michael Veksler
                Reporter:
                andris Andris Mednis
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: