Date: Tue, 12 Oct 1999 08:44:13 +0800 (SGT) From: Tan Juay Kwang <jk.tan@pacific.net.sg> To: Sheldon Hearn <sheldonh@uunet.co.za> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: ldconfig_paths Message-ID: <Pine.GSO.4.10.9910120839140.28337-100000@firefox.pacific.net.sg> In-Reply-To: <86370.939640530@axl.noc.iafrica.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 11 Oct 1999, Sheldon Hearn wrote: > > > On Mon, 11 Oct 1999 15:23:23 +0800, Tan Juay Kwang wrote: > > > Hi all, the default rc.conf in /etc/defaults had the line > > ldconfig_paths set to "/usr/lib/compat /usr/X11R6/lib > > /usr/local/lib". However, ld still does not look at /usr/local/lib > > while linking? > > Make sure you don't have settings in /etc/rc.conf which override those > which you found in /etc/defaults/rc.conf . > > Note that there are two search path sets -- one for ELF and one for > AOUT. The controlling variables are ldconfig_paths and > ldconfig_paths_aout. > > Also note that changing these files does not automatically cause > ldconfig to update the hints database. A reboot takes care of this, as > do the following command: > > ldconfig /usr/lib/compat /usr/X11R6/lib /usr/local/lib > ldconfig -aout /usr/lib/compat/aout /usr/X11R6/lib/aout \ > /usr/local/lib/aout > > There may be other directories which are merged into the hints database > by scripts in /usr/local/etc/rc.d . > > Ciao, > Sheldon. > > Hi, it still does not work for me :(. The only place the ldconfig_paths are defined is in /etc/defaults/rc.conf. I've also tried the commands on the command line but ld still does not look into /usr/local/lib. For example, if I have a library called libfoo.a and resides in /usr/local/lib. Doing a 'gcc bar.c -lfoo' will return the message '/usr/libexec/elf/ld: cannot open -lfoo: No such file or directory'. However, if I give gcc the -L/usr/local/lib options, then all goes fine. The problem happens both on 3.1 and 3.2 but not on 2.6 though. Many thanks and best regards, Juay Kwang 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?Pine.GSO.4.10.9910120839140.28337-100000>