From nobody Wed Apr 19 10:37:31 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q1cgV3g16z45Hx6 for ; Wed, 19 Apr 2023 10:37:42 +0000 (UTC) (envelope-from jmc-freebsd2@milibyte.co.uk) Received: from cp160176.hpdns.net (cp160176.hpdns.net [91.238.160.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q1cgT0JK8z3QSy for ; Wed, 19 Apr 2023 10:37:40 +0000 (UTC) (envelope-from jmc-freebsd2@milibyte.co.uk) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=milibyte.co.uk header.s=default header.b=k8Yi28nx; spf=pass (mx1.freebsd.org: domain of jmc-freebsd2@milibyte.co.uk designates 91.238.160.176 as permitted sender) smtp.mailfrom=jmc-freebsd2@milibyte.co.uk; dmarc=none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=milibyte.co.uk; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=cvxh77gXaP2AUNJjAuDwLSRrcKApr964OGvEfToNoqI=; b=k8Yi28nxIlrS3iTnVQ2YBiOM23 2xVaCGe2X1flkuWXB7Md3zFAU0gj2U8BXG3jbkeAs1hTp2+NLzc2guNT4NzVFEphOSnT5F0G3ud1Y rR3r4UgUos+pCdvnmT2/s1YGBQmu+ZORUcPzGtCLZzoCcDNyMKDAUt8uYrsa2J0rf99Hj28UgAX4d 09Gxhv++dvd/m3HZOHYKGxFp0NzOCJqk7mwI+wE0V0WqjL05tUhFg5OQlVN1rWtAcSFSDfyjBcHN2 RZ394X7b4RAdveXUrnQw9ZBZ1YXP3lRcIWXX/+nfJTVrfXfVHHYaFdxXFuk5Qk4r0Qw9xrx5MVyiQ N+Knjv5Q==; Received: from [149.86.189.206] (port=30128 helo=curlew.milibyte.co.uk) by cp160176.hpdns.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1pp5Bt-000edz-1q for freebsd-questions@freebsd.org; Wed, 19 Apr 2023 11:37:31 +0100 Received: from [127.0.0.1] (helo=curlew.localnet) by curlew.milibyte.co.uk with esmtp (Exim 4.95) (envelope-from ) id 1pp5Br-0001Ix-2K for freebsd-questions@freebsd.org; Wed, 19 Apr 2023 11:37:31 +0100 From: Mike Clarke To: FreeBSD questions Subject: Problem with left over files from earlier releases Date: Wed, 19 Apr 2023 11:37:31 +0100 Message-ID: <7898912.iDzAj6rjnq@curlew> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="nextPart2031495.x0N0T6uNKo" Content-Transfer-Encoding: 7Bit X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: jmc-freebsd2@milibyte.co.uk X-SA-Exim-Scanned: No (on curlew.milibyte.co.uk); SAEximRunCond expanded to false X-YourOrg-MailScanner-Information: Please contact the ISP for more information X-YourOrg-MailScanner-ID: 1pp5Bt-000edz-1q X-YourOrg-MailScanner: Found to be clean X-YourOrg-MailScanner-SpamCheck: X-YourOrg-MailScanner-From: jmc-freebsd2@milibyte.co.uk X-Spam-Status: No X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cp160176.hpdns.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - milibyte.co.uk X-Get-Message-Sender-Via: cp160176.hpdns.net: authenticated_id: mailpool@milibyte.co.uk X-Authenticated-Sender: cp160176.hpdns.net: mailpool@milibyte.co.uk X-Source: X-Source-Args: X-Source-Dir: X-Spamd-Result: default: False [-0.60 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.979]; NEURAL_SPAM_MEDIUM(0.88)[0.877]; CTE_CASE(0.50)[]; MID_RHS_NOT_FQDN(0.50)[]; R_SPF_ALLOW(-0.20)[+a]; R_DKIM_ALLOW(-0.20)[milibyte.co.uk:s=default]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[milibyte.co.uk]; TO_MATCH_ENVRCPT_ALL(0.00)[]; HAS_X_GMSV(0.00)[mailpool@milibyte.co.uk]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; TO_DN_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; HAS_X_SOURCE(0.00)[]; HAS_X_AS(0.00)[mailpool@milibyte.co.uk]; DKIM_TRACE(0.00)[milibyte.co.uk:+]; FROM_EQ_ENVFROM(0.00)[]; HAS_X_ANTIABUSE(0.00)[]; ASN(0.00)[asn:52148, ipnet:91.238.160.0/22, country:GB]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4Q1cgT0JK8z3QSy X-Spamd-Bar: / X-ThisMailContainsUnwantedMimeParts: N 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"

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--