Date: Wed, 12 Apr 2006 16:53:39 +0600 From: "Denis Eremenko <moonshade@pnhz.kz>" <moonshade@pnhz.kz> To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org> Subject: ports/95646: security/amavisd-milter configure fails if sendmail built with LDAPMAP Message-ID: <1144839219.72132@abyss.pnhz.kz> Resent-Message-ID: <200604121100.k3CB0YoE024393@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1144839219.72132>