From owner-freebsd-questions@FreeBSD.ORG Mon Jul 23 19:58:51 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA59916A418 for ; Mon, 23 Jul 2007 19:58:51 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from pizzabox.cyberleo.net (alpha.cyberleo.net [198.145.45.10]) by mx1.freebsd.org (Postfix) with ESMTP id 8EA9613C4E7 for ; Mon, 23 Jul 2007 19:58:51 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: (qmail 92156 invoked from network); 23 Jul 2007 19:58:50 -0000 Received: from adsl-75-3-93-50.dsl.chcgil.sbcglobal.net (HELO ?172.16.44.14?) (cyberleo@cyberleo.net@75.3.93.50) by alpha.cyberleo.net with ESMTPA; 23 Jul 2007 19:58:50 -0000 Message-ID: <46A4F377.4000303@cyberleo.net> Date: Mon, 23 Jul 2007 13:28:48 -0500 From: CyberLeo Kitsana User-Agent: Thunderbird 2.0.0.4 (X11/20070604) MIME-Version: 1.0 To: "Tuc at T-B-O-H.NET" References: <200707231747.l6NHlb9k057131@himinbjorg.tucs-beachin-obx-house.com> In-Reply-To: <200707231747.l6NHlb9k057131@himinbjorg.tucs-beachin-obx-house.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Xorg upgrade (wrong library) issue [more info] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jul 2007 19:58:51 -0000 Tuc at T-B-O-H.NET wrote: > > 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/