undefined reference to `__db_ndbm_open'
The Doctor
doctor at doctor.nl2k.ab.ca
Fri Aug 2 13:37:42 UTC 2013
All right
This morning from inn-CURRENT-20130802
I got
ckpasswd.o: In function `password_dbm':
/usr/source/inn-CURRENT-20130802/authprogs/ckpasswd.c:170: undefined reference to `__db_ndbm_open'
/usr/source/inn-CURRENT-20130802/authprogs/ckpasswd.c:175: undefined reference to `__db_ndbm_fetch'
/usr/source/inn-CURRENT-20130802/authprogs/ckpasswd.c:177: undefined reference to `__db_ndbm_close'
/usr/source/inn-CURRENT-20130802/authprogs/ckpasswd.c:182: undefined reference to `__db_ndbm_close'
Code in question
#if !(defined(HAVE_DBM) || defined(HAVE_BDB_DBM))
static char *
password_dbm(char *user UNUSED, const char *file UNUSED)
{
return NULL;
}
#else
static char *
password_dbm(char *name, const char *file)
{
datum key, value;
DBM *database;
char *password;
database = dbm_open(file, O_RDONLY, 0600);
if (database == NULL)
return NULL;
key.dptr = name;
key.dsize = strlen(name);
value = dbm_fetch(database, key);
if (value.dptr == NULL) {
dbm_close(database);
return NULL;
}
password = xmalloc(value.dsize + 1);
strlcpy(password, value.dptr, value.dsize + 1);
dbm_close(database);
return password;
}
#endif /* HAVE_DBM || HAVE_BDB_DBM */
I am running Berkerley 5.3 on this system.
Please look into this.
--
Member - Liberal International This is doctor at nl2k.ab.ca Ici doctor at nl2k.ab.ca
God,Queen and country!Never Satan President Republic!Beware AntiChrist rising!
http://www.fullyfollow.me/rootnl2k Look at Psalms 14 and 53 on Atheism
The false churches will conform themselves to this world's demands, seeing as they do not fear and thus do not obey God. - anon
More information about the inn-workers
mailing list