From owner-freebsd-questions Fri Jan 3 20:46:13 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9935537B401 for ; Fri, 3 Jan 2003 20:46:12 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F3E843ED4 for ; Fri, 3 Jan 2003 20:46:12 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.6/8.12.6) id h044k1kF076935; Fri, 3 Jan 2003 22:46:01 -0600 (CST) (envelope-from dan) Date: Fri, 3 Jan 2003 22:46:01 -0600 From: Dan Nelson To: Justin Hopper Cc: Matthew Emmerton , freebsd-questions@FreeBSD.ORG Subject: Re: Mysterious problem with ldconfig and ld Message-ID: <20030104044600.GB4996@dan.emsphone.com> References: <1041652526.27245.29.camel@home.gusalmighty.com> <004001c2b3a6$b3c4fe10$1200a8c0@gsicomp.on.ca> <1041654912.27258.36.camel@home.gusalmighty.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1041654912.27258.36.camel@home.gusalmighty.com> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.3i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Jan 03), Justin Hopper said: > Hmmm, I guess I just assumed that since ldconfig had cached the > absolute path to the library, ld would not need to know the library > path as well, but for some reason it did. > > What ultimately fixed the problem was hardcoding the -L > /usr/local/lib in the configure script, since it refused to pick up > that directory any other way. > > Thanks for your help. As a point of curiosity, I'd still like to > know why ld would still need the -L /usr/local/lib if the full path > to the library is already in the cache? what cache? ld and the run-time linker are separate entities and share no inrofmation. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message