From owner-svn-src-head@FreeBSD.ORG Sun Sep 8 11:49:22 2013 Return-Path: Delivered-To: svn-src-head@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 ESMTP id 27865275; Sun, 8 Sep 2013 11:49:22 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id DE27A29C0; Sun, 8 Sep 2013 11:49:21 +0000 (UTC) Received: from nine.des.no (smtp.des.no [194.63.250.102]) by smtp-int.des.no (Postfix) with ESMTP id E886F46FB; Sun, 8 Sep 2013 11:49:20 +0000 (UTC) Received: by nine.des.no (Postfix, from userid 1001) id 57B1C294AA; Sun, 8 Sep 2013 13:48:54 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Konstantin Belousov Subject: Re: svn commit: r255385 - in head/etc: . etc.amd64 References: <201309080946.r889kNSX050568@svn.freebsd.org> <20130908110410.GZ41229@kib.kiev.ua> Date: Sun, 08 Sep 2013 13:48:54 +0200 In-Reply-To: <20130908110410.GZ41229@kib.kiev.ua> (Konstantin Belousov's message of "Sun, 8 Sep 2013 14:04:10 +0300") Message-ID: <86zjrnedp5.fsf@nine.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Sep 2013 11:49:22 -0000 Konstantin Belousov writes: > There is no /lib32 on 64bit platforms. It doesn't exist, but it's supported: #ifdef COMPAT_32BIT #undef STANDARD_LIBRARY_PATH #undef _PATH_ELF_HINTS #define _PATH_ELF_HINTS "/var/run/ld-elf32.so.hints" /* For running 32 bit binaries */ #define STANDARD_LIBRARY_PATH "/lib32:/usr/lib32" #define LD_ "LD_32_" #endif > I do not understand why these pathes are neeeded, since compat32 rtld > has proper default path built in Did you read the log message? I am perfectly aware that the two lines you're complaining about are a no-op; they're included mostly for documentation purposes. However, if the code that uses them was made unconditional (it is currently #ifdef COMPAT_32BIT), these lines would eliminate the need to hardcode a special STANDARD_LIBRARY_PATH in rtld-elf. > but if anything, /lib should be translated to /usr/lib32. Irrelevant, because while rtld-elf won't find anything there it will still find what it's looking for in /usr/lib32. These mappings are *not* applied to individual libraries; they are applied to STANDARD_LIBRARY_PATH, LD_LIBRARY_PATH and the program's or library's run-time search path (-rpath). DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no