From owner-freebsd-questions@FreeBSD.ORG Mon Oct 16 14:52:53 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 E948016A415 for ; Mon, 16 Oct 2006 14:52:53 +0000 (UTC) (envelope-from jonathan@hst.org.za) Received: from sirian.hst.org.za (sirian.hst.org.za [209.203.2.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id C64C843D6B for ; Mon, 16 Oct 2006 14:52:50 +0000 (GMT) (envelope-from jonathan@hst.org.za) Received: from localhost (localhost.hst.org.za [127.0.0.1]) by sirian.hst.org.za (Postfix) with ESMTP id C63AC31C32E for ; Mon, 16 Oct 2006 16:55:04 +0200 (SAST) Received: from sirian.hst.org.za ([127.0.0.1]) by localhost (sirian.hst.org.za [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 67573-02 for ; Mon, 16 Oct 2006 16:55:04 +0200 (SAST) Received: by sirian.hst.org.za (Postfix, from userid 1004) id 8861E31C2ED; Mon, 16 Oct 2006 16:55:04 +0200 (SAST) Received: from sysadmin.int.dbn.hst.org.za (sysadmin.int.dbn.hst.org.za [10.1.1.20]) by sirian.hst.org.za (Postfix) with ESMTP id 9419D31C15E for ; Mon, 16 Oct 2006 16:55:03 +0200 (SAST) From: Jonathan McKeown Organization: Health Systems Trust To: freebsd-questions@freebsd.org Date: Mon, 16 Oct 2006 16:54:49 +0200 User-Agent: KMail/1.7.2 References: <200610152219.47346.jonathan@hst.org.za> In-Reply-To: <200610152219.47346.jonathan@hst.org.za> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610161654.50208.jonathan@hst.org.za> X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on sirian.hst.org.za X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=7.0 tests=BAYES_00 autolearn=ham version=2.61 X-Virus-Scanned: by amavisd-new at hst.org.za Subject: Re: mimedefang with LDAP-enabled sendmail 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: Mon, 16 Oct 2006 14:52:54 -0000 On Sunday 15 October 2006 22:19, Jonathan McKeown wrote: > sendmail -d0.1 -bt > Version 8.13.6 > Compiled with: DNSMAP LDAPMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 > MIME8TO7 NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS > PIPELINING SASLv2 SCANF STARTTLS TCPWRAPPERS USERDB > USE_LDAP_INIT XDEBUG > > When I try to build and install mail/mimedefang from ports (version is > 2.57), I get (modulo wrapping) > > cc -O2 -fno-strict-aliasing -pipe -pthread -o mimedefang mimedefang.o > drop_privs_threaded.o utils.o rm_r.o syslog-fac.o /usr/lib/libmilter.a > -lpthread > > /usr/lib/libmilter.a(errstring.o)(.text+0xd6): In function `sm_errstring': > : undefined reference to `ldap_err2string' The undefined reference is apparently in libmilter.a and it seems (Google again) that the ldap_err2string symbol comes from the openldap library. Is it possible that the build of libmilter is not picking up libldap from /usr/local/lib? Jonathan