From owner-freebsd-questions@FreeBSD.ORG Tue Sep 1 18:04:41 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 411AF1065693 for ; Tue, 1 Sep 2009 18:04:41 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-bw0-f206.google.com (mail-bw0-f206.google.com [209.85.218.206]) by mx1.freebsd.org (Postfix) with ESMTP id BBB6F8FC15 for ; Tue, 1 Sep 2009 18:04:40 +0000 (UTC) Received: by bwz2 with SMTP id 2so181512bwz.43 for ; Tue, 01 Sep 2009 11:04:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=9XrjMZ9yXti4MnLccV0i0zhGTFT07RKz2S0GFJT8oW0=; b=CtG7ftP8ccmUIrL3rH9d2jm1+SNdUT7t+Z85WdWEl7Hc23LJN/2P8a8vD2nm3aU158 gz+HnZGfZMEmQuU85AskALh0wvaoHllkCmEPzQdvHOizSWRI7zHiyZ9QsTPMMqs5rn2d mJAOnqBj1+AKcykyi5wFSPUnNjvJ0JE71JAHw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=GT10ZNabwdZbWK3z5XatwLzYtfTZPKirJjKSmar4UUSwF27ybXlOhrDqbMUfBPofm4 pvkNBHRzwwE14VVMtrf47tWnz+ubgmj476onEgyV0R/BubC1CMl7CYTwce5FpgVu/Tl+ 52Tw4IU3Sj/TZQRqB7M/1kkG/kCtoIJAtNx7U= MIME-Version: 1.0 Received: by 10.239.182.164 with SMTP id q36mr607438hbg.87.1251828279351; Tue, 01 Sep 2009 11:04:39 -0700 (PDT) In-Reply-To: References: <80f4f2b20909010644j7962dc4cub71e725d083072ef@mail.gmail.com> <20090901155059.GA56945@slackbox.xs4all.nl> <80f4f2b20909010940u460a7b81r6372f48690ac1246@mail.gmail.com> Date: Tue, 1 Sep 2009 18:04:39 +0000 Message-ID: From: "b. f." To: Jim Content-Type: text/plain; charset=ISO-8859-1 Cc: Roland Smith , freebsd-questions@freebsd.org Subject: Re: 32 bit ports on an AMD64 system X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2009 18:04:41 -0000 On 9/1/09, b. f. wrote: >. If you > don't use a jail ... well, I have not tried to install a large number > of 32-bit and 64-bit ports in parallel, so I am not sure if the > default setup for our loader will make the appropriate distinctions > between 32-bit and 64-bit versions of the same libraries depending > upon the executables or libraries that need them, but I think that > there is a good chance that it will not, and that you will have to do > some extra work to make sure that it does. In the case that it does > not, your only alternative is to either patch a large number of ports > (very time-consuming and error-prone), or to add loader environment > variables to your 32-bit shell scripts to make the loader look in the > 32-bit library directories first, or to write a custom loader script > to only load the appropriate libraries depending upon whether the > executable or library that needs them is 32-bit or 64-bit. It would Ok, so maybe I was a bit too pessimistic here, and the framework that is already in place to handle the 32-bit-only ports will suffice to deal with the case of parallel installs of 32-bit and 64-bit ports libraries as well, provided that ldconfig is invoked with the proper options when registering the libraries, so that the right hints are available, and the ports are built properly. If you are content to use 32-bit binaries on top of a 64-bit base system, try it out on a test case first -- some of the diagnostic environment variables listed in rtld(1) may help, along with ldd(1). It still seems like more trouble than it is worth to me, though. b.