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

Zabbix agent2 compilation fails if ssl development library is missing

XMLWordPrintable

    • Sprint 62 (Mar 2020)
    • 0.25

      ./configure --enable-agent2

      Try make install and observe error:

      Checking the make code, it seems I have some go errors as well
      # zabbix.com/pkg/tls
      pkg/tls/tls.go:867:52: cannot use Ctype_tls_lp_t(c.tls) (type Ctype_tls_lp_t) as type *_Ctype_struct___0 in assignment
      pkg/tls/tls.go:877:31: cannot use Ctype_tls_lp_t(c.tls) (type Ctype_tls_lp_t) as type *_Ctype_struct___0 in argument to _Cfunc_tls_ready
      pkg/tls/tls.go:883:33: cannot use Ctype_tls_lp_t(c.tls) (type Ctype_tls_lp_t) as type *_Ctype_struct___0 in argument to _Cfunc_tls_recv
      pkg/tls/tls.go:907:23: cannot use Ctype_tls_lp_t(c.tls) (type Ctype_tls_lp_t) as type *_Ctype_struct___0 in argument to _Cfunc_tls_send
      pkg/tls/tls.go:932:30: cannot use Ctype_tls_lp_t(c.tls) (type Ctype_tls_lp_t) as type *_Ctype_struct___0 in argument to _Cfunc_tls_close
      pkg/tls/tls.go:951:55: cannot use Ctype_tls_lp_t(c.tls) (type Ctype_tls_lp_t) as type *_Ctype_struct___0 in argument to _Cfunc_tls_validate_issuer_and_subject
      pkg/tls/tls.go:960:15: cannot use Ctype_tls_lp_t(c.tls) (type Ctype_tls_lp_t) as type *_Ctype_struct___0 in assignment
      pkg/tls/tls.go:972:31: cannot use Ctype_tls_lp_t(c.tlsConn.tls) (type Ctype_tls_lp_t) as type *_Ctype_struct___0 in argument to _Cfunc_tls_connected
      pkg/tls/tls.go:975:32: cannot use Ctype_tls_lp_t(c.tlsConn.tls) (type Ctype_tls_lp_t) as type *_Ctype_struct___0 in argument to _Cfunc_tls_connected
      pkg/tls/tls.go:976:37: cannot use Ctype_tls_lp_t(c.tlsConn.tls) (type Ctype_tls_lp_t) as type *_Ctype_struct___0 in argument to _Cfunc_tls_handshake
      pkg/tls/tls.go:976:37: too many errors
      

      Expected:
      Event if ssl library is mandatory there should have been error about it missing, but it's better to make it not mandatory when compiling without openssl.

            wiper Andris Zeila
            vso Vladislavs Sokurenko
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: