I was able to satisy the flock error by including <sys/file.h> in pop_db.c but still get implicit error on dbopen function. Tried adding an include for limits.h - but no change.
Try adding all three of: #include <sys/types.h> #include <limits.h> #include <db.h> Also, verify that those files exist under /usr/include. Mr Duck