Can you send me the exact Makefile definitions you used to build?
I will see that we can fix this...

On Fri, Feb 24, 2012 at 02:49:41PM +0200, Ismail YENIGUL wrote:
> Hello,
> 
> It seems that there is a progress in qmail-ldap project. The latest
> patch is 20120221 at http://www.nrg4u.com.
> I tried but failed to compile with the following errors:
> 
> qldap-filter.c: In function â??filter_mailâ??:
> qldap-filter.c:147: warning: assignment discards qualifiers from
> pointer target type
> qldap-filter.c:182:2: error: #error XXX XXX
> make: *** [qldap-filter.o] Error 1
> and
> auth_dovecot.o: In function `auth_init':
> auth_dovecot.c:(.text+0x228): undefined reference to `loglevel'
> auth_dovecot.c:(.text+0x234): undefined reference to `loglevel'
> collect2: ld returned 1 exit status
> make: *** [auth_dovecot] Error 1
> 
> diff -ruN qmail-ldap.orig/auth_dovecot.c qmail-ldap.new/auth_dovecot.c
> --- qmail-ldap.orig/auth_dovecot.c 2012-02-24 14:43:41.615196114 +0200
> +++ qmail-ldap.new/auth_dovecot.c 2012-02-24 14:31:59.668186556 +0200
> @@ -127,7 +127,7 @@
> void
> auth_init(int argc, char **argv, stralloc *login, stralloc *authdata)
> {
> - extern unsigned long loglevel;
> + unsigned long loglevel;

I think this is wrong. loglevel should be a global variable defined
somewhere, seems it is not included.

> char *l, *p;
> unsigned int uplen, u;
> int n, opt;
> 
> The following changes let me to compile on Centos 6
> diff -ruN qmail-ldap.orig/qldap-filter.c qmail-ldap.new/qldap-filter.c
> --- qmail-ldap.orig/qldap-filter.c 2012-02-24 14:43:41.682431376 +0200
> +++ qmail-ldap.new/qldap-filter.c 2012-02-24 14:30:19.985209641 +0200
> @@ -179,8 +179,8 @@
> }
> extcnt--;
> #else
> -#error XXX XXX
> /* basic qmail-ldap behavior test for [email protected] and
> +#error XXX XXX
> [email protected] */
> ext = 0;
> extcnt = 0;

Not sure what this is, will investigate.

> 
> Best regards.
> 
> -- 
> Ismail YENIGUL
> Project Manager
> 
> Endersys is the 17th fastest growing company of Turkey
> Phone :+90 216-4709423 | Mobile:+90 533 747 36 65
> SurGATE: West Coast Labs Premium Anti-Spam Certificated
> Twitter: http://www.twitter.com/endersys
> Blog: http://blog.endersys.com

-- 
:wq Claudio

Reply via email to