I had to apply the following patch to ecpg would compile on BSD/OS.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
Index: src/interfaces/ecpg/ecpglib/misc.c
===================================================================
RCS file: /cvsroot/pgsql-server/src/interfaces/ecpg/ecpglib/misc.c,v
retrieving revision 1.6
diff -c -c -r1.6 misc.c
*** src/interfaces/ecpg/ecpglib/misc.c 25 Jun 2003 11:51:18 -0000 1.6
--- src/interfaces/ecpg/ecpglib/misc.c 26 Jun 2003 01:30:35 -0000
***************
*** 18,23 ****
--- 18,28 ----
#include "pgtypes_timestamp.h"
#include "pgtypes_interval.h"
+ #ifndef LONG_LONG_MIN
+ #define LONG_LONG_MIN LLONG_MIN
+ #endif
+
+
static struct sqlca_t sqlca_init =
{
{