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

can't compile agent with enable-static and with-openssl

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: 4.4.4
    • Fix Version/s: None
    • Component/s: Installation (I)
    • Labels:
      None
    • Environment:
      gentoo, ubuntu bionic
    • Team:
      Team C

      Description

      Hi i want to have agent  static  with  openssl (like in https://zabbix.org/wiki/Zabbix_Agent_static_linking)

      Steps to reproduce:

       

      1. download zabbix sources
      2. extract it
      3. run :
      [email protected]:~/zabbix-4.4.4# ./configure --enable-agent --with-openssl --enable-static
       

      Result:

      ...
      checking if static linking is possible... yes
      checking for OpenSSL support... no
      configure: error: OpenSSL library libssl or libcrypto not found
      

      BUT WHNT

       [email protected]:~/zabbix-4.4.4# ./configure --enable-agent --with-openssl 

      Result:

      Configuration:  Detected OS:           linux-gnu
        Install path:          /usr/local
        Compilation arch:      linux  Compiler:              cc
        Compiler flags:         -g -O2   Library-specific flags:
          TLS:                   -I/usr/include  Enable server:         no  Enable proxy:          no  Enable agent:          yes
        Agent details:
          TLS:                   OpenSSL
          Linker flags:             -L/usr/lib   -rdynamic   
          Libraries:                -lssl -lcrypto   -lm -ldl  -lresolv -lpcre 
          Configuration file:    /usr/local/etc/zabbix_agentd.conf
          Modules:               /usr/local/lib/modules  Enable agent 2:        no  Enable Java gateway:   no  LDAP support:          no
        IPv6 support:          no***********************************************************
      *            Now run 'make install'                       *
      *                                                         *
      *            Thank you for using Zabbix!                  *
      *              <http://www.zabbix.com>                    *
      ***********************************************************
       

        Attachments

        1. config.log
          304 kB
        2. config.log.2
          304 kB
        3. DEV-1343-4.0.patch
          45 kB
        4. DEV-1343-4.4.patch
          45 kB
        5. pthread_openssl_4.0.patch
          0.7 kB

          Activity

            People

            Assignee:
            zabbix.support Zabbix Support Team
            Reporter:
            MXL MXL
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: