Hello,
 
I got the following errors making qmail with ldap patch.
 
root@jazz:/home/giga/qmail-1.03# make
./load qmail-lspawn spawn.o prot.o slurpclose.o coe.o control.o \
check.o qldap-ldaplib.o qldap-debug.o output.o sig.a strerr.a constmap.o \
getln.a wait.a case.a cdb.a fd.a seek.a open.a env.a stralloc.a alloc.a \
substdio.a str.a qldap-errno.o error.a fs.a auto_qmail.o \
auto_uids.o auto_usera.o auto_spawn.o auto_break.o -L/usr/local/lib -lldap -llber
/usr/local/lib/libldap.so: undefined reference to `res_query'
/usr/local/lib/libldap.so: undefined reference to `dn_expand'
collect2: ld returned 1 exit status
make: *** [qmail-lspawn] Error 1
root@jazz:/home/giga/qmail-1.03#
 
all libraries of ldap are in /usr/local/lib
 
root@jazz:/home/giga/qmail-1.03# ls -la /usr/local/lib
total 4972
drwxrwsr-x    4 root     staff        4096 Oct  5 22:29 .
drwxrwsr-x   14 root     staff        4096 Oct  5 22:29 ..
-rw-r--r--    1 root     staff      224168 Oct  5 22:29 liblber.a
-rw-r--r--    1 root     staff         692 Oct  5 22:29 liblber.la
lrwxrwxrwx    1 root     staff          17 Oct  5 22:29 liblber.so -> liblber.so.2.0.10
lrwxrwxrwx    1 root     staff          17 Oct  5 22:29 liblber.so.2 -> liblber.so.2.0.10
-rw-r--r--    1 root     staff      120031 Oct  5 22:29 liblber.so.2.0.10
-rw-r--r--    1 root     staff     1750394 Oct  5 22:29 libldap.a
-rw-r--r--    1 root     staff         692 Oct  5 22:29 libldap.la
lrwxrwxrwx    1 root     staff          17 Oct  5 22:29 libldap.so -> libldap.so.2.0.10
lrwxrwxrwx    1 root     staff          17 Oct  5 22:29 libldap.so.2 -> libldap.so.2.0.10
-rw-r--r--    1 root     staff      478638 Oct  5 22:29 libldap.so.2.0.10
-rw-r--r--    1 root     staff     1934202 Oct  5 22:29 libldap_r.a
-rw-r--r--    1 root     staff         704 Oct  5 22:29 libldap_r.la
lrwxrwxrwx    1 root     staff          19 Oct  5 22:29 libldap_r.so -> libldap_r.so.2.0.10
lrwxrwxrwx    1 root     staff          19 Oct  5 22:29 libldap_r.so.2 -> libldap_r.so.2.0.10
-rw-r--r--    1 root     staff      516146 Oct  5 22:29 libldap_r.so.2.0.10
drwxr-sr-x    3 root     staff        4096 Aug  9 23:58 site_perl
drwxrwsr-x    3 root     staff        4096 Aug 10 00:03 texmf
 
this what I have at the top of qmail Makefile
 
# Edit this few lines to configure your ldap stuff and checkpassword
 
# to enable some additional for qmail-ldap stuff put it on the LDAPFLAGS line
# -DLDAP_ESCAPE_BUG should be added as long as the ldap servers have
# problems with the escapeing of LDAP filters (fixed with OpenLDAP 1.2.7)
# -DQLDAP_CLUSTER for enabling cluster support
# to enable the dash_ext patch for extended mail addresses add
# -DDASH_EXT to the LDAPFLAGS
# to use cleartext passwords (a bad idea on production systems) add
# -DCLEARTEXTPASSWD to the LDAPFLAGS
#LDAPFLAGS=-DQLDAP_CLUSTER
 
# 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
# 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
 
Please, advise. Thank you.
Very Best Regards,
Ivan

Reply via email to