I did a diff of the two Makefiles that were generated:

< DBM_LIBS      =
< LIBS          =        -lresolv    -lcrypt
---
> DBM_LIBS      =       -lndbm
> LIBS          =        -lresolv  -lndbm  -lcrypt

        The top one is for the good compile, and the bottom oneis for the
error compile. I recall that ./configure could not find ndbm.h, but it
exists in two forms with minor differences:

/usr/include/db1/ndbm.h
/usr/i386-glibc20-linux/include/ndbm.h

# diff /usr/include/db1/ndbm.h /usr/i386-glibc20-linux/include/ndbm.h
39,40c39,40
< #ifndef _NDBM_H
< #define       _NDBM_H 1
---
> #ifndef _NDBM_H_
> #define       _NDBM_H_
79c79
< #endif /* ndbm.h */
---
> #endif /* !_NDBM_H_ */

        Might it be that there is supposed to be a local copy of this .h
file included in the source tree? OTOH, I did get this with ./configure:

checking ndbm... checking for dbm_open in -lndbm... (cached) yes
found ndbm

-- 
Roger Walker                         <http://www.rat-hole.com>
Voice/Fax 1-780-440-2685             <http://www.man-from-linux.com>
"HIS Pain; YOUR Gain"                <http://www.rope.net>
<http://www.rope.net/signature.html>

Reply via email to