From owner-freebsd-current@FreeBSD.ORG Tue Jun 3 19:31:39 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 59F5337B401 for ; Tue, 3 Jun 2003 19:31:39 -0700 (PDT) Received: from lakemtao05.cox.net (lakemtao05.cox.net [68.1.17.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id 652AF43F75 for ; Tue, 3 Jun 2003 19:31:38 -0700 (PDT) (envelope-from mezz7@cox.net) Received: from sysinfo.mezzweb.com ([68.103.37.247]) by lakemtao05.cox.net ESMTP <20030604023136.JJYP28938.lakemtao05.cox.net@sysinfo.mezzweb.com>; Tue, 3 Jun 2003 22:31:36 -0400 Date: Tue, 03 Jun 2003 21:17:21 -0500 To: "David P. Reese Jr." Content-Type: text/plain; charset=utf-8; format=flowed References: <20030604010152.GA5775@tombstone.localnet.gomerbud.com> From: Jeremy Messenger MIME-Version: 1.0 Message-ID: In-Reply-To: User-Agent: Opera7.11/Linux M2 build 406 cc: current@freebsd.org Subject: Re: libmap.conf has the bug or not work correct? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jun 2003 02:31:39 -0000 On Tue, 03 Jun 2003 21:04:11 -0500, Jeremy Messenger wrote: > On Tue, 3 Jun 2003 18:01:52 -0700, David P. Reese Jr. > wrote: > >> On Tue, Jun 03, 2003 at 03:50:00PM -0500, Jeremy Messenger wrote: >>> I am trying to get ggv link against libc_r instead libthr, but it >>> doesn't work as expect.. Maybe, I must have done something wrong? >> >> Make sure that you have rev 1.6 of src/libexec/rtld-elf/libmap.c. It >> fixes a bug in the libmap.conf parsing code. > > I downgrade from 1.7 -> 1.6 and the problem is still there. I CVSup'ed > yesterday around 30 to 45 minutes before my 'uname -a' in the bottom. Here's more info.... It works if my libmap.conf looks like: ============================ # cat /etc/libmap.conf libc_r.so.5 libc_r.so.5 # Before was libthr libc_r.so libc_r.so # ^^^^^^^^^^^^^^^^^ [/usr/X11R6/bin/ggv] libc_r.so.5 libc_r.so.5 libc_r.so libc_r.so [ggv] libc_r.so.5 libc_r.so.5 libc_r.so libc_r.so ============================ Result: ============================ # ldd /usr/X11R6/bin/ggv | grep libc libc.so.5 => /usr/lib/libc.so.5 (0x28a68000) libc_r.so.5 => /usr/lib/libc_r.so.5 (0x28b49000) ============================ It seems like the [/path/to/exec] and [exec] don't work? > Cheers, > Mezz > >>> ============================ >>> # cat /etc/libmap.conf >>> libc_r.so.5 libthr.so.1 >>> libc_r.so libthr.so >>> >>> [/usr/X11R6/bin/ggv] >>> libc_r.so.5 libc_r.so.5 >>> libc_r.so libc_r.so >>> >>> [ggv] >>> libc_r.so.5 libc_r.so.5 >>> libc_r.so libc_r.so >>> ============================ >>> >>> ============================ >>> # uname -a >>> FreeBSD personal.mezzweb.com 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Mon >>> Jun 2 20:23:45 CDT 2003 >>> mezz@personal.mezzweb.com:/usr/obj/usr/src/sys/BSDRULZ i386 >>> ============================ >>> >>> I even rebuilt rtld-elf (WITH_LIBMAP=yes in /etc/make.conf) and ggv >>> then reinstall them, but no luck. The ggv is still linking to libthr >>> instead libc_r.. Also, ggv isn't only one app that I tried. I did tried >>> with gst-register and no luck to change the link to libc_r. >>> >>> ============================ >>> # ldd /usr/X11R6/bin/ggv | grep libc >>> libc.so.5 => /usr/lib/libc.so.5 (0x28a68000) >>> libc_r.so.5 => /usr/lib/libthr.so.1 (0x28b49000) >>> ============================ >>> >>> Do anyone have any hint? >>> >>> Cheers, >>> Mezz >>> >>> >>> -- bsdforums.org 's moderator, mezz. >> > > -- bsdforums.org 's moderator, mezz.