From owner-freebsd-current@FreeBSD.ORG Mon Feb 23 21:53:00 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 711A54F3 for ; Mon, 23 Feb 2015 21:53:00 +0000 (UTC) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (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 4091F652 for ; Mon, 23 Feb 2015 21:52:59 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 63C482094E for ; Mon, 23 Feb 2015 16:44:25 -0500 (EST) Received: from web3 ([10.202.2.213]) by compute1.internal (MEProxy); Mon, 23 Feb 2015 16:44:26 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:x-sasl-enc:from:to :mime-version:content-transfer-encoding:content-type:in-reply-to :references:subject:date; s=smtpout; bh=gpc+wVZl2SSobIf9soIruMXl qqA=; b=KoK8OC8gM3/hr47YhwX1rGTFK2nfX1id+WOe4uU+iWQMMhHNLe4mRP7H daBehX64EQANPtscthcQxFijuVacyXPWBH/UzWhZ1Is6yZtdGLxVEjHgUjm+Y1Bi 3zPMN0NEhq99APBx8yDMz77EvZFGMy2rJ+YRgYeYPW7UZPcrJeg= Received: by web3.nyi.internal (Postfix, from userid 99) id 044F710F910; Mon, 23 Feb 2015 16:44:25 -0500 (EST) Message-Id: <1424727865.2482688.231426709.1C3F0A3A@webmail.messagingengine.com> X-Sasl-Enc: r1aH/ZUFmvdwYXJb12KhzPCGB+gIcfsVzqeFSAYHMm9q 1424727865 From: Mark Felder To: freebsd-current@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-4ba7306c In-Reply-To: References: Subject: Re: Shared object "libsodium.so.13" not found, required by "dnscrypt-proxy" Date: Mon, 23 Feb 2015 15:44:25 -0600 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2015 21:53:00 -0000 On Mon, Feb 23, 2015, at 12:43, Miguel Clara wrote: > I don't think this is a 11-Current issue per say but probalby bad config, > but since I'm using CURRENT I dicided to post to the list. > > When my system boots dnscrypt fails to start with: > > Shared object "libsodium.so.13" not found, required by "dnscrypt-proxy" > > But manual start works without issue, I've resinstalled libsodium and > dnscrypt from ports and I noticed "USE_LDCONFIG= yes" is present in the > Makefile for libsodium, > > Running dmesg -a I see this relvant part: > % dmesg -a | grep dns -A20 > Starting dnscrypt_proxy. > Shared object "libsodium.so.13" not found, required by "dnscrypt-proxy" > /etc/rc: WARNING: failed to start dnscrypt_proxy > Starting local_unbound. > Starting pflogd: > Starting pflog. > pflog0: promiscuous mode enabled > Enabling pfNo ALTQ support in kernel > ALTQ related functions disabled > No ALTQ support in kernel > ALTQ related functions disabled > . > add net fe80::: gateway ::1 > add net ff02::: gateway ::1 > add net ::ffff:0.0.0.0: gateway ::1 > add net ::0.0.0.0: gateway ::1 > add net default: gateway fe80::62a4:4cff:fe28:13c0%wlan0 > Waiting 30s for the default route interface: .....(no carrier) > ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib > /usr/local/lib/compat /usr/local/lib/gcc47 /usr/local/lib/libxul > /usr/local/lib/nss /usr/local/llvm35/lib > 32-bit compatibility ldconfig path: /usr/lib32 /usr/local/lib32/compat > > So it seems that the issue is that ldconfig runs after the service is > started and so when it starts I doens't know about the shared lib (or > where > to look for it) > > How can I fix this behaviour? > If you edit the dnscrypt-proxy rc script to say: # REQUIRE: SERVERS cleanvar ldconfig Does that help?