From owner-freebsd-bugs@freebsd.org Wed Jul 26 18:28:51 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B0192DAD53E for ; Wed, 26 Jul 2017 18:28:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 9DC3271D27 for ; Wed, 26 Jul 2017 18:28:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v6QISpNO094754 for ; Wed, 26 Jul 2017 18:28:51 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 221032] Absolute pathnames not working with libmap.conf Date: Wed, 26 Jul 2017 18:28:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: feature, patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: tatu.kilappa@iki.fi X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jul 2017 18:28:51 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221032 Bug ID: 221032 Summary: Absolute pathnames not working with libmap.conf Product: Base System Version: 11.0-RELEASE Hardware: Any OS: Any Status: New Keywords: feature, patch Severity: Affects Some People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: tatu.kilappa@iki.fi Created attachment 184747 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D184747&action= =3Dedit Patch to enable absolute pathname as target in libmap.conf It seems it's not possible to replace entries in libmap configuration with absolute pathnames and have them work. For example, consider installing Nvidia driver from package or ports, it wi= ll create the following libmap directive: libGL.so libGL-NVIDIA.so libGL.so.1 libGL-NVIDIA.so.1 While investigating other things, I found out that replacing the target sha= red object with the following: libGL.so /usr/local/lib/libGL-NVIDIA.so.1 Creates an error: Shared object "/usr/local/lib/libGL-NVIDIA.so.1" not found, required by "" The problem lies in rtld.c line 1519 and onward, that checks for absolute p= ath before going to lm_find. This means, that if libmap.conf contains a mapping with an absolute pathname, it will try to search that name from the library search paths, which will obviously not work. I've attached a patch that fixes the issue at least for me. If current behavior is intended, or if this should be handled elsewhere, pl= ease disregard this bug report. --=20 You are receiving this mail because: You are the assignee for the bug.=