From owner-freebsd-questions@FreeBSD.ORG Wed Oct 26 17:39:23 2011 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 82C20106564A for ; Wed, 26 Oct 2011 17:39:23 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from smtp.lamaiziere.net (net.lamaiziere.net [94.23.254.147]) by mx1.freebsd.org (Postfix) with ESMTP id 46AB68FC1A for ; Wed, 26 Oct 2011 17:39:23 +0000 (UTC) Received: from baby-jane.lamaiziere.net (63.9.74.86.rev.sfr.net [86.74.9.63]) by smtp.lamaiziere.net (Postfix) with ESMTPA id 586CBFAA31A5 for ; Wed, 26 Oct 2011 19:39:22 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by baby-jane.lamaiziere.net (Postfix) with ESMTP id B6EBD73141 for ; Wed, 26 Oct 2011 19:39:27 +0200 (CEST) Date: Wed, 26 Oct 2011 19:39:27 +0200 From: Patrick Lamaiziere To: freebsd-questions@freebsd.org Message-ID: <20111026193927.268501ec@davenulle.org> X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.6; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Subject: (8.2) share lib and ldconfig problem. 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: Wed, 26 Oct 2011 17:39:23 -0000 Hello, 8.2 STABLE/i386 I'm hit by something strange. Basically ldconfig does not take care of some libs in /usr/local/lib/compat/pkg By sample I've updated icu (via portupgrade) and libreoffice does not start anymore. $ libreoffice /libexec/ld-elf.so.1: Shared object "libicuuc.so.46" not found, required by "libsvtfi.so" Portgrade did a copy of the lib into /usr/local/lib/compat/pkg and run ldconfig. But the lib does not appear in the listing of the ldconfig cache : # cd /usr/local/lib/compat/pkg/ # ls -m *icu* libicudata.so.46*, libicudata.so.46.1*, libicui18n.so.46.1*, libicuio.so.46.1*, libicule.so.46.1*, libiculx.so.46.1*, libicutest.so.46.1*, libicutu.so.46.1*, libicuuc.so.46.1* # ldconfig -r | grep pkg | grep icu 664:-licudata.46 => /usr/local/lib/compat/pkg/libicudata.so.46 Note that there is only one icu lib in the ldconfig's cache. The one named libicudata.so.46 (which is a copy of libicudata.so.46.1). Questions are : - Why theses libs are not in the ldconfig cache ? - Why a copy named libicudata.so.46 is in the cache and not libicudata.so.46.1? I've checked the permission and ownership of the libs, they are good. I've got also some backups of old libs which are not in the cache too. Any clue? Thanks, regards.