From owner-freebsd-questions@FreeBSD.ORG Fri Dec 26 06:48:11 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97E5D16A4CE for ; Fri, 26 Dec 2003 06:48:11 -0800 (PST) Received: from be-well.no-ip.com (lowellg.ne.client2.attbi.com [66.30.200.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D97443D3F for ; Fri, 26 Dec 2003 06:48:10 -0800 (PST) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: by be-well.no-ip.com (Postfix, from userid 1147) id 1703266; Fri, 26 Dec 2003 09:48:10 -0500 (EST) Sender: lowell@be-well.ilk.org To: jesse@wingnet.net References: From: Lowell Gilbert Date: 26 Dec 2003 09:48:09 -0500 In-Reply-To: Message-ID: <44fzf7r5xy.fsf@be-well.ilk.org> Lines: 49 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions@freebsd.org Subject: Re: dynamic link problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Dec 2003 14:48:11 -0000 Jesse Guardiani writes: > I've got an old copy of Wordperfect (now deleted from ports) that I use at work. > > When I run the program, I get this output: > > % xwp > /usr/local/lib/corel/wpbin/xwp: can't load library 'libXt.so.6' > Exit 16 > > Obviously a dynamic link problem, so I run ldd on it: > > % ldd -a /usr/local/lib/corel/wpbin/xwp > libXt.so.6 => not found > libX11.so.6 => not found > libXpm.so.4 => not found > libm.so.5 => not found > libc.so.5 => /usr/lib/libc.so.5 (0x28749000) > > OK. Fair enough. It can't find the first four libraries. > But why? libXt.so.6 is listed by ldconfig: > > % ldconfig -r | grep libXt.so.6 > 140:-lXt.6 => /usr/X11R6/lib/libXt.so.6 > > So are the other three: > > % ldconfig -r | grep libX11.so.6 > 162:-lX11.6 => /usr/X11R6/lib/libX11.so.6 > > % ldconfig -r | grep libXpm.so.4 > 143:-lXpm.4 => /usr/X11R6/lib/libXpm.so.4 > > % ldconfig -r | grep libm.so.5 > 712:-lm.5 => /usr/compat/linux/usr/i486-linux-libc5/lib/libm.so.5 > > So how do I fix this? If I recall correctly, that was a Linux program. So you need all of the libraries to exist under the Linux compatibility tree. Make sure you've got linux_base installed, and if some of the libraries aren't in there, take directory-tree hints from the ones that are. Good luck. -- Lowell Gilbert, embedded/networking software engineer, Boston area: resume/CV at http://be-well.ilk.org:8088/~lowell/resume/ username/password "public"