undefined references in ckpasswd.c
Joe St Sauver
JOE at OREGON.UOREGON.EDU
Thu Mar 29 00:03:51 UTC 2001
gcc -o ckpasswd ckpasswd.o libauth.o -lcrypt
ckpasswd.o: In function `GetDBPass':
/usr/local/src/inn-CURRENT-20010327/authprogs/ckpasswd.c:91: undefined
reference to `dbm_open'
/usr/local/src/inn-CURRENT-20010327/authprogs/ckpasswd.c:96: undefined
reference to `dbm_fetch'
/usr/local/src/inn-CURRENT-20010327/authprogs/ckpasswd.c:98: undefined
reference to `dbm_close'
/usr/local/src/inn-CURRENT-20010327/authprogs/ckpasswd.c:103: undefined
reference to `dbm_close'
collect2: ld returned 1 exit status
This is inn-CURRENT-20010327 under Linux 2.4.1
#ifdef HAVE_NDBM_H
# include <ndbm.h>
#else
# ifdef HAVE_DB1_NDBM_H
# include <db1/ndbm.h>
# endif
#endif
fails to consider the case where neither HAVE_NDBM_H nor HAVE_DB1_NDBM_H
are defined...
Regards,
Joe
More information about the inn-workers
mailing list