Hi,

I am trying to build Kannel on NetBSD 2.0.2 with PostgreSQL support for DLR storage. I am using the pkgsrc system and by default Kannel 1.4 builds and works successfully but without any database support enabled.

When I try to rebuild and add Postgres support, using --with-pgsql, configure appears to get some results:

checking whether to compile with PostgresSQL support... searching
checking for pg_config... /usr/pkg/bin/pg_config
checking PostgreSQL version... PostgreSQL 8.0.8
checking PostgreSQL libs... /usr/pkg/lib
/usr/pkg/lib
checking PostgreSQL includes... /usr/pkg/include
checking for postgresql/libpq-fe.h... /usr/pkg/include
no
checking for PQconnectdb in -lpq... no
checking whether to compile with PostgreSQL support... yes

(note that /usr/pkg is where Postgres has been installed via pkgsrc). It's libpq-fe that appears to be the (first) issue as make then fails:

cc -D_REENTRANT=1 -I. -Igw -O2 -I/usr/pkg/include/libxml2/libxml -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libxml2 -I/usr/pkg/include -o gw/dlr_pgsql.o -c gw/dlr_pgsql.c
gw/dlr_pgsql.c:74:22: libpq-fe.h: No such file or directory
gmake: *** [gw/dlr_pgsql.o] Error 1
*** Error code 2

Stop.

My libpq-fe is here:

-rw-r--r-- 1 root wheel 17501 Sep 17 19:48 /usr/pkg/include/libpq-fe.h

I'm not sure where the spurious 'postgresql/' is coming from in the check that configure is doing, it's not in the source:

#ifdef HAVE_PGSQL
#include <libpq-fe.h>

I've tried --with-pgsql-dir set to both /usr/pkg and /usr/pkg/include, to no avail.

I'm mystified. Any ideas much appreciated!


Thanks,

Jeff


Reply via email to