[ZBX-5415] configure fails to detect missing postgresql dev libraries Created: 2012 Aug 03  Updated: 2017 May 30  Resolved: 2012 Sep 06

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Installation (I)
Affects Version/s: 2.0.2
Fix Version/s: 2.0.4rc1, 2.1.0

Type: Incident report Priority: Minor
Reporter: dakol Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: configure, postgresql
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu precise



 Description   

quite wierd, i have some autobuild @work on Redhat 5 / Solaris 10, but now i try @home

$ ./configure --enable-server --with-postgresql
...
Configuration:
Detected OS: linux-gnu
Install path: /usr/local
Compilation arch: linux
Compiler: gcc
Compiler flags: -g -O2 -I <= empty include path
Enable server: yes
Server details:
With database: PostgreSQL
WEB Monitoring via: no
Native Jabber: no
SNMP: no
IPMI: no
SSH: no
Linker flags: -rdynamic -L <= empty lib path
Libraries: -lm -lrt -lresolv -lpq
Enable proxy: no
Enable agent: no
Enable Java gateway: no
LDAP support: no
IPv6 support: no

$ make
Making all in src
make[1]: Entering directory `/home/dakol/dl/zabbix-2.0.2/src'
Making all in libs
make[2]: Entering directory `/home/dakol/dl/zabbix-2.0.2/src/libs'
Making all in zbxcrypto
make[3]: Entering directory `/home/dakol/dl/zabbix-2.0.2/src/libs/zbxcrypto'
gcc -DHAVE_CONFIG_H -I. -I../../../include -g -O2 -I -MT md5.o -MD -MP -MF .deps/md5.Tpo -c -o md5.o md5.c
gcc: error: md5.o: No such file or directory
make[3]: *** [md5.o] Error 1
make[3]: Leaving directory `/home/dakol/dl/zabbix-2.0.2/src/libs/zbxcrypto'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/dakol/dl/zabbix-2.0.2/src/libs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dakol/dl/zabbix-2.0.2/src'
make: *** [all-recursive] Error 1

I then install the missing libpq-dev and configure says:
Compiler: gcc
Compiler flags: -g -O2 -I/usr/include/postgresql <= ok
Enable server: yes
Server details:
With database: PostgreSQL
WEB Monitoring via: no
Native Jabber: no
SNMP: no
IPMI: no
SSH: no
Linker flags: -rdynamic -L/usr/lib <= ok
Libraries: -lm -lrt -lresolv -lpq <= ok

trying with --with-mysql, configure correctly detect missing dev/lib
checking for mysql_config... no
configure: error: MySQL library not found



 Comments   
Comment by Alexei Vladishev [ 2012 Aug 09 ]

What's your platform?

Comment by dakol [ 2012 Aug 09 ]

Ubuntu 12.04 (Precise) on x86 32bits (Intel Atom)

Comment by Alexander Vladishev [ 2012 Sep 06 ]

Fixed in the development branch svn://svn.zabbix.com/branches/dev/ZBX-5415

Comment by dimir [ 2012 Oct 30 ]

Successfully tested. Now configure script detects not only missing pg_config binary but also missing PostgreSQL library and/or header files.

Comment by Alexander Vladishev [ 2012 Oct 31 ]

Fixed in versions pre-2.0.4 r31156 and pre-2.1.0 (trunk) r31158.

Generated at Thu Mar 28 22:16:29 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.