From owner-freebsd-current Sun Jan 17 06:51:29 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA22632 for freebsd-current-outgoing; Sun, 17 Jan 1999 06:51:29 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from janus.syracuse.net (janus.syracuse.net [205.232.47.15]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA22627 for ; Sun, 17 Jan 1999 06:51:28 -0800 (PST) (envelope-from green@unixhelp.org) Received: from localhost (green@localhost) by janus.syracuse.net (8.8.8/8.8.7) with ESMTP id JAA17066; Sun, 17 Jan 1999 09:51:13 -0500 (EST) Date: Sun, 17 Jan 1999 09:51:12 -0500 (EST) From: Brian Feldman X-Sender: green@janus.syracuse.net To: Igor Shulgin cc: FreeBSD-current Subject: Re: Running old program on 3.0-RELEASE In-Reply-To: <003301be4226$21772740$870636c3@igorsh.garural.chel.su> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 17 Jan 1999, Igor Shulgin wrote: > I recently installed 3.0-RELEASE on existing 2.1.0-RELEASE. > After that one program does not run any more. > That program is being invoked by Apache daemon (now I use Apache 1.2.6 from > 3.0-RELEASE/packages) and is needed for access to some special part of our > WWW-server. After attempt of invocation this program accordingly to user's > action next message appears in /var/log/httpd-error.log : > "ld.so failed: Can't find shared library "libg++.so.3.0"" > User is seeing message "500 Internal Server Error" on his screen. > I have no influence on author of program mentioned above to prompt him to > recompile his program on 3.0-RELEASE. As I know this program successful works > on pack of 2.1.x and 2.2.x systems. > > I run "ldconfig -r" and not found "libg++.so.3.0" in list. > File /usr/lib/libg++.so.3.0 exist but have old date "Nov 16 1995" because > this file remained from old version. There is new file > /usr/lib/compat/libg++.so.3.0 with date "Oct 16 1997". There is line > ldconfig_paths="/usr/lib/compat /usr/X11R6/lib /usr/local/lib" > in file /etc/rc.conf and I see messages at rebooting about successful running > ldconfig on these directories. > Output of "ldconfig -r" has 1st and 2nd line: > "/var/run/ld-elf.so.hints > searching directories: /usr/lib:/usr/lib/compat:/usr/local/lib " > But there are not files from /usr/lib/compat in list. > > Is something incorrectly installed in my system? > Should I remove all files from /usr/lib with date "16 Nov 1995" and earlier? > Must I remove directory /usr/lib before any installation newer version above > older? > > Thanks in advance. All old /usr/lib files need to be moved to /usr/lib/compat or /usr/lib/aout. /usr/lib/compat is the better place because it contains OLD, not current, libs. Hint: do NOT save the archives "libfoo.a", they're for building new static executables, and you don't want to replace your much more current ars. Did you even try installing "compat21 compat22 compat1x" etc? > > --- With good wishes, > Igor Shulgin > Brian Feldman _ __ ___ ___ ___ green@unixhelp.org _ __ ___ | _ ) __| \ http://www.freebsd.org/ _ __ ___ ____ | _ \__ \ |) | FreeBSD: The Power to Serve! _ __ ___ ____ _____ |___/___/___/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message