From owner-freebsd-questions@FreeBSD.ORG Thu May 24 05:26:51 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 30D9216A41F for ; Thu, 24 May 2007 05:26:51 +0000 (UTC) (envelope-from on@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.freebsd.org (Postfix) with ESMTP id AA15313C447 for ; Thu, 24 May 2007 05:26:50 +0000 (UTC) (envelope-from on@cs.ait.ac.th) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) by mail.cs.ait.ac.th (8.13.1/8.12.11) with ESMTP id l4O5Qlip026407 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 24 May 2007 12:26:47 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.13.3/8.12.11) id l4O5QlZE040167; Thu, 24 May 2007 12:26:47 +0700 (ICT) Date: Thu, 24 May 2007 12:26:47 +0700 (ICT) Message-Id: <200705240526.l4O5QlZE040167@banyan.cs.ait.ac.th> From: Olivier Nicole To: freebsd-questions@freebsd.org X-Virus-Scanned: on CSIM by amavisd-milter (http://www.amavis.org/) Subject: 2 problems with shared libraries 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: Thu, 24 May 2007 05:26:51 -0000 Hi, I have the two following problems: 1) $ ldconfig -r | grep libqt-mt.so.3 102:-lqt-mt.3 => /usr/X11R6/lib/libqt-mt.so.3 $ ldd colorseg colorseg: libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x28279000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x282e2000) libpng.so.3 => /usr/lib/libpng.so.3 (0x28300000) libdpstk.so.1 => /usr/X11R6/lib/libdpstk.so.1 (0x28323000) libdps.so.1 => /usr/X11R6/lib/libdps.so.1 (0x2832b000) libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x28374000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x283c7000) libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x283d7000) libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x283e0000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x283f8000) libz.so.1 => /usr/lib/libz.so.1 (0x284f4000) libpthread.so.0 => /lib/obsolete/linuxthreads/libpthread.so.0 (0x28507000) libqt-mt.so.3 => not found libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x2855b000) libm.so.6 => /lib/obsolete/linuxthreads/libm.so.6 (0x28614000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x2863a000) libc.so.6 => /lib/obsolete/linuxthreads/libc.so.6 (0x28644000) libdl.so.2 => /lib/libdl.so.2 (0x28763000) /lib/ld-linux.so.2 (0x2825a000) Why libqt-mt.so.3 is not found while it is listed by ldconfig? Colorseg is a Linux executable that I got without source. 2nd question: while playing around with ldconfig, I think I erased the list of directories that are used to find the shared lib. Is there a way to reconstruct this list of directories? Or I should grab my backup and restore /var/run/ld-elf.so.hints? best regards, Olivier