I'm not sure which of your settings helped me, but it just compiled just fine
with your modifications. Thanks alot for your help; now I can test if my
ldap-cotrol settings work at least. :)
amendola maurizio ([EMAIL PROTECTED]) skrev:
>
> Hi Harald
> I have compiled this patch( qmail-ldap-1.03-20040701-controls20040713.patch)
> after qmail-ldap-1.03-20040701.patch without big problem.
> I have compiled on Freebsd 5.2.
> This is head of my Makefile
>
>
> LDAPFLAGS=-DQLDAP_CLUSTER -DEXTERNAL_TODO -DDASH_EXT -DBIGTODO
> -DSMTPEXECCHECK
>
> # * 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
>
> # * 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
> # 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
> # or 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
> # 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
> # STOP editing HERE !!!
>
> # Don't edit Makefile! Use conf-* for configuration.
>
> SHELL=/bin/sh
>
> #ifdef LDAPFLAGS
> QLDAPLIB=qldap.a
> #else
> #ifdef SECUREBIND
> #QLDAPLIB=qldap.a
> #endif
> #endif
>
> #ifdef SECUREBIND
> #SECUREBINDLIBS=getopt.a substdio.a
> #SECUREBINDLIB1=case_diffb.o constmap.o
> #endif
>
> #ifdef CONTROLDB
> NEWLDAPPROGLIBS=control.o stralloc.a fs.a
> #ifdef DEBUG
> #CONTROLLIBS=read-ctrl.o case.a env.a
> #else
> #AUTOBREAKLIB=auto_break.o
> #endif
>
> # This sums it up nice and correctly, I think!
> #LDAPFLAGS := $(LDAPFLAGS) $(DEBUG) $(CONTROLDB) $(RFCFLAGS) $(SECUREBIND)
>
>
> I hope that it will be util.
> Maurizio
>
>
>
> -----Original Message-----
> From: Harald Finn�s [mailto:[EMAIL PROTECTED]
> Sent: luned� 23 agosto 2004 9.48
> To: [EMAIL PROTECTED]
> Subject: Compile errors, qmail-ldap-1.03-20040701-controls20040713.patch
>
>
> I've been trying to apply qmail-ldap-1.03-20040701-controls20040713.patch to
> my qmail-ldap installation, but I keep getting errors. I get the same errors
> when using a "new" installation, so there shouldn't be any old files around.
>
> I get no errors when applying the qmail-ldap or controls patches, so I'm
> stumped.
>
> Googling, I've found the same error, with the response "Your makefile is
> bad", but I can't see how it can be bad when it's "fresh"?
>
> qmail-lspawn.o(.text+0x38b): In function `cae':
> : undefined reference to `qldap_free'
> qmail-lspawn.o(.text+0x3bf): In function `qldap_get':
> : undefined reference to `qldap_new'
> qmail-lspawn.o(.text+0x3d2): In function `qldap_get':
> : undefined reference to `qldap_open'
> qmail-lspawn.o(.text+0x3ea): In function `qldap_get':
> : undefined reference to `qldap_bind'
> qmail-lspawn.o(.text+0x415): In function `qldap_get':
> : undefined reference to `filter_mail'
> qmail-lspawn.o(.text+0x430): In function `qldap_get':
> : undefined reference to `logit'
> qmail-lspawn.o(.text+0x43b): In function `qldap_get':
> : undefined reference to `qldap_lookup'
> qmail-lspawn.o(.text+0x4a6): In function `qldap_get':
> : undefined reference to `qldap_get_status'
> qmail-lspawn.o(.text+0x4e2): In function `qldap_get':
> : undefined reference to `qldap_get_quota'
> qmail-lspawn.o(.text+0x50a): In function `qldap_get':
> : undefined reference to `qldap_get_mailstore'
> qmail-lspawn.o(.text+0x547): In function `qldap_get':
> : undefined reference to `qldap_free'
> qmail-lspawn.o(.text+0x575): In function `qldap_get':
> : undefined reference to `qldap_get_user'
> qmail-lspawn.o(.text+0x5a9): In function `qldap_get':
> : undefined reference to `qldap_get_uid'
> qmail-lspawn.o(.text+0x610): In function `qldap_get':
> : undefined reference to `qldap_get_gid'
> qmail-lspawn.o(.text+0x68f): In function `qldap_get':
> : undefined reference to `filter_mail_ext'
> qmail-lspawn.o(.text+0x700): In function `qldap_get':
> : undefined reference to `auto_break'
> qmail-lspawn.o(.text+0x78f): In function `qldap_get':
> : undefined reference to `logit'
> qmail-lspawn.o(.text+0x92f): In function `qldap_get':
> : undefined reference to `qldap_get_attr'
> qmail-lspawn.o(.text+0x970): In function `qldap_get':
> : undefined reference to `logit'
> qmail-lspawn.o(.text+0x9a9): In function `qldap_get':
> : undefined reference to `qldap_free'
> qmail-lspawn.o(.text+0x9d1): In function `qldap_get':
> : undefined reference to `logit'
> qmail-lspawn.o(.text+0xba7): In function `qldap_get':
> : undefined reference to `qldap_get_attr'
> qmail-lspawn.o(.text+0xcde): In function `qldap_get':
> : undefined reference to `logit'
> qmail-lspawn.o(.text+0xd0d): In function `qldap_get':
> : undefined reference to `qldap_get_attr'
> qmail-lspawn.o(.text+0xd4d): In function `qldap_get':
> : undefined reference to `qldap_get_attr'
> qmail-lspawn.o(.text+0xd8d): In function `qldap_get':
> : undefined reference to `qldap_get_attr'
> qmail-lspawn.o(.text+0xdcd): In function `qldap_get':
> : undefined reference to `qldap_get_attr'
> qmail-lspawn.o(.text+0xe29): In function `qldap_get':
> : undefined reference to `qldap_get_dotmode'
> qmail-lspawn.o(.text+0xe4e): In function `qldap_get':
> : undefined reference to `logit'
> qmail-lspawn.o(.text+0xed3): In function `qldap_get':
> : undefined reference to `qldap_get_dn'
> qmail-lspawn.o(.text+0xef8): In function `qldap_get':
> : undefined reference to `logit'
> qmail-lspawn.o(.text+0xf8c): In function `qldap_get':
> : undefined reference to `logit'
> qmail-lspawn.o(.text+0x1021): In function `qldap_get':
> : undefined reference to `logit'
> qmail-lspawn.o(.text+0x105c): In function `qldap_get':
> : undefined reference to `logit'
> qmail-lspawn.o(.text+0x106b): In function `qldap_get':
> : undefined reference to `sanitychecks'
> qmail-lspawn.o(.text+0x10fe): In function `qldap_get':
> : undefined reference to `logit'
> qmail-lspawn.o(.text+0x1140): In function `qldap_get':
> : undefined reference to `logit'
> qmail-lspawn.o(.text+0x1207): In function `qldap_get':
> : undefined reference to `logit'
> qmail-lspawn.o(.text+0x122f): In function `qldap_get':
> : undefined reference to `logit'
> qmail-lspawn.o(.text+0x127a): In function `spawn':
> : undefined reference to `log_init'
> qmail-lspawn.o(.text+0x12c8): In function `spawn':
> : undefined reference to `logit'
> qmail-lspawn.o(.text+0x1353): In function `spawn':
> : undefined reference to `logit'
> qmail-lspawn.o(.text+0x1499): In function `spawn':
> : undefined reference to `logit'
> qmail-lspawn.o(.text+0x1553): In function `spawn':
> : undefined reference to `logit'
> qmail-lspawn.o(.text+0x16d3): In function `spawn':
> : undefined reference to `logit'
> qmail-lspawn.o(.text+0x170e): more undefined references to `logit' follow
> qmail-lspawn.o(.data+0x4): undefined reference to `qldap_ctrl_login'
> qmail-lspawn.o(.data+0x8): undefined reference to `qldap_ctrl_generic'
> localdelivery.o(.text+0x47): In function `localdelivery_init':
> : undefined reference to `logit'
> collect2: ld returned 1 exit status
> make: *** [qmail-lspawn] Error 1
>
> Regards,
> Harald
>
>
>