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



Regards

Rodrigo Pinheiro

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


On Wed, Sep 03, 2003 at 01:43:24PM -0500, Mike Manders wrote:
> I can compile qmail-1.03 just fine(with the errno patch).  And I 
> currently have 20030801a patched qmail currently running on my redhat 
> linux system. 
> 
> For both of these I've had to patch qmail-1.03 with the errno patch, and 
> then after applying the qmail 20030901 patch and make'ing, I get these 
> compile errors:
> 
> ./compile auto_uids.c
> ./auto-str auto_usera `head -1 conf-users` > auto_usera.c
> ./compile auto_usera.c
> ./compile  check.c
> ./compile output.c
> ./compile  -I/usr/local/include  qldap.c
> qldap.c: In function `qldap_lookup':
> qldap.c:328: warning: passing arg 5 of `ldap_search_st' from 
> incompatible pointer type
> qldap.c: In function `qldap_filter':
> qldap.c:415: warning: passing arg 5 of `ldap_search_st' from 
> incompatible pointer type
> qldap.c: In function `qldap_first':
> qldap.c:467: `NULL' undeclared (first use in this function)
> qldap.c:467: (Each undeclared identifier is reported only once
> qldap.c:467: for each function it appears in.)
> qldap.c: In function `qldap_next':
> qldap.c:485: `NULL' undeclared (first use in this function)
> qldap.c: In function `qldap_set_option':
> qldap.c:916: warning: passing arg 2 of `ldap_set_rebind_proc' from 
> incompatible pointer type
> make: *** [qldap.o] Error 1
> 
> 
> I hope that's the important part of the code.  Am I doing something 
> obviously wrong?  Or are others having trouble compiling the new 
> qmail-ldap patch?
> 

djb-ism sometimes it sucks. Just change the NULL with 0 and it will work.
If you used to no-djb C-Coding than it just happens that you put stuff
in that your used to. 

There will be a a-release in the next days as soon as we found enough bugs
to justify the effort (the NULL stuff is number two, number one is a
problem with auth_imap and courier. Mr Sam just does not read his own
docu, grumble...).

-- 
:wq Claudio

Reply via email to