Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jul 2007 13:28:48 -0500
From:      CyberLeo Kitsana <cyberleo@cyberleo.net>
To:        "Tuc at T-B-O-H.NET" <ml@t-b-o-h.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Xorg upgrade (wrong library) issue [more info]
Message-ID:  <46A4F377.4000303@cyberleo.net>
In-Reply-To: <200707231747.l6NHlb9k057131@himinbjorg.tucs-beachin-obx-house.com>
References:  <200707231747.l6NHlb9k057131@himinbjorg.tucs-beachin-obx-house.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Tuc at T-B-O-H.NET wrote:
> <snip>
> himinbjorg# ldd work/bdftopcf-1.0.1/bdftopcf
> work/bdftopcf-1.0.1/bdftopcf:
> 	libXfont.so.1 => /usr/X11R6/lib/libXfont.so.1 (0x28080000)
> 	libc.so.5 => /lib/libc.so.5 (0x280e6000)
> 
> 	WHY when the cc step is stating -L/usr/local/lib is it bring the
> Xfont from /usr/X11R6/lib?
> 

Because /usr/X11R6 is a symlink to /usr/local, and both appear in the
library path hints, so the first one listed gets used when resolving the
library paths at runtime.

(Hint: 'strings /var/run/ld-elf.so.hints' and 'ldconfig -r')

-- 
Fuzzy love,
-CyberLeo
Furry Peace! - http://www.fur.com/peace/



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?46A4F377.4000303>