Re: qmail-ldap-1.03-20120221.patch
Ismail YENIGUL <[email protected]> Fri, 24 Feb 2012 18:55:35 +0200
| Newsgroups | gmane.mail.qmail.ldap |
|---|---|
| Organization | Endersys Ltd |
| Message-ID | <[email protected]> |
Hello,
On 24.02.2012 18:15, Claudio Jeker wrote:
> Can you send me the exact Makefile definitions you used to build?
> I will see that we can fix this...
Ok I see the problem. I forget to comment out #LDAPFLAGS= line.
Now this part is OK.
Only problem is with loglevel in auth_dovecot.
Btw, Do you have any plan for IPv6 support?
Me and my colleague is working on to fix depreciated functions in LDAP
to avoid DLDAP_DEPRECATED declration for OpenLDAP 2.4
I think, it would great to create a tarball contain all these patches as
a distribution callled something qmail-ldap version X
Thanks
> 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