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

Can not compile Zabbix components with libressl

    XMLWordPrintable

Details

    • Incident report
    • Status: Closed
    • Trivial
    • Resolution: Duplicate
    • 3.0.9, 3.2.6
    • None
    • Agent (G), Proxy (P), Server (S)
    • None
    • Alpine Linux 3.5

    Description

      bash-4.3# make
      Making all in src
      make[1]: Entering directory '/tmp/zabbix-3.2.6/src'
      Making all in libs
      make[2]: Entering directory '/tmp/zabbix-3.2.6/src/libs'
      Making all in zbxcrypto
      make[3]: Entering directory '/tmp/zabbix-3.2.6/src/libs/zbxcrypto'
      gcc -DHAVE_CONFIG_H -I. -I../../../include    -I/usr/include -fPIC -pie -Wl,-z,relro -Wl,-z,now -MT libzbxcrypto_a-md5.o -MD -MP -MF .deps/libzbxcrypto_a-md5.Tpo -c -o libzbxcrypto_a-md5.o `test -f 'md5.c' || echo './'`md5.c
      mv -f .deps/libzbxcrypto_a-md5.Tpo .deps/libzbxcrypto_a-md5.Po
      gcc -DHAVE_CONFIG_H -I. -I../../../include    -I/usr/include -fPIC -pie -Wl,-z,relro -Wl,-z,now -MT libzbxcrypto_a-base64.o -MD -MP -MF .deps/libzbxcrypto_a-base64.Tpo -c -o libzbxcrypto_a-base64.o `test -f 'base64.c' || echo './'`base64.c
      mv -f .deps/libzbxcrypto_a-base64.Tpo .deps/libzbxcrypto_a-base64.Po
      gcc -DHAVE_CONFIG_H -I. -I../../../include    -I/usr/include -fPIC -pie -Wl,-z,relro -Wl,-z,now -MT libzbxcrypto_a-tls.o -MD -MP -MF .deps/libzbxcrypto_a-tls.Tpo -c -o libzbxcrypto_a-tls.o `test -f 'tls.c' || echo './'`tls.c
      tls.c: In function 'zbx_log_ciphersuites':
      tls.c:1679:17: warning: implicit declaration of function 'SSL_CTX_get_ciphers' [-Wimplicit-function-declaration]
         cipher_list = SSL_CTX_get_ciphers(ciphers);
                       ^~~~~~~~~~~~~~~~~~~
      tls.c:1679:15: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
         cipher_list = SSL_CTX_get_ciphers(ciphers);
                     ^
      tls.c: In function 'zbx_tls_library_init':
      tls.c:2568:11: warning: implicit declaration of function 'OPENSSL_init_ssl' [-Wimplicit-function-declaration]
        if (1 != OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS | OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL))
                 ^~~~~~~~~~~~~~~~
      tls.c:2568:28: error: 'OPENSSL_INIT_LOAD_SSL_STRINGS' undeclared (first use in this function)
        if (1 != OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS | OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL))
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      tls.c:2568:28: note: each undeclared identifier is reported only once for each function it appears in
      tls.c:2568:60: error: 'OPENSSL_INIT_LOAD_CRYPTO_STRINGS' undeclared (first use in this function)
        if (1 != OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS | OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL))
                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from tls.c:26:0:
      tls.c:2576:74: warning: implicit declaration of function 'OpenSSL_version' [-Wimplicit-function-declaration]
        zabbix_log(LOG_LEVEL_DEBUG, "OpenSSL library (version %s) initialized", OpenSSL_version(OPENSSL_VERSION));
                                                                                ^
      ../../../include/log.h:58:87: note: in definition of macro 'zabbix_log'
       # define zabbix_log(level, fmt, ...) __zbx_zabbix_log(level, ZBX_CONST_STRING(fmt), ##__VA_ARGS__)
                                                                                             ^~~~~~~~~~~
      tls.c:2576:90: error: 'OPENSSL_VERSION' undeclared (first use in this function)
        zabbix_log(LOG_LEVEL_DEBUG, "OpenSSL library (version %s) initialized", OpenSSL_version(OPENSSL_VERSION));
                                                                                                ^
      ../../../include/log.h:58:87: note: in definition of macro 'zabbix_log'
       # define zabbix_log(level, fmt, ...) __zbx_zabbix_log(level, ZBX_CONST_STRING(fmt), ##__VA_ARGS__)
                                                                                             ^~~~~~~~~~~
      tls.c: In function 'zbx_tls_library_deinit':
      tls.c:2599:3: warning: implicit declaration of function 'OPENSSL_cleanup' [-Wimplicit-function-declaration]
         OPENSSL_cleanup();
         ^~~~~~~~~~~~~~~
      tls.c: In function 'zbx_tls_init_child':
      tls.c:3141:12: warning: implicit declaration of function 'SSL_CTX_set_min_proto_version' [-Wimplicit-function-declaration]
         if (1 != SSL_CTX_set_min_proto_version(ctx_cert, TLS1_2_VERSION))
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      tls.c:3379:4: warning: implicit declaration of function 'SSL_CTX_set_psk_client_callback' [-Wimplicit-function-declaration]
          SSL_CTX_set_psk_client_callback(ctx_psk, zbx_psk_client_cb);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      tls.c:3383:4: warning: implicit declaration of function 'SSL_CTX_set_psk_server_callback' [-Wimplicit-function-declaration]
          SSL_CTX_set_psk_server_callback(ctx_psk, zbx_psk_server_cb);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      tls.c: In function 'zbx_tls_get_attr_psk':
      tls.c:5473:36: warning: implicit declaration of function 'SSL_get_psk_identity' [-Wimplicit-function-declaration]
        if (NULL != (attr->psk_identity = SSL_get_psk_identity(s->tls_ctx->ctx)))
                                          ^~~~~~~~~~~~~~~~~~~~
      tls.c:5473:34: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
        if (NULL != (attr->psk_identity = SSL_get_psk_identity(s->tls_ctx->ctx)))
                                        ^
      make[3]: *** [Makefile:466: libzbxcrypto_a-tls.o] Error 1
      make[3]: Leaving directory '/tmp/zabbix-3.2.6/src/libs/zbxcrypto'
      make[2]: *** [Makefile:479: all-recursive] Error 1
      make[2]: Leaving directory '/tmp/zabbix-3.2.6/src/libs'
      make[1]: *** [Makefile:455: all-recursive] Error 1
      make[1]: Leaving directory '/tmp/zabbix-3.2.6/src'
      make: *** [Makefile:468: all-recursive] Error 1
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dotneft Alexey Pustovalov
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: