Re: Error message

[ Available lists | Index of freebsd-questions | Month of Aug 2002 | Week of 7 Aug 2002 | Raw email | View thread | Wrap long lines | Reply ]
From
Matthew Seaman <m.seaman@infracaninophile.co.uk>
Date
7 Aug 2002 01:29:58
Subject
Re: Error message
Message-ID
20020807082928.GC31679@happy-idiot-talk.infracaninophi

In reply to
References to

[ Hide this part ]
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



Elapsed time: 0.111 seconds