[ZBX-22314] Build fails on systems with OpenSSL in non-standard location Created: 2023 Feb 07  Updated: 2024 Apr 10  Resolved: 2023 Jun 09

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Installation (I)
Affects Version/s: 6.4.0rc1
Fix Version/s: 6.4.4rc1, 7.0.0alpha2, 7.0 (plan)

Type: Problem report Priority: Trivial
Reporter: Alex Kalimulin Assignee: Armands Arseniuss Skolmeisters
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File tls_includes.patch    
Team: Team C
Sprint: Sprint 97 (Feb 2023), Sprint 98 (Mar 2023), Sprint 99 (Apr 2023), Sprint 100 (May 2023), Sprint 101 (Jun 2023)
Story Points: 0.25

 Description   

Steps to reproduce:

  1. Compile Zabbix on a system with OpenSSL installed in a non-standard location (e.g. macOS) and the OpenSSL headers are not available in default include path

Result:

In file included from scripts.c:20:
In file included from ./scripts.h:23:
In file included from ../../../include/zbxcacheconfig.h:24:
../../../include/zbxcomms.h:108:11: fatal error: 'openssl/ssl.h' file not found
#       include <openssl/ssl.h>
                ^~~~~~~~~~~~~~~
1 error generated.

Expected:
Successful compilation.

Analysis:
This happens because now zbxcoms.h includes ssl.h and zbxcoms.h is included in many headers. The corresponding makefiles must point to the correct location of OpenSSL includes.

Please see the patch that fixes this problem: tls_includes.patch



 Comments   
Comment by Armands Arseniuss Skolmeisters [ 2023 Apr 26 ]

Main issue is fixed in development branches feature/ZBX-22314-6.4 for 6.4 version and feature/ZBX-22314-6.5 for master version.

Comment by Armands Arseniuss Skolmeisters [ 2023 May 19 ]

Available in versions:

Part 1:

Part 2:

Generated at Tue Apr 01 18:00:03 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.