Hi All, I was trying to install sqwebmail, a web interface for qmail. I finally got it to configure with the correct options but now I get this error when I run make. I have searched Google but found no realy answers, just people with the same problem as me. Anyone know what I need to do. Thanks.

bash-2.05# make
make all-gmake-check FOO=BAR
make[1]: Entering directory `/export/home/datamike/sqwebmail-3.5.1'
make[1]: Leaving directory `/export/home/datamike/sqwebmail-3.5.1'
Making all in numlib
make[1]: Entering directory `/export/home/datamike/sqwebmail-3.5.1/numlib'
make all-am
make[2]: Entering directory `/export/home/datamike/sqwebmail-3.5.1/numlib'
make[2]: Leaving directory `/export/home/datamike/sqwebmail-3.5.1/numlib'
make[1]: Leaving directory `/export/home/datamike/sqwebmail-3.5.1/numlib'
Making all in bdbobj
make[1]: Entering directory `/export/home/datamike/sqwebmail-3.5.1/bdbobj'
make all-am
make[2]: Entering directory `/export/home/datamike/sqwebmail-3.5.1/bdbobj'
Compiling bdbobj.c
In file included from bdbobj.h:21,
from bdbobj.c:10:
/usr/local/include/db.h:40:23: sys/cdefs.h: No such file or directory
In file included from bdbobj.h:21,
from bdbobj.c:10:
/usr/local/include/db.h:129: parse error before "__P"
/usr/local/include/db.h:130: parse error before "__P"
usr/local/include/db.h:153: parse error before "__P"
/usr/local/include/db.h:155: parse error before '}' token
/usr/local/include/db.h:167: parse error before "__P"
/usr/local/include/db.h:169: parse error before '}' token
/usr/local/include/db.h:236: parse error before "DB"
In file included from /usr/include/stdlib.h:18,
from bdbobj.h:22,
from bdbobj.c:10:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2.2/include/iso/stdlib_iso.h:46: s
yntax error before "extern"
In file included from bdbobj.c:10:
bdbobj.h:29: parse error before "DB"
bdbobj.h:29: warning: no semicolon at end of struct or union
bdbobj.h:36: parse error before '}' token
bdbobj.c: In function `bdbobj_init':
bdbobj.c:24: dereferencing pointer to incomplete type
bdbobj.c: In function `bdbobj_close':
bdbobj.c:40: dereferencing pointer to incomplete type
bdbobj.c:43: dereferencing pointer to incomplete type
bdbobj.c:43: dereferencing pointer to incomplete type
bdbobj.c:47: dereferencing pointer to incomplete type
bdbobj.c: In function `bdbobj_open':
bdbobj.c:108: dereferencing pointer to incomplete type
bdbobj.c:108: warning: implicit declaration of function `dbopen'
bdbobj.c:130: dereferencing pointer to incomplete type
bdbobj.c:130: dereferencing pointer to incomplete type
bdbobj.c:142: dereferencing pointer to incomplete type
bdbobj.c: In function `bdbobj_store':
bdbobj.c:164: dereferencing pointer to incomplete type
bdbobj.c:164: dereferencing pointer to incomplete type
bdbobj.c:164: dereferencing pointer to incomplete type
bdbobj.c: In function `dofetch':
bdbobj.c:245: dereferencing pointer to incomplete type
bdbobj.c:254: dereferencing pointer to incomplete type
bdbobj.c:254: dereferencing pointer to incomplete type
make[2]: *** [bdbobj.o] Error 1
make[2]: Leaving directory `/export/home/datamike/sqwebmail-3.5.1/bdbobj'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/export/home/datamike/sqwebmail-3.5.1/bdbobj'
make: *** [all-recursive] Error 1