[Planner] problems compiling planner with postgres support



Hi,

with postgresql 7.3.4, I get the follwoing error:
-------------------------------------------------------------------------
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I/opt/gnome/include/glib-2.0
-I/opt/gnome/lib/glib-2.0/include -I/opt/gnome/include/libgsf-1
-I/usr/include/libxml2
-DMRP_STORAGEMODULEDIR=\"/opt/gnome/lib/planner/storage-modules\"
-DMRP_FILE_MODULES_DIR=\"/opt/gnome/lib/planner/file-modules\" -O2 -g
-march=i586 -mcpu=i686 -fmessage-length=0 -MT mrp-sql.lo -MD -MP -MF
.deps/mrp-sql.Tpo -c mrp-sql.c  -fPIC -DPIC -o .libs/mrp-sql.o
mrp-sql.c:27:22: libpq-fe.h: No such file or directory
mrp-sql.c:72: error: parse error before "PGconn"
-------------------------------------------------------------------------

It looks to me, as if the postgresql include directory is not included.

if I compile it with
export CFLAGS="-I`/usr/bin/pg_config --includedir`"
everyting is fine.

kind regards,
Rainer


-- 
Rainer Lay                      University of Erlangen-Nuernberg
Dept. of Computer Sciences      IMMD6
Martensstrasse 3                D-91058 Erlangen, Germany
Phone: +49-9131-85-27800        Fax: +49-9131-85-28854
pgp-key: http://www6.informatik.uni-erlangen.de/~rainer/lay.asc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]