From owner-freebsd-stable@FreeBSD.ORG Thu May 11 10:09:43 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6146B16A413 for ; Thu, 11 May 2006 10:09:43 +0000 (UTC) (envelope-from ftigeot@aoi.wolfpond.org) Received: from aoi.wolfpond.org (gw.zefyris.com [213.41.131.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4943043D6D for ; Thu, 11 May 2006 10:09:30 +0000 (GMT) (envelope-from ftigeot@aoi.wolfpond.org) Received: from aoi.wolfpond.org (localhost [127.0.0.1]) by aoi.wolfpond.org (8.13.4/8.13.4) with ESMTP id k4BA91IM067085; Thu, 11 May 2006 12:09:01 +0200 (CEST) (envelope-from ftigeot@aoi.wolfpond.org) Received: (from ftigeot@localhost) by aoi.wolfpond.org (8.13.4/8.13.4/Submit) id k4BA91h4067084; Thu, 11 May 2006 12:09:01 +0200 (CEST) (envelope-from ftigeot) Date: Thu, 11 May 2006 12:09:00 +0200 From: Francois Tigeot To: Spil Oss Message-ID: <20060511100900.GA65256@aoi.wolfpond.org> References: <5fbf03c20605100358o5c2cab16w4bc34c2e9498e1@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5fbf03c20605100358o5c2cab16w4bc34c2e9498e1@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-stable@freebsd.org Subject: Re: buildworld failure in libexec.mail.local on 6.1 Release X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2006 10:09:43 -0000 On Wed, May 10, 2006 at 12:58:49PM +0200, Spil Oss wrote: > l.s. > > After running cvsup to RELENG_6_1, I started `make buildworld > KERNCONF=BEASTIE61` as per the handbook's '21.4.1 The Canonical Way to > Update Your System' > > In libexec/mail.local I get the following on stderr > /usr/obj/usr/src/tmp/usr/bin/ld: warning: libldap-2.2.so.7, needed by > /usr/local/lib/libsasl.so, not found (try using -rpath or -rpath-link) > /usr/obj/usr/src/tmp/usr/bin/ld: warning: liblber-2.2.so.7, needed by > /usr/local/lib/libsasl.so, not found (try using -rpath or -rpath-link) > /usr/local/lib/libsasl.so: undefined reference to `ldap_get_dn' > /usr/local/lib/libsasl.so: undefined reference to `ldap_unbind' > /usr/local/lib/libsasl.so: undefined reference to `ldap_first_entry' > /usr/local/lib/libsasl.so: undefined reference to `ldap_simple_bind_s' > /usr/local/lib/libsasl.so: undefined reference to `ldap_set_option' > /usr/local/lib/libsasl.so: undefined reference to `ldap_memfree' > /usr/local/lib/libsasl.so: undefined reference to `ldap_init' > /usr/local/lib/libsasl.so: undefined reference to `ldap_search_ext_s' > /usr/local/lib/libsasl.so: undefined reference to `ldap_msgfree' > > >From stdout I had > ===> libexec/mail.local (all) > cc -O2 -pipe -funroll-loops -march=pentium3m > -I/usr/src/libexec/mail.local/../../contrib/sendmail/include -I. > -I/usr/local/include/sasl1 -DSASL -c > /usr/src/libexec/mail.local/../../contrib/sendmail/mail.local/mail.local.c > cc -O2 -pipe -funroll-loops -march=pentium3m > -I/usr/src/libexec/mail.local/../../contrib/sendmail/include -I. > -I/usr/local/include/sasl1 -DSASL -L/usr/local/lib -o mail.local > mail.local.o /usr/obj/usr/src/libexec/mail.local/../../lib/libsm/libsm.a > -lsasl > *** Error code 1 I guess you're trying to use a sendmail compiled with SMTP AUTH support. I have the same problem here. Even though libldap-2.2.so.7 and liblber-2.2.so.7 are in /usr/local/lib and cc has a -L/usr/local/lib flag, ld doesn't find them. Even putting the libraries in /usr/lib doesn't correct this error. -- Francois Tigeot