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

Respect library paths specified in configure

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 8.0.0alpha1 (master)
    • Installation (I)
    • None
    • Sprint candidates
    • 0.5

      It's not possible to build Zabbix from sources unless the dependencies are installed in the default locations. You get messages like this:

      Making all in zbxautoreg
      depbase=`echo autoreg.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
          gcc -DHAVE_CONFIG_H -I../../../include/common -I../../../include   -I/opt/homebrew/opt/libiconv/include  -g -O2 -I/opt/homebrew/Cellar/pcre2/10.45/include -MT autoreg.o -MD -MP -MF $depbase.Tpo -c -o autoreg.o autoreg.c &&\
          mv -f $depbase.Tpo $depbase.Po
      In file included from autoreg.c:15:
      In file included from ../../../include/zbxautoreg.h:19:
      In file included from ../../../include/zbxcacheconfig.h:19:
      ../../../include/zbxcomms.h:161:11: fatal error: 'openssl/ssl.h' file not found
        161 | #       include <openssl/ssl.h>
            |                 ^~~~~~~~~~~~~~~
      1 error generated.
      make[3]: *** [autoreg.o] Error 1
      make[2]: *** [all-recursive] Error 1
      make[1]: *** [all-recursive] Error 1
      make: *** [all-recursive] Error 1

      It's most evident on macOS because of brew but should be reproducible elsewhere.

      Please see the patch attached.

            zabbix.dev Zabbix Development Team
            Kalimulin Alex Kalimulin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: