Date: 04 Jan 2003 00:32:00 -0800 From: Justin Hopper <jhopper@spry.com> To: freebsd-questions@FreeBSD.ORG Subject: Re: Mysterious problem with ldconfig and ld Message-ID: <1041669120.27256.43.camel@home.gusalmighty.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-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: <dan@dan.emsphone.com> 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 <dnelson@allantgroup.com> To: Justin Hopper <jhopper@spry.com> Cc: Matthew Emmerton <matt@gsicomp.on.ca>, 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1041669120.27256.43.camel>