From owner-freebsd-stable@freebsd.org Sun May 27 19:23:24 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 4F5D1F7DA6E for ; Sun, 27 May 2018 19:23:24 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) (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 A9F5A6A706 for ; Sun, 27 May 2018 19:23:22 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: by mail-wm0-x236.google.com with SMTP id q4-v6so21030879wmq.1 for ; Sun, 27 May 2018 12:23:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chen-org-nz.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ad+d5j7XH/zH7v+lrn0Eqm3+BrrwkT+nIDso8WHDfKg=; b=gbXLdGqCeM3IHx4vV2XwFlspUxkxcpcNkyLTSzvjBi1+pGzIDRPxvwwHIje27rIjjP kVpVw6azkRYWiLhXPwfwRzW8++aFsRzutKQ8z66ZecuH6YnsP200ZMpRjXNxgR/9ZWup VK6NjcHHLcZyf9crWn4jtU8P7i6AMSSFOf7cPH726E5fphZOwN6EZuf+/9jxA1IHty9G yvbISKj7eavICDC6IjMK5VQymf+Wmpeg1pd8Huf2xNEBBf7Tf4epFCeHqjYXG94S/bDo SLeeQ21TN31S1OsQml+I4IoemBhpTnEnsurXJJxNLP56qOskPHoLmqzZ71GTN2JCfcQU 9N7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ad+d5j7XH/zH7v+lrn0Eqm3+BrrwkT+nIDso8WHDfKg=; b=kx+oV7BYiFDnplvKEgiBAnJK9EfgA/Pw+U7D9rEdqLiXkGLO7vUlGylEaCR1PZd1MC CXmNjeIZYRcjSYcDWGAwLN6CwoFbJjIItIiP1UkogAzeF//9EeDCc2dEzupsEHf/FrP3 hFJBCIJ35N8jl/GpfQ+LPLFGkz0+MIjvIxf6s/3hq0oX2oKnxydFyqIMDrwpd8HrUm0E aD9azALtMOJBOVK4w7YdCbhBXJga+gupTIbyZaKmDNcy+l+Ah4U+9vFML8SmRHTFgJ0E COm1p+PpH8feCuusGNsQpha2JOhdMJ83IAsXfz5mlQG0jSV+/Xeg+sMwqrEgLPUJAvvA NAvQ== X-Gm-Message-State: ALKqPwfOvsa1wT51351MBVhxVE8l+RTeh1r2vnHld2KMgFpWlP9vWt4E cuiXRbvTSsBhANHghZ6QNO9hkLhFkvSQ2+jFoE8Tpg== X-Google-Smtp-Source: AB8JxZryt/UmOV2P6bt/BLTPLSorOGcHsPLg6rT/oynxssTqP960usnSIDVzq4mfOKVzHTN0v7Vkwfpbu7/Z9xnn7zU= X-Received: by 2002:a50:8fc3:: with SMTP id y61-v6mr11967808edy.11.1527449001768; Sun, 27 May 2018 12:23:21 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a50:d809:0:0:0:0:0 with HTTP; Sun, 27 May 2018 12:23:21 -0700 (PDT) X-Originating-IP: [203.99.129.1] In-Reply-To: <20180527154219.GR88128@kib.kiev.ua> References: <20180527154219.GR88128@kib.kiev.ua> From: Jonathan Chen Date: Mon, 28 May 2018 07:23:21 +1200 Message-ID: Subject: Re: ldconfig(8) oddity on 11.2-BETA3? To: Konstantin Belousov Cc: Antoine Brodin , 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 19:23:24 -0000 On 28 May 2018 at 03:42, Konstantin Belousov wrote: > On Sun, May 27, 2018 at 12:49:12PM +0000, Antoine Brodin wrote: [...] >> 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. > For ELF executable format, ld-elf.so.hints only contains the configured > library path. Dynamic linker reads the directories specified there, for > typical loading of the library for normally configured case. > > ldconfig -r does the same, but additionally filters the output by the > lib.*\.so\.[0-9]+ patern. Dynamic linker does not filter and uses the > name from DT_NEEDED as is. Thanks for the explanation, guys. Cheers. -- Jonathan Chen