Hi, there are two problems:
make[3]: Entering directory `/tmp/buildd/dbmail2-2.1.1/pgsql' /bin/sh ../libtool --mode=compile i386-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include/postgresql -fomit-frame-pointer -Wall -O2 -g -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gmime-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -W -Wall -Wpointer-arith -Wstrict-prototypes -c dbpgsql.c i386-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include/postgresql -fomit-frame-pointer -Wall -O2 -g -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gmime-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -W -Wall -Wpointer-arith -Wstrict-prototypes -Wp,-MD,.deps/dbpgsql.pp -c dbpgsql.c -o dbpgsql.o dbpgsql.c: In function `db_connect': dbpgsql.c:80: warning: implicit declaration of function `PQServerVersion' dbpgsql.c:83: warning: implicit declaration of function `pg_encoding_to_char' dbpgsql.c:83: warning: implicit declaration of function `PGclientEncoding' dbpgsql.c:83: warning: assignment makes pointer from integer without a cast dbpgsql.c:86: error: `FATAL' undeclared (first use in this function) dbpgsql.c:86: error: (Each undeclared identifier is reported only once dbpgsql.c:86: error: for each function it appears in.) It should be TRACE_FATAL instead of FATAL. The linker doesn't find the functions like PQServerVersion. This is Debian Sarge, so I have Postgres 7.4.7. Thomas