On Wed, Sep 03, 2003 at 04:10:34PM -0300, Rodrigo Pinheiro wrote:
> Hi.
>
>
> I did get same error on compile too.
>
> I changed NULL with 0 in qldap.c, now I get this:
>
>
> ./load digest passwd.o digest_md4.o digest_md5.o digest_rmd160.o \
> digest_sha1.o base64.o qldap-debug.o output.o getopt.a substdio.a \
> case.a env.a stralloc.a str.a fs.a alloc.a error.a
> passwd.o: In function `cmp_passwd':
> passwd.o(.text+0xc3): undefined reference to `crypt'
> passwd.o(.text+0xe6): undefined reference to `crypt'
> passwd.o: In function `do_crypt':
> passwd.o(.text+0x2e9): undefined reference to `crypt'
> collect2: ld returned 1 exit status
> make: *** [digest] Error 1
>
Linuxism :) Forgot to add $(SHADOWLIBS) to the digest make statement.
here the patch
====
--- Makefile 2 Sep 2003 12:15:44 -0000 1.73
+++ Makefile 3 Sep 2003 19:27:00 -0000
@@ -554,7 +554,7 @@
case.a env.a stralloc.a str.a fs.a alloc.a error.a
./load digest passwd.o digest_md4.o digest_md5.o digest_rmd160.o \
digest_sha1.o base64.o qldap-debug.o output.o getopt.a substdio.a \
- case.a env.a stralloc.a str.a fs.a alloc.a error.a
+ case.a env.a stralloc.a str.a fs.a alloc.a error.a $(SHADOWLIBS)
digest.o: \
compile digest.c base64.h error.h passwd.h qldap-errno.h \
=====
This should fix the problem. All our test *BSD systems have crypt
integrated in libc so I forgot it.
--
:wq Claudio