Compile errors

Alexander N. Ryzhov ran at kondor.dn.ua
Thu Oct 26 10:46:57 UTC 2000



Katsuhiro Kondou wrote:

> In article <39E4314E.DED6402C at kondor.dn.ua>,
>         "Alexander N. Ryzhov" <ran at kondor.dn.ua> wrote;
>
> } And it's interesting how ld determine it.
>
> configure tries to find.  Here is how it does(in configure.in):
>
> AC_CHECK_LIB(dbm, dbm_open, DBM_LIB="-ldbm")
> AC_CHECK_LIB(ndbm, dbm_open, DBM_LIB="-lndbm")
> AC_SUBST(DBM_LIB)
>
> DMB_LIB is used as DBMLIB in Makefile.global which is included
> when make runs.

But finaly it's run:

gcc   -o ckpasswd ckpasswd.o  -lresolv -lcrypt
ckpasswd.o: In function `GetDBPass':
/usr/src/inn-2.3.0/authprogs/ckpasswd.c:90: undefined reference to
`dbm_open'
/usr/src/inn-2.3.0/authprogs/ckpasswd.c:95: undefined reference to
`dbm_fetch'
/usr/src/inn-2.3.0/authprogs/ckpasswd.c:97: undefined reference to
`dbm_close'
/usr/src/inn-2.3.0/authprogs/ckpasswd.c:102: undefined reference to
`dbm_close'
collect2: ld returned 1 exit status
make[1]: *** [ckpasswd] Error 1

Why there are no -ldbm?


--
Alexander N. Ryzhov





More information about the inn-workers mailing list