Menu

#104 configure/check_pgsql openbsd 3.0

open
nobody
configure (8)
5
2002-02-14
2002-02-14
Anonymous
No

Version: netsaint-plugins-1.2.9-4.tar.gz

configure fails for the check_pgsql plugin, it misses
the postgres libs and generates wrong Makefiles

1. Missing lib:
the configure script requires libcrypto for check_pgsql
to build. OpenBSD since 2.0 has no libcrypto because
the functions in libcrypto are placed in libc for
OpenBSD since version 2.0. see:

http://groups.google.com/groups?q=openbsd+libcrypt&hl=en&selm=DERAADT.97Feb17024041%40zeus.pacifier.com&rnum=10

2. wrong include path for postgres headers
case '.../include/pgsql/ and .../include/postgresql/'

Even if configure finds a fake libcrypto it generates
wrong include path for postgres headers, even when
configure used with option --with-pgsql=/path/to/pg

Reason: the configure/configure.in script checks for
postgres includes at three different places ../pgsql/
../postgresql/ and direct. Regardless where the include
libpq_fe.h were found the script ignores the path from
--with-pgsql and always sets path-prefix PGINCLUDE to
/usr/include/ (see line 103 and 106 in configure.in)

Sorry, no fix available.

With best regards

Alexander

Discussion


Log in to post a comment.

MongoDB Logo MongoDB