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