From owner-freebsd-questions@FreeBSD.ORG Tue Oct 28 18:31:34 2008 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 22D481065683 for ; Tue, 28 Oct 2008 18:31:34 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id A5F088FC1E for ; Tue, 28 Oct 2008 18:31:33 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (pD9E2C65C.dip.t-dialin.net [217.226.198.92]) by redbull.bpaserver.net (Postfix) with ESMTP id A37802E0C9; Tue, 28 Oct 2008 19:13:40 +0100 (CET) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 8838C39CEB; Tue, 28 Oct 2008 19:13:37 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id m9SIDZPH096438; Tue, 28 Oct 2008 19:13:35 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from 192.168.2.100 ([192.168.2.100]) by webmail.leidinger.net (Horde Framework) with HTTP; Tue, 28 Oct 2008 19:13:35 +0100 Message-ID: <20081028191335.26152gicr4ni54ys@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Tue, 28 Oct 2008 19:13:35 +0100 From: Alexander Leidinger To: "Daniel O'Connor" References: <200810271411.m9REB6te015188@lurza.secnetix.de> <20081027.090116.-1827344390.imp@bsdimp.com> <200810281018.18786.doconnor@gsoft.com.au> In-Reply-To: <200810281018.18786.doconnor@gsoft.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.3) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: A37802E0C9.91F1B X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-13.994, required 6, BAYES_00 -15.00, MIME_QP_LONG_LINE 1.40, NO_RDNS2 0.01, RDNS_DYNAMIC 0.10, SMILEY -0.50) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No X-Mailman-Approved-At: Tue, 28 Oct 2008 20:44:54 +0000 Cc: pisymbol@gmail.com, olli@lurza.secnetix.de, freebsd-hackers@freebsd.org, wojtek@wojtek.tensor.gdynia.pl, freebsd-questions@freebsd.org, "M. Warner Losh" Subject: RTLD changes for non-native system (was: Re: Why does adding /usr/lib32 to LD_LIBRARY_PATH break 64-bit ?binaries?) 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, 28 Oct 2008 18:31:34 -0000 Quoting Daniel O'Connor (from Tue, 28 Oct 2008 =20 10:18:10 +1030): > On Tuesday 28 October 2008 01:31:16 M. Warner Losh wrote: >> In message: <200810271411.m9REB6te015188@lurza.secnetix.de> >> >> Oliver Fromme writes: >> : Daniel O'Connor wrote: >> : > On Friday 24 October 2008 23:20:59 Peter Jeremy wrote: >> : > > > this will make system trying to bind 32-bit libs to 64-bit >> : > > > program. it can't work >> : > > >> : > > rtld shouldn't attempt to bind 32-bit libs to 64-bit programs. >> : > >> : > The same problem happens with the Linux run time linker - it merrily >> : > tries to link FreeBSD libraries to Linux binaries with predictable >> : > results.. >> : >> : You *can* link Linux libraries with FreeBSD binaries (and >> : vice versa), if the library does not perform any syscalls, >> : e.g. it is a pure computation library or similar. >> : >> : > That said it would be really nice if it ignored incompatible librari= es >> : > :) >> : >> : No. Please don't put such pseudo-cleverness into rtld. >> : It wouldn't be an improvement, in fact it might break some >> : working configurations. >> >> Yes. I have a bunch of printer drivers that I've used that link in >> linux shared libraries... They are in ports... > > Good point.. > The problem is really the Linux linker - it will find a FreeBSD library an= d > try and use it ahead of a Linux one later in the search path - this preven= ts > stuff working :) > > I have this exact problem with libfontconfig and Xilinx ISE. > > Perhaps instead of ignore, use last.. But then it doesn't really matter fo= r > the FreeBSD linker - I imagine I would have to convince Linux folks it's a > good idea. Please ignore for a moment that we are not talking about changing the =20 FreeBSD RTLD anymore: Would it make sense (for us and/or for GNU) to first search for libs =20 for the current system and if none are found to try the others? Bye, Alexander. --=20 There is hardly a thing in the world that some man can not make a little worse and sell a little cheaper. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137