Hello,
today I decided to give the qmail-ldap-control patch a spin and created a set of source files with these patches: qmail-ldap-1.03-20060201.patch.gz qmail-ldap-1.03-20060201-controls20060403b.bz2 Then I enabled SECUREBIND=-DSECUREBIND_ALL (amongst others) in the Makefile and tried to compile with gcc 4.1.2 under Debian, and got this: control.c:62: error: static declaration of 'sasl_flags' follows non-static declaration control.h:19: error: previous declaration of 'sasl_flags' was here control.c: In function 'control_ldap_search': control.c:408: warning: incompatible implicit declaration of built-in function 'strndup' make: *** [control.o] Error 1 Searching for sasl_flags results in these occurrences: $ grep -F sasl_flags *.c *.h control.c:static unsigned sasl_flags = LDAP_SASL_AUTOMATIC; control.c: sasl_flags = LDAP_SASL_QUIET; qldap.c:unsigned sasl_flags = LDAP_SASL_AUTOMATIC; qmail-ldapctrld.c:static unsigned sasl_flags = LDAP_SASL_AUTOMATIC; control.h:extern unsigned sasl_flags; The next step would be to find out whether these declarations were intended to create 1, 2 or 3 different variables. Best, --Toni++
