Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Aug 2002 09:29:28 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Ken <ken@carnahan.ws>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Error message
Message-ID:  <20020807082928.GC31679@happy-idiot-talk.infracaninophi>
In-Reply-To: <000701c23dae$0b029e40$2cc8010a@palacasino.com>
References:  <000701c23dae$0b029e40$2cc8010a@palacasino.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Aug 06, 2002 at 06:02:02PM -0700, Ken wrote:

> I see this error when I try to execute a program. (not all, just some)
> Is this something I can just download somewhere or io I need to build it or
> replace a certain library? I have a fresh install of Freebsd 4.5
> 
> /usr/libexec/ld-elf.so.1: Shared object "libc.so.3" not found

That's the libc.so from FreeBSD 3.x, which you need to support any
applications originally installed under 3.x and certain ports
typically available only as binaries.

You can install this library as /usr/lib/compat/libc.so.3 by setting

    COMPAT3X=     yes

in /etc/make.conf and going through a {build,install}world cycle or
(in theory) by installing the misc/compat3x port. However, that port
is marked "Forbidden" at the moment as a consequence of the resolver
buffer overflows detailed in FreeBSD-SA-02:28.resolv

If you have a lot of ports linked against libc.so.3 which refuse to
work, you can probably fix them by reinstalling.  Suppose you get your
'Shared object not found' message when trying to execute
/usr/X11R6/bin/xscreensaver: identify the package that the binary
belongs to:

    happy-idiot-talk:~:% pkg_info -W /usr/X11R6/bin/xscreensaver 
    /usr/X11R6/bin/xscreensaver was installed by package xscreensaver-4.05

and then delete and reinstall it.  If you've installed portupgrade,
that's just:

    portupgrade -f xscreensaver-\*

otherwise to build from ports you'll have to do:

    pkg_delete -f xscreensaver-4.05
    cd /usr/ports/x11/xscreensaver
    make install

and probably at the end:

    make clean

If you're the sort of person who prefers packages to ports, it's:

    pkg_delete -f xscreensaver-4.05
    pkg_add -r xscreensaver 

Of course, you should make sure to backup or preserve in some way any
local configuration or customizations you've applied to any package
before you reinstall it.  Be aware that you may need to update
packages in dependency order, which can be a chore but that
portupgrade will handle automatically for you.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
Tel: +44 1628 476614                                  Marlow
Fax: +44 0870 0522645                                 Bucks., SL7 1TH UK

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020807082928.GC31679>