From owner-freebsd-questions@freebsd.org Tue Sep 15 09:44:56 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 65235A048C3 for ; Tue, 15 Sep 2015 09:44:56 +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 01B3E17C8 for ; Tue, 15 Sep 2015 09:44:55 +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 25106D7889 for ; Tue, 15 Sep 2015 16:44:46 +0700 (ICT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= content-type:content-type:mime-version:message-id:date:date :subject:subject:from:from:received:received:received; s= selector1; t=1442310285; x=1444124686; bh=1ZJQuX9byP6FImjdFh01Ln IS2PZhKt5Mmg6lxboKk8k=; b=JOg1DE5N5WuX8wGuD4c6FlArAoddfPg/ZWay28 Ljo+OTvxsvwqiC1l7Hk9vJcCU+aD1hFNIJiwf4Z70m+zsv/R9yGnLXwFgdmJUfdi j5Fjf5K3ac4iRX0fKqj2Td7+DlrcEeY9STveLkxwDs/YyHMIkkH9HSTtqQNvAopT 2HMwo= 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 Jzob9oDa9FA2 for ; Tue, 15 Sep 2015 16:44:45 +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 09A41D7887 for ; Tue, 15 Sep 2015 16:44:44 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.14.7/8.14.7/Submit) id t8F9iiZG057594; Tue, 15 Sep 2015 16:44:44 +0700 (ICT) (envelope-from on@banyan.cs.ait.ac.th) From: Olivier Nicole To: freebsd-questions@freebsd.org Subject: Problem starting named in FreeBSD 10.2 Date: Tue, 15 Sep 2015 16:44:43 +0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain 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: Tue, 15 Sep 2015 09:44:56 -0000 Hi, 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 FreeBSD 10.1 The rc.d/named script contains a REQUIRE line that is not honnorred: # REQUIRE: NETWORKING ldconfig syslogd on the consle I have the following messages: [...] Starting syslogd. Sep 15 16:02:38 syslogd: hostname nor servname provided, or not known: Bad file descriptor Shared object "libxml2.so.2" not found, required by "named-checkconf" /etc/rc; WARNING; named-checkconf failed for /usr/local/sbin/named-checkconf -t /var/chroot/named /etc/namedb/named.conf Starting named. Shared object "libxml2.so.2" not found, required by "named" /etc/rc; WARNING; failed to start named /etc/rc: WARNING: Ignoring scratch file /etc/rc.d/named~ /etc/rc: WARNING: Ignoring scratch file /usr/local/etc/rc.d/named~ ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/c ompat/pkg /usr/local/lib/compat/pkg /usr/local/lib/gcc48 /usr/local/lib/nss a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout Loading vmmemctl kernel module: VMware memory control driver initialized done. Loading vmxnet kernel module: done. Loading vmblock kernel module: done. Loading vmhgfs kernel module: done. Clearing /tmp (X related). [...] Clearly, named cannot start because it cannot find libxml2.so.2 and it cannot find the library because ldconfig has not been started yet. When the system has finished booting, rc.d/named will start without any problem. What could cause the fact tha ldconfig directive is being ignored (on the dump above, ldcnfig starts *after* named). This is bugging me quite a bit and ideas are welcome. best regards, Olivier --