Xorg upgrade (wrong library) issue [more info]

CyberLeo Kitsana cyberleo at cyberleo.net
Mon Jul 23 19:58:51 UTC 2007


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/


More information about the freebsd-questions mailing list