[ZBX-22307] Zabbix FTBFS on OpenBSD Created: 2023 Feb 06  Updated: 2024 Dec 20  Resolved: 2023 Oct 23

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Installation (I)
Affects Version/s: 6.4.0beta5, 6.4.0beta6
Fix Version/s: 6.0.38rc1, 6.4.8rc1, 7.0.0alpha7, 7.0 (plan)

Type: Problem report Priority: Major
Reporter: Juris Lambda Assignee: Juris Lambda
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: 18h
Original Estimate: Not Specified
Environment:

OpenBSD 7.2 stable (i.e. 7.2 -release with follow-up patches)


Issue Links:
Causes
causes ZBX-24096 TimescaleDB documentation is out of d... Closed
causes ZBX-24601 Misleading Zabbix server log warning ... Closed
causes ZBX-24967 Remove double.sql from the directory ... Closed
Sub-task
depends on ZBX-22844 Server build from sources on OpenBSD ... Closed
Team: Team B
Sprint: Sprint 97 (Feb 2023), Sprint 98 (Mar 2023), Sprint 99 (Apr 2023), Sprint 100 (May 2023), Sprint 101 (Jun 2023), Sprint 102 (Jul 2023), Sprint 103 (Aug 2023), Sprint 104 (Sep 2023), Sprint 105 (Oct 2023)
Story Points: 0.5

 Description   

Given a simple build configuration:

./configure --enable-{agent,server,proxy} --with-postgresql --with-openssl --prefix=/usr

the build fails due to the Makefile expanding to an invalid BSD make fragment:

*** Prase error in /home/jxl/zabbix: Need an operator in 'tsdb_history_pk_upgrade_with_compression' (Makefile:1025)
*** Prase error: Need an operator in 'tsdb_history_pk_upgrade_no_compression' (Makefile:1026)

When adding primary key generating scripts in 0fa10834, two directories were added for storing the generated SQL snippets.

This appears to be intended to set variables for the shell snippets installing the files, but that's not what really happens.

This is immediately reproducible on OpenBSD 7.2, or a bmake or non gnu-compliant make that won't let these constructs hang.



 Comments   
Comment by Juris Lambda [ 2023 Oct 11 ]

Available in:

Comment by Arturs Dancis [ 2023 Oct 19 ]

Documentation updated:

  • Database upgrade to primary keys (6.0, 6.4, 7.0; updated TimescaleDB hypertable migration script location)
Comment by Juris Lambda [ 2024 Dec 19 ]

Fixed in abb304c616, 07042b4b572, f451b1d7b59 for upcoming 6.0.38rc1.

Generated at Sun Apr 20 20:56:15 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.