Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Apr 2023 11:37:31 +0100
From:      Mike Clarke <jmc-freebsd2@milibyte.co.uk>
To:        FreeBSD questions <freebsd-questions@freebsd.org>
Subject:   Problem with left over files from earlier releases
Message-ID:  <7898912.iDzAj6rjnq@curlew>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

--nextPart2031495.x0N0T6uNKo
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="UTF-8"

After the latest round of package upgrades sysutils/vm-bhyve and graphics/digikam failed 
to start with the error:

ld-elf.so.1: /usr/lib/libelf.so.1: version ELFUTILS_1.0 required by /usr/local/lib/libdw.so.1 not 
found

Digging around for libelf.so I found:

curlew:/home/mike% locate libelf.so.1
/usr/lib/libelf.so.1
/usr/local/lib/libelf.so.1
curlew:/home/mike% ls -l /usr/lib/libelf.so.1 /usr/local/lib/libelf.so.1
-r--r--r--  1 root  wheel  90760 30 Apr  2016 /usr/lib/libelf.so.1
lrwxr-xr-x  1 root  wheel     15  2 Apr 02:42 /usr/local/lib/libelf.so.1@ -> libelf-0.187.so

It looks like seven year old /usr/lib/libelf.so.1 is left over from an old version. Booting from 
a memstick image confirms there is no /usr/lib/libelf.so.1 in 'out of the box' FreeBSD 13.1 
so I deleted it and both programs worked. But this makes me wonder how many 
redundant old files might be lying around in the base system and potentially causing 
problems. Is there any easy way to track these down other than doing a fresh install from 
scratch? Since I'm intending to upgrade to 13.2 soon this could be a good time to see if 
there's more redundant stuff to clean out.

-- 
Mike Clarke

--nextPart2031495.x0N0T6uNKo
Content-Transfer-Encoding: 7Bit
Content-Type: text/html; charset="UTF-8"

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">After the latest round of package upgrades sysutils/vm-bhyve and graphics/digikam failed to start with the error:</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">ld-elf.so.1: /usr/lib/libelf.so.1: version ELFUTILS_1.0 required by /usr/local/lib/libdw.so.1 not found</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Digging around for libelf.so I found:</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">curlew:/home/mike% locate libelf.so.1</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">/usr/lib/libelf.so.1</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">/usr/local/lib/libelf.so.1</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">curlew:/home/mike% ls -l /usr/lib/libelf.so.1 /usr/local/lib/libelf.so.1</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">-r--r--r--&nbsp; 1 root&nbsp; wheel&nbsp; 90760 30 Apr&nbsp; 2016 /usr/lib/libelf.so.1</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">lrwxr-xr-x&nbsp; 1 root&nbsp; wheel&nbsp;&nbsp;&nbsp;&nbsp; 15&nbsp; 2 Apr 02:42 /usr/local/lib/libelf.so.1@ -&gt; libelf-0.187.so</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">It looks like seven year old /usr/lib/libelf.so.1 is left over from an old version. Booting from a memstick image confirms there is no /usr/lib/libelf.so.1 in 'out of the box' FreeBSD 13.1 so I deleted it and both programs worked. But this makes me wonder how many redundant old files might be lying around in the base system and potentially causing problems. Is there any easy way to track these down other than doing a fresh install from scratch? Since I'm intending to upgrade to 13.2 soon this could be a good time to see if there's more redundant stuff to clean out.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">-- </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Mike Clarke</p>
</body>
</html>
--nextPart2031495.x0N0T6uNKo--






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