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

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 4.4.4
    • Installation (I)
    • None
    • gentoo, ubuntu bionic

      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 :
      root@lab:~/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

       root@lab:~/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>                    *
      ***********************************************************
       

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

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

              Created:
              Updated:
              Resolved: