From owner-freebsd-questions@freebsd.org Wed Sep 16 08:00:19 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 558C19C2EFC for ; Wed, 16 Sep 2015 08:00:19 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DBCE81139 for ; Wed, 16 Sep 2015 08:00:18 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (localhost [127.0.0.1]) by mail.cs.ait.ac.th (Postfix) with ESMTP id 8CD74D7882; Wed, 16 Sep 2015 15:00:14 +0700 (ICT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:in-reply-to:subject:subject:from:from :received:received:received; s=selector1; t=1442390413; x= 1444204814; bh=55Kq57u3l9o2dYyjZP2doo6YZSVm9FZvO6p8D7+iiGw=; b=N PLFj5op8/JVO9NFZAZ7cTHeUeu/b4nTK5ShgIsOyutCdVewSxtfAVg81srXwEh9M iBidA+o8+3fH/UUWyInfRzrcPliAc6VaiQi0UBUoYbt4l4498di9xNeTIesY09Zk tVf10yMp3U7+yapq0SkG3hQ/Bv7CbFvq1jwzJpBmCA= X-Virus-Scanned: amavisd-new at cs.ait.ac.th Received: from mail.cs.ait.ac.th ([127.0.0.1]) by mail.cs.ait.ac.th (mail.cs.ait.ac.th [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id H0RzQv5zduFj; Wed, 16 Sep 2015 15:00:13 +0700 (ICT) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cs.ait.ac.th (Postfix) with ESMTPS id 9ED86D7881; Wed, 16 Sep 2015 15:00:13 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.14.7/8.14.7/Submit) id t8G80ACj067998; Wed, 16 Sep 2015 15:00:10 +0700 (ICT) (envelope-from on@banyan.cs.ait.ac.th) From: Olivier Nicole To: Trond =?utf-8?Q?Endrest=C3=B8l?= Cc: kpneal@pobox.com, freebsd-questions@freebsd.org Subject: Re: Problem starting named in FreeBSD 10.2 In-Reply-To: (message from Trond =?utf-8?Q?Endrest=C3=B8l?= on Tue, 15 Sep 2015 16:07:58 +0200 (CEST)) Date: Wed, 16 Sep 2015 15:00:09 +0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Sep 2015 08:00:19 -0000 Trond Endrest=C3=B8l writes: > [1:text/plain Hide] > > On Tue, 15 Sep 2015 09:40-0400, kpneal@pobox.com wrote: > >> On Tue, Sep 15, 2015 at 04:44:43PM +0700, Olivier Nicole wrote: >> > Hi, >> >=20 >> > I am having problems starting named in FreeBSD 10.2. I have been using >> > the exact same rc.d/named script for years, it is still working in Fre= eBSD 10.1 >> >=20 >> > The rc.d/named script contains a REQUIRE line that is not honnorred: >> >=20 >> > # REQUIRE: NETWORKING ldconfig syslogd >>=20 >> Is it possible there is a loop in the dependencies somewhere? I can imag= ine >> breaking a loop by ignoring a REQUIRE line somewhere. > > Try running (sh syntax): > > rcorder /etc/rc.d/* /usr/local/etc/rc.d/* 2>&1 | less > > On one of my DNS servers, I see these lines: > > /etc/rc.d/ipfw > /etc/rc.d/NETWORKING <-- > /etc/rc.d/netwait > /etc/rc.d/mountcritremote > /etc/rc.d/accounting > /etc/rc.d/ldconfig <-- > /etc/rc.d/newsyslog > /etc/rc.d/syslogd <-- > /etc/rc.d/ntpdate > /etc/rc.d/rpcbind > /etc/rc.d/nfsclient > /etc/rc.d/devfs > /etc/rc.d/ipmon > /etc/rc.d/mdconfig2 > /usr/local/etc/rc.d/named <-- > /etc/rc.d/kdc That did the trick. I had an old rc.d/named left there and having both of them created a loop. I removed the old one and it worked. I did not know of rcorder, thank you for th etrick. > If libxml2.so.2 is missing from /usr/local/lib, then check to see if=20 > files named libxml2.so.2.* exists in /usr/local/lib/compat/pkg/. The lib did exist, it was just the loop that prevented ldconfig to be called before named. Thank you, Olivier > In a pinch you might be able to move on by running something like=20 > this: > > ln -s libxml2.so.2.9.2 /usr/local/lib/compat/pkg/libxml2.so.2 > > Substitute libxml2.so.2.9.2 with the newest file as found in=20 > your /usr/local/lib/compat/pkg directory. In my case, I can choose=20 > between libxml2.so.2.9.1 and libxml2.so.2.9.2. > > Next, I would probably reinstall/forcefully upgrade textproc/libxml2. --=20