Re all the stuff on undefined names in libdbm.a -- are you expecting this to be libndbm.a? We ran into the same problem, expecting ndbm names instead of dbm.