Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Sep 2015 15:00:09 +0700
From:      Olivier Nicole <Olivier.Nicole@cs.ait.ac.th>
To:        Trond =?utf-8?Q?Endrest=C3=B8l?= <Trond.Endrestol@fagskolen.gjovik.no>
Cc:        kpneal@pobox.com, freebsd-questions@freebsd.org
Subject:   Re: Problem starting named in FreeBSD 10.2
Message-ID:  <wu7h9mu94l2.fsf@banyan.cs.ait.ac.th>
In-Reply-To: <alpine.BSF.2.20.1509151555550.25579@mail.fig.ol.no> (message from Trond =?utf-8?Q?Endrest=C3=B8l?= on Tue, 15 Sep 2015 16:07:58 %2B0200 (CEST))

next in thread | previous in thread | raw e-mail | index | archive | help
Trond Endrest=C3=B8l <Trond.Endrestol@fagskolen.gjovik.no> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?wu7h9mu94l2.fsf>