Complie errors 2.3.2

Russ Allbery rra at stanford.edu
Wed Mar 20 19:21:48 UTC 2002


Support <support at obantec.net> writes:

> make error as follows

> make[1]: Entering directory `/usr/local/src/inn-2.3.2/authprogs'
> gcc -g -O2 -I../include     -c -o ckpasswd.o ckpasswd.c
> gcc   -o ckpasswd ckpasswd.o  -lresolv -lcrypt
> ckpasswd.o: In function `GetDBPass':
> /usr/local/src/inn-2.3.2/authprogs/ckpasswd.c:89: undefined reference to
> `dbm_open'
> /usr/local/src/inn-2.3.2/authprogs/ckpasswd.c:94: undefined reference to
> `dbm_fetch'
> /usr/local/src/inn-2.3.2/authprogs/ckpasswd.c:96: undefined reference to
> `dbm_close'
> /usr/local/src/inn-2.3.2/authprogs/ckpasswd.c:101: undefined reference to
> `dbm_close'
> collect2: ld returned 1 exit status
> make[1]: *** [ckpasswd] Error 1
> make[1]: Leaving directory `/usr/local/src/inn-2.3.2/authprogs'
> make: *** [all-authprogs] Error 2
> [root at proteus2 inn-2.3.2]#

Hm, this problem again.  For some reason configure thinks you have dbm
libraries when you don't.  The workaround is, after running configure,
edit include/config.h and change the #define HAVE_DBM line to #undef
HAVE_DBM.

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>

    Please send questions to the list rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.


More information about the inn-workers mailing list