[ZBX-12779] configure script fails with PostgreSQL 10 Created: 2017 Sep 26 Updated: 2024 Apr 10 Resolved: 2018 Apr 25 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Installation (I) |
Affects Version/s: | 3.4.2 |
Fix Version/s: | 3.0.12rc1, 3.2.9rc1, 3.4.3rc1, 4.0.0alpha1, 4.0 (plan) |
Type: | Problem report | Priority: | Trivial |
Reporter: | Andris Mednis | Assignee: | Andris Mednis |
Resolution: | Fixed | Votes: | 1 |
Labels: | configure, postgresql | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Debian GNU/Linux testing |
Team: | Team A |
Team: | Team A |
Sprint: | Sprint 17, Sprint 18 |
Story Points: | 0.7 |
Description |
$ ./configure --enable-server --with-postgresql .... checking for pg_config... /usr/bin/pg_config checking for PostgreSQL libraries... yes expr: non-integer argument checking if PostgreSQL version is >= 8.1... expr: syntax error no configure: error: PostgreSQL version mismatch Version: $ pg_config --version PostgreSQL 10rc1 |
Comments |
Comment by Andris Mednis [ 2017 Sep 26 ] |
Debugging configure script shows values found: POSTGRESQL_VERSION= 10rc1 postgresql_version_major= 10 postgresql_version_minor= postgresql_version_micro= |
Comment by Andris Mednis [ 2017 Sep 26 ] |
Quick fix: Index: m4/ax_lib_postgresql.m4 =================================================================== --- m4/ax_lib_postgresql.m4 (revision 72963) +++ m4/ax_lib_postgresql.m4 (working copy) @@ -137,6 +138,9 @@ postgresql_version_major=`expr $POSTGRESQL_VERSION : '\([[0-9]]*\)'` postgresql_version_minor=`expr $POSTGRESQL_VERSION : '[[0-9]]*\.\([[0-9]]*\)'` postgresql_version_micro=`expr $POSTGRESQL_VERSION : '[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)'` + if test "x$postgresql_version_minor" = "x"; then + postgresql_version_minor="0" + fi if test "x$postgresql_version_micro" = "x"; then postgresql_version_micro="0" fi |
Comment by Andris Mednis [ 2017 Sep 29 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-12779 (for 3.0 and up). |
Comment by Andris Mednis [ 2017 Sep 29 ] |
The fix was developed to enable compilation with PostgreSQL 10rc1, released on 2017-09-21. |
Comment by Andris Mednis [ 2017 Oct 03 ] |
Available in versions:
|
Comment by Andris Mednis [ 2017 Oct 03 ] |
No documentation update required. |