ports/95646: security/amavisd-milter configure fails if sendmail built with LDAPMAP
Denis Eremenko <moonshade@pnhz.kz>
moonshade at pnhz.kz
Wed Apr 12 11:00:42 UTC 2006
>Number: 95646
>Category: ports
>Synopsis: security/amavisd-milter configure 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:33 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:
configure fails with:
configure: error: required milter library and header not found
configure:6375: cc -o conftest -O2 -DNDEBUG -O2 -fno-strict-aliasing -pipe -D_THREAD_SAFE -pthread conftest.c -lmilter >&5
/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/security/amavisd-milter && make configure
>Fix:
--- patch-Makefile begins here ---
--- Makefile.orig Wed Apr 12 13:36:20 2006
+++ Makefile Wed Apr 12 13:36:59 2006
@@ -23,6 +23,13 @@
GNU_CONFIGURE= yes
USE_RCORDER= ${PORTNAME}.sh
+SENDMAIL_OPTIONS!=${ECHO} `sendmail -bv -d0.1`
+
+.if ${SENDMAIL_OPTIONS:MLDAPMAP} == "LDAPMAP"
+USE_OPENLDAP= yes
+CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib -lldap -llber"
+.endif
+
SUB_FILES= pkg-message
SUB_LIST= AMAVISUSER=${AMAVISUSER} \
AMAVISDIR=${AMAVISDIR}
--- patch-Makefile ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list