ZABBIX BUGS AND ISSUES

configure fails to detect missing postgresql dev libraries

Details

  • Zabbix ID:
    RTF

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

Activity

Hide
Alexei Vladishev added a comment -

What's your platform?

Show
Alexei Vladishev added a comment - What's your platform?
Hide
dakol added a comment -

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

Show
dakol added a comment - Ubuntu 12.04 (Precise) on x86 32bits (Intel Atom)
Hide
Alexander Vladishev added a comment -

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

Show
Alexander Vladishev added a comment - Fixed in the development branch svn://svn.zabbix.com/branches/dev/ZBX-5415
Hide
dimir added a comment -

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

Show
dimir added a comment - Successfully tested. Now configure script detects not only missing pg_config binary but also missing PostgreSQL library and/or header files.
Hide
Alexander Vladishev added a comment -

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

Show
Alexander Vladishev added a comment - Fixed in versions pre-2.0.4 r31156 and pre-2.1.0 (trunk) r31158.

People

  • Assignee:
    Unassigned
    Reporter:
    dakol
Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: