From owner-freebsd-stable@freebsd.org Sat May 26 22:30:00 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A26EAEF96F0 for ; Sat, 26 May 2018 22:30:00 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2A45D83BE4 for ; Sat, 26 May 2018 22:29:59 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: by mail-wm0-x233.google.com with SMTP id a8-v6so22825983wmg.5 for ; Sat, 26 May 2018 15:29:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chen-org-nz.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=ncbJ5W/kCa47ztQB1JD4r+kknVLfNEa/S1y8NYMr5jk=; b=XxsOERRPmaYed3Q/8mKHidzD6EzTZ+8Mr1FISJxxNsL4QwFJ2lW2dUNHYduA9DAXIK WsCeBNLAYJmZTuOkAbusNyCqSyjSSeFyz90xKSU9qzH/C8TMcwYM2GZmaLT26SlOiPNE Mch9sxiokXaRCa1AfFFjWszhx/eFIX+pNFMjFzWbgnyKsVSIi2KSzsoBgXJstjetmbDJ p7LObA8V2jwJn+iAh6MphkqFS82PfjBy054Sy1rDOyQIDE+QUjeW0sJFoj2CJJuFmmRd J4kpDs6bhaLDSWx1oe6fTU/9gXu2JtrD1IRAY02cR2MXQoBnK4qHJPUjF2OC8SG56x8J e0KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ncbJ5W/kCa47ztQB1JD4r+kknVLfNEa/S1y8NYMr5jk=; b=Lr2LSAmTCLjxEm80BhnqNI1bh4+f30428IKRT6bTV+UoePtA2affDMb9Jdu/6h8SgE FNTzD25x8vhKY5lfd1p2o4ey//sG6fzl+tyvd1nAUiZMExRl+2+M+VV36otSp/PFE00S tYTlgrXFpIxiPDM2pVS2N3JNs71CdPg+cEA7zdAbM6jSNu8iDTeVbJjDKypnLT189YqW fDjvgtD76pF6JoSVzPtnZk7KOLrCCLGaDX+2f63wMa/xeudD88Wi7ILOaBw19vGO723W +KpSaaAKrltYJvFC/DPFn8GR8oHQ4GmsWm97iB/26dE62hmKc7E4v1Swvu5pjS2d6SGY KZvg== X-Gm-Message-State: ALKqPwfq3I7lt1oTjCQiXmh6eCC1F9aDCwVmOI/w+ZnrrNM4eaZYtBQU mfhebHhEdYBzf1FeNfDjLALBzj+YR4Vbw4k1IsLGqyIS X-Google-Smtp-Source: AB8JxZp5+C1AwL2uYIhVZ8LQUyM5k42cK2Sm8jnrm2Cux3WMem8IMHJHYrYsp2VvGvC7IG27AWEu2Rdh2wTqlro/HSE= X-Received: by 2002:a50:cb8a:: with SMTP id k10-v6mr8526385edi.205.1527373796973; Sat, 26 May 2018 15:29:56 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a50:d809:0:0:0:0:0 with HTTP; Sat, 26 May 2018 15:29:56 -0700 (PDT) X-Originating-IP: [150.107.174.214] From: Jonathan Chen Date: Sun, 27 May 2018 10:29:56 +1200 Message-ID: Subject: ldconfig(8) oddity on 11.2-BETA3? To: freebsd-stable@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 May 2018 22:30:00 -0000 Hi, I'm running 11.2-BETA3/amd64 at r334236, and I've noticed that "ldconfig -m" doesn't behave as expected (or perhaps it's my understanding). This is what I'm seeing when building security/nss in a chrooted environment: # ldconfig -r | grep nss # ls /usr/local/lib/nss libcrmf.a libnss3.so libnssutil3.so libssl3.so libfreebl3.so libnssckbi.so libsmime3.so libfreeblpriv3.so libnssdbm3.so libsoftokn3.so # ldconfig -m /usr/local/lib/nss # ldconfig -r | grep nss search directories: /lib:/usr/lib:/usr/local/lib:/usr/local/lib/perl5/5.26/mach/CORE:/usr/local/lib/nss # ldconfig -R | grep nss # ldconfig -r | grep nss search directories: /lib:/usr/lib:/usr/local/lib:/usr/local/lib/perl5/5.26/mach/CORE:/usr/local/lib/nss # file /usr/local/lib/nss/*.so /usr/local/lib/nss/libfreebl3.so: ELF 64-bit LSB shared object, x86-64, version 1 (FreeBSD), dynamically linked, stripped /usr/local/lib/nss/libfreeblpriv3.so: ELF 64-bit LSB shared object, x86-64, version 1 (FreeBSD), dynamically linked, stripped /usr/local/lib/nss/libnss3.so: ELF 64-bit LSB shared object, x86-64, version 1 (FreeBSD), dynamically linked, stripped /usr/local/lib/nss/libnssckbi.so: ELF 64-bit LSB shared object, x86-64, version 1 (FreeBSD), dynamically linked, stripped /usr/local/lib/nss/libnssdbm3.so: ELF 64-bit LSB shared object, x86-64, version 1 (FreeBSD), dynamically linked, stripped /usr/local/lib/nss/libnssutil3.so: ELF 64-bit LSB shared object, x86-64, version 1 (FreeBSD), dynamically linked, stripped /usr/local/lib/nss/libsmime3.so: ELF 64-bit LSB shared object, x86-64, version 1 (FreeBSD), dynamically linked, stripped /usr/local/lib/nss/libsoftokn3.so: ELF 64-bit LSB shared object, x86-64, version 1 (FreeBSD), dynamically linked, stripped /usr/local/lib/nss/libssl3.so: ELF 64-bit LSB shared object, x86-64, version 1 (FreeBSD), dynamically linked, stripped Is this correct ldconfig behaviour or has something broken? Cheers. -- Jonathan Chen