From owner-freebsd-questions@FreeBSD.ORG Mon Sep 8 16:19:58 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2C275D21 for ; Mon, 8 Sep 2014 16:19:58 +0000 (UTC) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com [209.85.215.50]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A9BCC13A7 for ; Mon, 8 Sep 2014 16:19:56 +0000 (UTC) Received: by mail-la0-f50.google.com with SMTP id ty20so2937155lab.9 for ; Mon, 08 Sep 2014 09:19:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=C6nPB2lhz4/W5yBbaD/AN80HxIHLBpMnu0M5DbNHDxk=; b=AE2BH6TSGyGVVffIhxPJjcFxPxYZqDdk0ZhvrHJFPPjEEtVLSBulKdFjrCGQ5y60sI seqbOq1FkvWj+0P2gSqVOejH9Yo/9yI0Szrf49WLuYgaUWmJdmFKAM4YyLyjcOP+Sejg jHI9q8NrbD156LS2QBFQ4wvxWT3phxhoBHbAm32TQYj+cTCwqRi61ghj49Y0T//HZU4I 0e25vxF2wv8jo6F5V6YG/Cas3DKhwHqQvr6m6UyumYe8GsD5wgAZRtB+O6fmrGCg1xIA pF9/PKYXiAhKY1OGvyjnuRctfMLhWQAGbkCk61W+YPniicx2IiJkf4KdhCm6/gXSJXvg Xvgg== X-Gm-Message-State: ALoCoQlQ0T0V5THSPu6OK3gpMV6rRrbDpV3q8ykG+fJzf3Rmq0VXGapQKr/GSleaD/f24cK8NfaR MIME-Version: 1.0 X-Received: by 10.152.10.41 with SMTP id f9mr30653349lab.25.1410193188695; Mon, 08 Sep 2014 09:19:48 -0700 (PDT) Received: by 10.112.219.106 with HTTP; Mon, 8 Sep 2014 09:19:48 -0700 (PDT) Date: Mon, 8 Sep 2014 18:19:48 +0200 Message-ID: Subject: 8.4 - net/relayd won't start at boot but launches fine from rc.d, complains about missing libs From: Damien Fleuriot To: "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2014 16:19:58 -0000 Hello List, So, I've been stuck on this odd problem for a few days now and reinstalling a fresh host didn't help. /usr/local/sbin/relayd from net/relayd won't start at boot complaining about a missing OpenSSL library. It does start just fine when further invoked with /usr/local/etc/rc.d/relayd start At boot time, dmesg shows : ### dmesg -a Starting relayd. /libexec/ld-elf.so.1: Shared object "libssl.so.8" not found, required by "relayd" /etc/rc: WARNING: failed to start relayd ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib ldconfig correctly shows the incriminated library as per : ### ldconfig -r 91:-lssl.6 => /usr/lib/libssl.so.6 109:-lssl.8 => /usr/local/lib/libssl.so.8 Additionally the relayd binary itself shows what looks like correct linking to the library : ### ldd /usr/local/sbin/relayd /usr/local/sbin/relayd: libmd.so.5 => /lib/libmd.so.5 (0x800678000) libssl.so.8 => /usr/local/lib/libssl.so.8 (0x800788000) libcrypto.so.8 => /usr/local/lib/libcrypto.so.8 (0x8008f0000) libc.so.7 => /lib/libc.so.7 (0x800bdf000) libthr.so.3 => /lib/libthr.so.3 (0x800e18000) pkg info confirms the library was installed by openssl : ### pkg which /usr/local/lib/libssl.so.8 /usr/local/lib/libssl.so.8 was installed by package openssl-1.0.1_14 Thus far, I have tried, to no avail : - entirely reinstall the host - reinstall openssl - reinstall relayd How to fix : ln -s /usr/local/lib/libssl.so.8 /usr/lib/ ln -s /usr/local/lib/libcrypto.so.8 /lib/ ldconfig -r now says : ### ldconfig -r 92:-lssl.6 => /usr/lib/libssl.so.6 108:-lssl.8 => /usr/lib/libssl.so.8 111:-lssl.8 => /usr/local/lib/libssl.so.8 ldd now says : ### ldd /usr/local/sbin/relayd /usr/local/sbin/relayd: libmd.so.5 => /lib/libmd.so.5 (0x800678000) libssl.so.8 => /usr/lib/libssl.so.8 (0x800788000) libcrypto.so.8 => /lib/libcrypto.so.8 (0x8008f0000) libc.so.7 => /lib/libc.so.7 (0x800bdf000) libthr.so.3 => /lib/libthr.so.3 (0x800e18000) The host itself is installed with base openssl + openssl 1.0.1 from ports. Openssl from ports is required by nginx and NRPE so I have to make do with it (and yes, I know it's outdated, this is a test box). Again, relayd starts just fine from /usr/local/etc/rc.d/ when I log into the box, it's just at boot that it won't, without moving symbolic links around. Has anyone else experienced the same issues ? I find the behaviour quite odd and definitely misleading here.