hi all!

i have problems compiling :
qmail-1.03
qmail-ldap--1.03-20011001a.patch
qmail-ldap-control_20011029.patch

without the control patch is works fine,
but with the control patch i get the following
error while compiling:

----snip---------
auto-uid.c: In function `main':
auto-uid.c:20: warning: return type of `main' is not `int'
./load auto-uid substdio.a error.a str.a fs.a
./compile auto-gid.c
auto-gid.c: In function `main':
auto-gid.c:20: warning: return type of `main' is not `int'
./load auto-gid substdio.a error.a str.a fs.a
( ./auto-uid auto_uida `head -1 conf-users` \
&&./auto-uid auto_uidd `head -2 conf-users | tail -1` \
&&./auto-uid auto_uidl `head -3 conf-users | tail -1` \
&&./auto-uid auto_uido `head -4 conf-users | tail -1` \
&&./auto-uid auto_uidp `head -5 conf-users | tail -1` \
&&./auto-uid auto_uidq `head -6 conf-users | tail -1` \
&&./auto-uid auto_uidr `head -7 conf-users | tail -1` \
&&./auto-uid auto_uids `head -8 conf-users | tail -1` \
&&./auto-gid auto_gidq `head -1 conf-groups` \
&&./auto-gid auto_gidn `head -2 conf-groups | tail -1` \
) > auto_uids.c.tmp && mv auto_uids.c.tmp auto_uids.c
./compile auto_uids.c
./auto-str auto_usera `head -1 conf-users` > auto_usera.c
./compile auto_usera.c
./compile output.c
./auto-str auto_break \
"`head -1 conf-break`" > auto_break.c
./compile auto_break.c
./compile constmap.c
make: *** No rule to make target `-L/usr/local/lib', needed by 
`qmail-lspawn'.  Stop.
-----snap-----------

Any ideas??

regards carsten


system-config:
suse-linux 7.3
openldap 2.0.23 installed in /usr/local
gcc 2.95.3



qmail Makefile (i�ve comment out some things... with the original
Makefile after patch i get compile errors too):

##################################################################
# 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
#
# * If you are running an older version of OpenSSL (older than 0.9.5b)
#   please add this define to the LDAPFLAGS
#   -DOLDOPENSSL
# * If you are running OpenLDAP v1 (1.2.x), then please add this define
#   -DOLDOPENLDAP
###LDAPFLAGS=-DQLDAP_CLUSTER -DDASH_EXT

# * 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_ALL

# 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

# TLS (SMTP encryption) in qmail-smtpd and qmail-remote, see TLS.readme
# You need OpenSSL for this
# TLS enable
###TLSON=-DTLS
# 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

# -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

# 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 checkpassword
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
# STOP editing HERE !!!

# Don't edit Makefile! Use conf-* for configuration.

SHELL=/bin/sh

#ifdef DEBIAN
# Under Debian, with the packages libopenldap-dev, libopenldap1,
# openssl and libssl09-dev installed, use these entries instead.
#LDAPLIBS=-L/usr/lib

# The location of the header files differ...
#ifdef OLDOPENLDAP
# OpenLDAP v1
#LDAPINCLUDES=-I/usr/include/openldap
#else
# OpenLDAP v2
#LDAPINCLUDES=-I/usr/include
#endif

#TLSINCLUDES=-I/usr/include/openssl
#TLSLIBS=-L/usr/lib -lssl -lcrypto
#OPENSSLBIN=/usr/bin
#endif

# Make sure we link with the correct libs depending on
# running OpenLDAP1 or OpenLDAP2...
##ifdef OLDOPENLDAP
# OpenLDAP v1
##LDAPLIBS := -lopenldap -llber-openldap
##else
# OpenLDAP v2
##LDAPLIBS := -lldap -llber
##endif

##ifdef SECUREBIND
##SECUREBINDLIBS=getopt.a substdio.a
##SECUREBINDLIB1=case_diffb.o constmap.o
##endif

# This sums it up nice and correctly, I think!
LDAPFLAGS := $(LDAPFLAGS) $(DEBUG) $(CONTROLDB) $(RFCFLAGS) $(SECUREBIND)

default: it qldap

qldap: qmail-quotawarn qmail-reply auth_pop auth_imap digest qmail-ldaplookup

addresses.0: \
addresses.5
         nroff -man addresses.5 > addresses.0

alloc.a: \
Makefile makelib alloc.o alloc_re.o
         ./makelib alloc.a alloc.o alloc_re.o

alloc.o: \
compile alloc.c alloc.h error.h
         ./compile alloc.c

alloc_re.o: \
compile alloc_re.c alloc.h byte.h
         ./compile alloc_re.c
....
....
....
....
###########################################################################


###########################################################################
/home/carsten/software/qmail-1.03 # ls -al /usr/local/lib/libl*
-rw-r--r--    1 root     root       268852 Mar  1 20:58 
/usr/local/lib/liblber.a
-rw-r--r--    1 root     root          704 Mar  1 20:58 
/usr/local/lib/liblber.la
lrwxrwxrwx    1 root     root           17 Mar  1 20:58 
/usr/local/lib/liblber.so -> liblber.so.2.0.15
lrwxrwxrwx    1 root     root           17 Mar  1 20:58 
/usr/local/lib/liblber.so.2 -> liblber.so.2.0.15
-rw-r--r--    1 root     root       129836 Mar  1 20:58 
/usr/local/lib/liblber.so.2.0.15
-rw-r--r--    1 root     root      2143804 Mar  1 20:58 
/usr/local/lib/libldap.a
-rw-r--r--    1 root     root          704 Mar  1 20:58 
/usr/local/lib/libldap.la
lrwxrwxrwx    1 root     root           17 Mar  1 20:58 
/usr/local/lib/libldap.so -> libldap.so.2.0.15
lrwxrwxrwx    1 root     root           17 Mar  1 20:58 
/usr/local/lib/libldap.so.2 -> libldap.so.2.0.15
-rw-r--r--    1 root     root       496749 Mar  1 20:58 
/usr/local/lib/libldap.so.2.0.15
-rw-r--r--    1 root     root      2273088 Mar  1 20:58 
/usr/local/lib/libldap_r.a
-rw-r--r--    1 root     root          716 Mar  1 20:58 
/usr/local/lib/libldap_r.la
lrwxrwxrwx    1 root     root           19 Mar  1 20:58 
/usr/local/lib/libldap_r.so -> libldap_r.so.2.0.15
lrwxrwxrwx    1 root     root           19 Mar  1 20:58 
/usr/local/lib/libldap_r.so.2 -> libldap_r.so.2.0.15
-rw-r--r--    1 root     root       530188 Mar  1 20:58 
/usr/local/lib/libldap_r.so.2.0.15
############################################################################

Reply via email to