I was able to get qmail-ldap to compile after doing these changes:

In the Makefile
-Uncommenting the 'SHADOWLIBS=-lcrypt' line.
-Adding $(SHADOWLIBS) as Claudio mentioned.

In qldap.c
-Switching all occurrences of NULL to 0 as you mentioned.

After this.. it all compiled. Now I get to try it out.

-Mike




Rodrigo Pinheiro wrote:


Hi..
Sorry Claudio

But I'm still get same error:


./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


I applied your patch for Makefile, but still not work



Regards friends..


Rodrigo Pinheiro



-----Original Message-----
From: Claudio Jeker [mailto:[EMAIL PROTECTED]
Sent: quarta-feira, 3 de setembro de 2003 16:28
To: [EMAIL PROTECTED]
Subject: Re: qmail-ldap 20030901 patch compile error


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.







Reply via email to