From owner-freebsd-stable@freebsd.org Sun May 27 12:49:14 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 2F9F4F7277A for ; Sun, 27 May 2018 12:49:14 +0000 (UTC) (envelope-from antoine.brodin.freebsd@gmail.com) Received: from mail-qt0-x22e.google.com (mail-qt0-x22e.google.com [IPv6:2607:f8b0:400d:c0d::22e]) (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 9E6727F1C8 for ; Sun, 27 May 2018 12:49:13 +0000 (UTC) (envelope-from antoine.brodin.freebsd@gmail.com) Received: by mail-qt0-x22e.google.com with SMTP id h5-v6so3982153qtm.13 for ; Sun, 27 May 2018 05:49:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=VbDDiBG0HTFNb4cL+ZhAP3znXfW9wEuoMVm6Zl8Q+c4=; b=UcafAQjGVDsbY2qsxvG8+efV+9RqgO6RQCH6L00EhO4h1fjNMVvnKYsUhYc4RkTmqJ pqfePyRpmKx/4s8LNhcg6t85K4Gy/CUNsVT9M/9iNQ1ND1vA/VPSjbfJ37sHHUBb9PsA IlXJrcdMBcpCz06u8kzv5pmea7upqpSeLRdS6uY5n4nEiP13l0WmO7Pvq5mnPGVIrUzY Ffx1vgLmK1pHyIea5vNbYu2HL3Do2iHXIiUS2IPetctay4RnKqEGfMw8Bu6ZtwwPfOKf nFAQbGAGsqodI1W796vLxw6b62TVDAq9dFIx/C5t2hOlC8CLAcRt9DK6vY7I7dxg67Ul pmRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=VbDDiBG0HTFNb4cL+ZhAP3znXfW9wEuoMVm6Zl8Q+c4=; b=F9qEFgiB4BB7/Kv1tBh/Qeqt5oeuaiQ6XCx2YS40T85te94BOAcYHDXQ4/QTmGT297 yuaoh55H320dWb9a+KkcdQOBALl1UiCQjfhe0NzuMzVi2O79bfupf8MIxJPVsovVH6PZ 4044u8Dy/WRBQVJ6iEtv8m1rCt1Q0qXE1QMXpXRGSYn5IPy2Qk4CmvPvMmuF+YLd7EGd meiOxAmKByyDXofwaJor8157agzRr/NjDK4YWffdAVlzJS3TELdCqDYbnu68sO1P6Hqs eYMPJlV/hIP4ZEZKooZG0zDHk7mCytX91Ho8Jb2P7aaP1a0uxa93DqNiQpXpmWY2SdWg 7agA== X-Gm-Message-State: ALKqPwd/odPkqYcg4w4j/GSWED9fuCRuFsuA/2soGfY9kyF4Tud3eH91 ULaNQAt9jauL6yaXgdQuCOpQYPBQ+BnBvpDo7BJq1w== X-Google-Smtp-Source: ADUXVKJJ3jdxq/TCVFonTUCMrzHwVJDFC206ETEdPbpSldpq6Xoc/le66R4EZu5K7NxIlYXZN/Oq9CT0E7EUz+32350= X-Received: by 2002:ac8:540b:: with SMTP id b11-v6mr8889520qtq.289.1527425353183; Sun, 27 May 2018 05:49:13 -0700 (PDT) MIME-Version: 1.0 Sender: antoine.brodin.freebsd@gmail.com Received: by 2002:a0c:accf:0:0:0:0:0 with HTTP; Sun, 27 May 2018 05:49:12 -0700 (PDT) In-Reply-To: References: From: Antoine Brodin Date: Sun, 27 May 2018 12:49:12 +0000 X-Google-Sender-Auth: o1LDk3i0YZOgjd4WEtZgHRVuY98 Message-ID: Subject: Re: ldconfig(8) oddity on 11.2-BETA3? To: Jonathan Chen Cc: 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: Sun, 27 May 2018 12:49:14 -0000 On Sat, May 26, 2018 at 10:29 PM, Jonathan Chen wrote: > 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? > Hi, This looks normal, from the ldconfig(8) man page: Filenames must conform to the lib*.so.[0-9] pattern in order to be added to the hints file. Cheers, Antoine