From owner-freebsd-questions Sat Jan 4 0:34:47 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 867BE37B401 for ; Sat, 4 Jan 2003 00:34:44 -0800 (PST) Received: from spry.com (spry.com [66.228.209.63]) by mx1.FreeBSD.org (Postfix) with SMTP id 153A743EDC for ; Sat, 4 Jan 2003 00:34:44 -0800 (PST) (envelope-from jhopper@spry.com) Received: (qmail 95202 invoked from network); 4 Jan 2003 08:30:13 -0000 Received: from spry.com (HELO 12-229-197-18.client.attbi.com) (jhopper@spry.com@66.228.209.63) by spry.com with SMTP; 4 Jan 2003 08:30:13 -0000 Subject: Re: Mysterious problem with ldconfig and ld From: Justin Hopper To: freebsd-questions@FreeBSD.ORG In-Reply-To: <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> <20030104044600.GB4996@dan.emsphone.com> Content-Type: multipart/mixed; boundary="=-7LjeqLMdzoNuU6EOyX1Q" Organization: Message-Id: <1041669120.27256.43.camel@home.gusalmighty.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 04 Jan 2003 00:32:00 -0800 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 --=-7LjeqLMdzoNuU6EOyX1Q Content-Type: text/plain Content-Transfer-Encoding: 7bit When running ldconfig, it saves the information in the /var/run/ld-elf.so.hints file, and I assume that ld should then know where libraries are located, since they are in this cache file. So when running: ld -lexpat, why did ld not know the location of the expat library, when it is in the cache (hints) file? -- Justin Hopper jhopper@spry.com UNIX Systems Engineer http://www.spry.com --=-7LjeqLMdzoNuU6EOyX1Q Content-Disposition: inline Content-Description: Forwarded message - Re: Mysterious problem with ldconfig and ld Content-Type: message/rfc822 Return-Path: Delivered-To: jhopper@spry.com Received: (qmail 68704 invoked from network); 4 Jan 2003 04:41:54 -0000 Received: from dan.emsphone.com (root@199.67.51.101) by spry.com with SMTP; 4 Jan 2003 04:41:54 -0000 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 Content-Transfer-Encoding: 7bit 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 --=-7LjeqLMdzoNuU6EOyX1Q-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message