From owner-freebsd-questions@FreeBSD.ORG Fri Apr 28 16:37:27 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E8F516A403 for ; Fri, 28 Apr 2006 16:37:27 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51A6A43D48 for ; Fri, 28 Apr 2006 16:37:25 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.pc (aris.bedc.ondsl.gr [62.103.39.226]) (authenticated bits=128) by igloo.linux.gr (8.13.6/8.13.6/Debian-1) with ESMTP id k3SGawoG013074 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 28 Apr 2006 19:37:06 +0300 Received: from gothmog.pc (gothmog [127.0.0.1]) by gothmog.pc (8.13.6/8.13.6) with ESMTP id k3SGb2sg007297; Fri, 28 Apr 2006 19:37:02 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.pc (8.13.6/8.13.6/Submit) id k3SGb2Ha007296; Fri, 28 Apr 2006 19:37:02 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 28 Apr 2006 19:37:02 +0300 From: Giorgos Keramidas To: Duane Whitty Message-ID: <20060428163702.GA7220@gothmog.pc> References: <4451C500.6090304@greenmeadow.ca> <4451C92A.10103@greenmeadow.ca> <4451CD51.5080605@greenmeadow.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4451CD51.5080605@greenmeadow.ca> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.393, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.81, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: Sendmail Compile-Time Configuration X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 16:37:27 -0000 On 2006-04-28 05:07, Duane Whitty wrote: >Duane Whitty wrote: >>Duane Whitty wrote: >>> I'm adding LDAP support to my Sendmail configuration. I couldn't seem >>> to find the appropriate m4 file in which to declare my APPENDDEF >>> statements. My course of action was to include >>> SENDMAIL_CFLAGS+=-DLDAPMAP in make.conf. Does this seem like the >>> correct way to do this for FreeBSD 6-STABLE? That would be `/etc/make.conf'. >> Answering myself: >> >> I gues this isn't correct: >> >> /usr/src/lib/libmilter/../../contrib/sendmail/include/sm/config.h:148:20: >> lber.h: No such file or directory >> >> /usr/src/lib/libmilter/../../contrib/sendmail/include/sm/config.h:149:20: >> ldap.h: No such file or directory >> >> mkdep: compile failed >> *** Error code 1 >> >> I'll be continuing to work on this but hopefully someone >> here will have dealt with this previously > > Maybe SENDMAIL_ADDITIONAL_MC in make.conf will work > with the needed APPENDDEF statements in my ldap.mc file? No, you probably want something similar to the way SASL2 support is compiled into the base-system version of Sendmail. In my `make.conf' I have the following: SENDMAIL_CFLAGS= -I/usr/local/include -DSASL=2 SENDMAIL_LDFLAGS= -L/usr/local/lib SENDMAIL_LDADD= -lsasl2 While adding stuff to these variables please keep in mind that GCC on FreeBSD has a major difference from the default GCC behavior: it does *not* add /usr/local/include to the default include path or /usr/local/lib to the default library search path. So you will have to add them yourself, as shown above. - Giorgos