Hi there,

Im trying to upgrade a qmail-ldap server on a Linux Red Hat 9 (glibc
2.3.1). The previous patch I worked with was the 20030501 one and the
setting up was successful after applying the qmail-errno patch (a patch
that has to be included if you compile qmail on a glibc 2.3.1 system).

Now I've got a fresh copy of qmail-1.03, added the latest qmail-ldap
patch into it (20030801) and the qmail-errno patch. Same Makefile as the
older one (with the default Makefile the older patch seems to compile
well) and I get the following error:


./compile qmail-getpw.c
qmail-getpw.c: In function `main':
qmail-getpw.c:61: warning: return type of `main' is not `int'
./load qmail-getpw case.a substdio.a error.a str.a fs.a \
auto_break.o auto_usera.o
./compile     \
qmail-remote.c
qmail-remote.c: In function `quit':
qmail-remote.c:389: `wantcomp' undeclared (first use in this function)
qmail-remote.c:389: (Each undeclared identifier is reported only once
qmail-remote.c:389: for each function it appears in.)
qmail-remote.c:390: `r' undeclared (first use in this function)
qmail-remote.c:390: `stream' undeclared (first use in this function)
qmail-remote.c:392: `num' undeclared (first use in this function)
qmail-remote.c: In function `main':
qmail-remote.c:794: warning: return type of `main' is not `int'
make: *** [qmail-remote.o] Error 1


If I try to set up Makefile with the following options:


LDAPFLAGS=-DEXTERNAL_TODO -DDASH_EXT -DALTQUEUE

# 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

# ZLIB needed for -DDATA_COMPRESS
#ZLIB=-lz
# of you installed zlib in a different path you can use something like
this
#ZLIB=-L/opt/zlib/lib -lz
#ZLIB=-L/usr/lib -lz
#ZINCLUDES=-I/opt/zlib/include
#ZINCLUDES=-I/usr/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
# 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 Systems seems to have no 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


I get the following error:

[EMAIL PROTECTED] qmail-1.03]# make setup check
./load auth_pop checkpassword.o check.o control.o qldap-ldaplib.o \
qldap-debug.o output.o auto_qmail.o dns.o timeoutconn.o timeoutread.o \
ip.o base64.o digest_md4.o digest_md5.o digest_rmd160.o digest_sha1.o \
ipalloc.o constmap.o case.a getln.a open.a env.a stralloc.a alloc.a \
substdio.a str.a qldap-mdm.o wait.a qldap-errno.o error.a fs.a \
ndelay.a prot.o -L/usr/local/lib -lldap -llber -lcrypt \
`cat dns.lib` `cat socket.lib`
checkpassword.o(.text+0x86): In function `main':
: undefined reference to `log_init'
checkpassword.o(.text+0xab): In function `main':
: undefined reference to `log'
checkpassword.o(.text+0xc3): In function `main':
: undefined reference to `log'
checkpassword.o(.text+0x12a): In function `main':
: undefined reference to `log'
checkpassword.o(.text+0x15a): In function `main':
: undefined reference to `log'
checkpassword.o(.text+0x1b8): In function `main':
: undefined reference to `log'
checkpassword.o(.text+0x1e7): more undefined references to `log' follow
checkpassword.o(.text+0x54a): In function `check_ldap':
: undefined reference to `qldap_mailhosts'
checkpassword.o(.text+0x56a): In function `check_ldap':
: undefined reference to `log'
checkpassword.o(.text+0x634): In function `check_passwd':
: undefined reference to `log'
checkpassword.o(.text+0x689): In function `check_passwd':
: undefined reference to `log'
checkpassword.o(.text+0x6bf): In function `check_passwd':
: undefined reference to `log'
checkpassword.o(.text+0x703): In function `cmp_passwd':
: undefined reference to `log'
checkpassword.o(.text+0x799): more undefined references to `log' follow
collect2: ld returned 1 exit status
make: *** [auth_pop] Error 1



I've also tried other options in qmail's Makefile. Could someone give me
a clue about if it looks like a bug or just a bad setting up /
configuration?

Thanks in advance,

Inaki 


Reply via email to