Hi all,

I have patched qmail-1.03 with:

qmail-ldap-1.03-20040301a.patch
qmail-ldap-1.03-20040301a-controls20040422.patch

When running make setup check i get:

control.c: In function `control_readline':
control.c:149: warning: passing arg 1 of `control_ldap_search' discards
qualifiers from pointer target type
control.c: In function `control_readfile':
control.c:227: warning: passing arg 1 of `control_ldap_search' discards
qualifiers from pointer target type
chkshsgr.c: In function `main':
chkshsgr.c:10: warning: passing arg 2 of `getgroups' from incompatible
pointer type
control.o: In function `control_ldap_search':
control.o(.text+0x7cc): undefined reference to `str_diffn'
control.o(.text+0x7fc): undefined reference to `str_diffn'
collect2: ld returned 1 exit status
make: *** [qmail-newmrh] Error 1

My make config looks like:

LDAPFLAGS=-DQLDAP_CLUSTER -DEXTERNAL_TODO -DDASH_EXT -DDATA_COMPRESS
-DQMQP_COMPRESS

# * These are some options to securly connect to the LDAP server
#   -DSECUREBIND_SASL   Bind using SASL
#   -DSECUREBIND_SSL    Encrypt the channel with SSL
#   -DSECUREBIND_TLS    Encrypt the channel with TLS (SSL v3)
#   -DSECUREBIND_ALL    All of the above...
SECUREBIND=-DSECUREBIND_TLS

# * Log authentication success/failures in auth_{pop,imap,smtp}
#SYSLOGAUTH=-DLOGAUTH

# -DUSE_RFC2307         -> Follow the RFC2307
# -DUSE_RFC822          -> Follow the RFC822
# See the QLDAPINSTALL file for more about this.
#RFCFLAGS=-DUSE_RFC2307 -DUSE_RFC822

# to enable having the configuration (~control/* in the LDAP database
# to, uncomment the following line and read QLDAPINSTALL.
# -DUSE_CONTROLDB       Search LDAP for control files
# -DQLDAP_BAILOUT       First search LDAP, then FS
CONTROLDB=-DUSE_CONTROLDB -DQLDAP_BAILOUT

# Perhaps you have different ldap libraries, change them here
#LDAPLIBS=-L/usr/local/lib -lldap -llber
# and change the location of the include files here
LDAPINCLUDES=-I/usr/local/include
# on Slowaris you need -lresolv and probably a LD_RUN_PATH added like
this:
#LDAPLIBS=-L/opt/OpenLDAP/lib -lldap -llber -lresolv -R/opt/OpenLDAP/lib
LDAPLIBS=-lldap -llber -lresolv -lcrypto -lssl
# for example on my Linux box I use:
#LDAPLIBS=-L/opt/OpenLDAP/lib -lldap -llber
# if you need a special include-directory for ldap headers enable this
#LDAPINCLUDES=-I/opt/OpenLDAP/include

# ZLIB needed for -DDATA_COMPRESS and -DQMQP_COMPRESS
ZLIB=-lz
# of you installed zlib in a different path you can use something like
this
#ZLIB=-L/opt/zlib/lib -lz
#ZINCLUDES=-I/opt/zlib/include

# TLS (SMTP encryption) in qmail-smtpd and qmail-remote, see TLS.readme
# You need OpenSSL for this
# use -DTLS_REMOTE to enable tls support in qmail-remote
# use -DTLS_SMTPD to enable tls support in qmail-smtpd
# use -DTLSDEBUG to enable additional tls debug information in
qmail-remote
# TLS=-DTLS_REMOTE -DTLS_SMTPD
TLS=-DTLS_REMOTE
# Path to OpenSSL includes
TLSINCLUDES=-I/usr/local/include
# Path to OpenSSL libraries
TLSLIBS=-L/usr/local/lib -lssl -lcrypto
# Path to OpenSSL binary
#OPENSSLBIN=/usr/local/bin/openssl
OPENSSLBIN=openssl

# to make the Netscape download progress bar work with qmail-pop3d
# uncomment the next line (allready done)
MNW=-DMAKE_NETSCAPE_WORK

# to enable the auto-maildir-make feature uncomment the next line
MDIRMAKE=-DAUTOMAILDIRMAKE

# to enable the auto-homedir-make feature uncomment the next line
HDIRMAKE=-DAUTOHOMEDIRMAKE

# on most systems we need this to make auth_pop and auth_imap
SHADOWLIBS=-lcrypt
# OpenBSD and other Systems do not have libcrypt, so comment the line
out
# if you get linking problems.
# To use shadow passwords under some Linux OS, uncomment the next two
lines.
#SHADOWLIBS=-lcrypt -lshadow
#SHADOWOPTS=-DPW_SHADOW
# To use shadow passwords under Solaris, uncomment the SHADOWOPTS line.

# to enable the possibility to log and debug imap and pop uncoment the
# next line
#DEBUG=-DDEBUG
# WARNING: you need a NONE DEBUG auth_* to run with inetd

# for profiling ...
#INCTAI=../libtai-0.60
#LIBTAI=../libtai-0.60

# Just for me, make from time to time a backup
BACKUPPATH=/backup/qmail-backup/qmail-ldap.`date "+%Y%m%d-%H%M"`.tar

Regards,

Didier Geheniau

Reply via email to