From owner-freebsd-questions@FreeBSD.ORG Mon Mar 30 00:11:49 2009 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 C1F91106566B for ; Mon, 30 Mar 2009 00:11:49 +0000 (UTC) (envelope-from parv@pair.com) Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com [71.74.56.125]) by mx1.freebsd.org (Postfix) with ESMTP id 7F67F8FC14 for ; Mon, 30 Mar 2009 00:11:48 +0000 (UTC) (envelope-from parv@pair.com) Received: from localhost.hawaii.res.rr.com ([72.130.250.168]) by hrndva-omta03.mail.rr.com with ESMTP id <20090329143904.IBSI15894.hrndva-omta03.mail.rr.com@localhost.hawaii.res.rr.com> for ; Sun, 29 Mar 2009 14:39:04 +0000 Received: from holstein.holy.cow (localhost [127.0.0.1]) by localhost.hawaii.res.rr.com (Postfix) with ESMTP id DA8A432D7 for ; Sun, 29 Mar 2009 04:39:16 -1000 (HST) Received: (from parv@localhost) by holstein.holy.cow (8.13.8/8.13.8/Submit) id n2TEdGBn001374 for freebsd-questions@freebsd.org; Sun, 29 Mar 2009 04:39:16 -1000 (HST) (envelope-from parv@pair.com) X-Authentication-Warning: holstein.holy.cow: parv set sender to parv@pair.com using -f Date: Sun, 29 Mar 2009 04:39:15 -1000 From: Parv To: f-q Message-ID: <20090329143915.GA1331@holstein.holy.cow> Mail-Followup-To: f-q MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: Cleaning up multiplicates in elf ldconfig path 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, 30 Mar 2009 00:11:50 -0000 I am on FreeBSD/i386 6.4-STABLE (around Mar 1, 2009). I failed to find a solution to the (cosmetic) problem of ldconfig path having duplicate directories (dmesg output wrapped for this email) ... ELF ldconfig path: /lib /usr/lib /usr/lib/compat \ /usr/X11R6/lib /usr/local/lib \ /misc/local/lib/compat \ /misc/local/lib/gcc-4.2.4 \ /misc/local/lib/gcc-4.3.3 \ /misc/local/lib/gegl-0.0 \ /misc/local/lib/gnash \ /misc/local/lib/graphviz \ /misc/local/lib/nss \ /misc/local/lib/qt4 \ /misc/local/lib/zsh \ /misc/local/lib/compat /misc/local/lib/gcc-4.2.4 \ /misc/local/lib/gcc-4.3.3 \ /misc/local/lib/gegl-0.0 \ /misc/local/lib/gnash \ /misc/local/lib/graphviz \ /misc/local/lib/nss \ /misc/local/lib/qt4 \ /misc/local/lib/zsh Note that /usr/X11R6 & /usr/local are symbolic links to /misc/local. Is that what is causing the "problem" (since /etc/rc.d/ldconfig reads the default paths of both /usr/X11R6/lib & /usr/local/lib)? If so, is it ok to eliminate the /usr/X11R6 symbolic link? And/Or, is there any other way to remove the multiplicates? I suppose I could stick in /etc/rc.conf this ... ldconfig_paths="/usr/lib/compat /usr/local/lib /usr/local/lib/compat/package" ... but then I would have make sure above does not miss any new paths added to /etc/defaults/rc.conf. Opinions or suggestions? - Parv --