From owner-freebsd-arch Wed May 29 13:28:17 2002 Delivered-To: freebsd-arch@freebsd.org Received: from snipe.mail.pas.earthlink.net (snipe.mail.pas.earthlink.net [207.217.120.62]) by hub.freebsd.org (Postfix) with ESMTP id F257337B40F; Wed, 29 May 2002 13:27:47 -0700 (PDT) Received: from pool0344.cvx22-bradley.dialup.earthlink.net ([209.179.199.89] helo=mindspring.com) by snipe.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 17DA2s-000613-00; Wed, 29 May 2002 13:27:47 -0700 Message-ID: <3CF539A3.68FCD21@mindspring.com> Date: Wed, 29 May 2002 13:27:15 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: FreeBSD-arch@FreeBSD.org Cc: Antoine Beaupre , Greg 'groggy' Lehey Subject: Re: Why don't we search /usr/local/lib and /usr/local/include by default? References: <26911A2E-7243-11D6-93A2-0050E4A0BB3F@anarcat.ath.cx> <3CF3DAFB.7C9C5108@mindspring.com> <20020529125122.B2156@dragon.nuxi.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David O'Brien wrote: > > The resulting binaries still do not work, unless LD_LIBRARY_PATH > > is set, or there is an intervening run of "ldconfig". They fail > > to find shared libraries at runtime, installed after boot but > > before link (the libraries are found at link time, just not at > > runtime). > > Terry, the Ports Collection *does* do `ldconfig' after installing shared > libs. We also do have the assumption that "ldconfig_paths" in > /etc/rc.conf is set to match PREFIX. This does nothing if I mount /usr/local from some place else, rather than installing the port locally. Also, we know about the PREFIX/ports interaction. Not all the world's a port. I think the people who were complaining to Greg were Linux wonks who expected FreeBSD to "work like Linux". I can't really get behind Linux setting architectural direction; however... the issue has made the point that there is a differece between library-and-header-file-finding-behaviour at compile, link, and (in the shared library case) run. I don't like that. I'm not claiming to have a golden fix for it, but I'd at least like to know that other people don't like it. 8-). I think I'm pretty much the only one in this thread (besides the Linux wonks) talking about compiling an arbitrary set of sources, NOT in the context of the ports system. PREFIX has some meaning, but it's mostly linked to ports. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message