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

hard coded locations of iconv.h and pthread.h

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • None
    • None

      As reported in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911574

      The m4 files used for generating zabbix' configure script hard code the

      locations of iconv.h and pthread.h. This will stop working with

      non-glibc libcs as well as a glibc that fully moves headers to

      /usr/include/<triplet> (#798955). zabbix will fail to build as is.

      Please consider applying the attached patch.

      --- zabbix-4.0.0+dfsg.orig/m4/iconv.m4
      +++ zabbix-4.0.0+dfsg/m4/iconv.m4
      @@ -69,7 +69,8 @@
       
       	AC_MSG_CHECKING(for ICONV support)
       
      -	if test -n "$_iconv_dir_set" -o -f /usr/include/iconv.h; then
      +	AC_CHECK_HEADER([iconv.h],[found_iconv=yes])
      +	if test -n "$_iconv_dir_set" -o "x$found_iconv" = xyes; then
       		found_iconv="yes"
       	elif test -f /usr/local/include/iconv.h; then
       		ICONV_CFLAGS="-I/usr/local/include"
      --- zabbix-4.0.0+dfsg.orig/m4/pthread.m4
      +++ zabbix-4.0.0+dfsg/m4/pthread.m4
      @@ -105,7 +105,8 @@
       
       	LIBPTHREAD_LIBS="-lpthread"
       
      -	if test -n "$_libpthread_dir_set" -o -f /usr/include/pthread.h; then
      +	AC_CHECK_HEADER([pthread.h],[found_libpthread=yes])
      +	if test -n "$_libpthread_dir_set" -o "x$found_libpthread" = xyes; then
       		found_libpthread="yes"
       	elif test -f /usr/local/include/pthread.h; then
       		LIBPTHREAD_CFLAGS="-I/usr/local/include"
      
      

            Unassigned Unassigned
            onlyjob Dmitry Smirnov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: