ports/95647: mail/sentinel compilation fails if sendmail built with LDAPMAP
Denis Eremenko <moonshade@pnhz.kz>
moonshade at pnhz.kz
Wed Apr 12 11:00:44 UTC 2006
>Number: 95647
>Category: ports
>Synopsis: mail/sentinel compilation fails if sendmail built with LDAPMAP
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Apr 12 11:00:35 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Denis Eremenko <moonshade at pnhz.kz>
>Release: FreeBSD 6.1-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD 6.1-PRERELEASE #0: Fri Mar 24 13:56:48 ALMT 2006
root at abyss.pnhz.kz:/usr/obj/data/os/FreeBSD/src/6/src/sys/ABYSS-6
>Description:
compilation fails with:
cd /usr/ports/mail/sentinel/work/sentinel-1.7b && cc -O2 -fno-strict-aliasing -pipe -I/usr/local/include -o sentinel sentinel.c -L/usr/local/lib -lmilter -lpcre -lpcreposix -pthread
/usr/lib/libmilter.so: undefined reference to `ldap_err2string'
>How-To-Repeat:
1. build sendmail with LDAPMAP
in /etc/make.conf:
SENDMAIL_CFLAGS=-I/usr/local/include -DLDAPMAP -DLDAP_REFERRALS
SENDMAIL_LDFLAGS=-L/usr/local/lib
SENDMAIL_LDADD=-lldap -llber
2. cd /usr/ports/mail/sentinel && make
>Fix:
--- patch-Makefile begins here ---
--- Makefile.orig Wed Apr 12 12:50:36 2006
+++ Makefile Wed Apr 12 12:45:18 2006
@@ -25,6 +25,13 @@
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
+SENDMAIL_OPTIONS!=${ECHO} `sendmail -bv -d0.1`
+
+.if ${SENDMAIL_OPTIONS:MLDAPMAP} == "LDAPMAP"
+USE_OPENLDAP= yes
+CFLAGS+= -lldap -llber
+.endif
+
.if defined(WITHOUT_SENTINEL_DECODE_SUBJECT)
CFLAGS+= -DDO_NOT_DECODE_SUBJECT
.endif
--- patch-Makefile ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list