how to sdb compile

how can I do sdb compile ??
zonetodb is compiled but other pgsqldb ,etc is not compiled ,,
pgsqldb.c:20: config.h
pgsqldb.c : named/globals.h
or
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
dirdb.o: In function `dirdb_init':
/data/bind/bind-9.1.1rc4/contrib/sdb/./dirdb.c:182: undefined reference to `ns_g_mctx'
collect2: ld returned 1 exit status
please reply
I'm not well english ,, sorry..