From owner-freebsd-questions@FreeBSD.ORG Wed Jul 14 03:00:14 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EAF6816A4CF for ; Wed, 14 Jul 2004 03:00:13 +0000 (GMT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26ACA43D58 for ; Wed, 14 Jul 2004 03:00:12 +0000 (GMT) (envelope-from freebsd-questions@m.gmane.org) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Bka0A-0005TO-00 for ; Wed, 14 Jul 2004 05:00:10 +0200 Received: from anthonychavez.org ([166.70.126.66]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 Jul 2004 05:00:10 +0200 Received: from acc by anthonychavez.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 Jul 2004 05:00:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Anthony Chavez Date: Tue, 13 Jul 2004 21:00:01 -0600 Lines: 68 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: anthonychavez.org X-PGP-Key: http://www.anthonychavez.org/pubkey.asc User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (darwin) Cancel-Lock: sha1:JzPi6+6HLORVHTTI6zRtd53qsmc= Sender: news Subject: linking to libc and libc_r (was Re: Certain 4.10 apps failing to run as root) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jul 2004 03:00:14 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Here's an update... On Thu, 10 Jun 2004 09:12:33 -0600 Anthony Chavez wrote: > I think that Kris has been swallowed up by other efforts at the moment, > so I'm moving this to the freebsd-stable list, where it's probably more > relevant anyhow. Actually, this particular machine is actually running RELENG_4_10. My bad. So I'm posting this back to -questions. :-) > On Thu, 03 Jun 2004 01:35:33 -0600 Anthony Chavez wrote: >> I just upgraded one of my machines to 4.10-STABLE from 4.9-STABLE and s/0-STABLE/0-RELEASE/ >> certain binaries (such as vim or vipw) when run as root (either with >> sudo or su -) freeze up with "rcmdsh: unknown user:" followed by a bunch >> of garbage. >> >> Any thoughts on what could be causing this? > > On Thu, 03 Jun 2004 07:22:09 -0600 Anthony Chavez wrote: >> On Thu, 3 Jun 2004 01:27:57 -0700 Kris Kennaway wrote: >>> I've only seen this when something incorrectly links to both libc and >>> libc_r. Neither of those four binaries should be linked to libc_r at >>> all though. Can you confirm with ldd(1)? I have successfully worked around the problem by passing -DLITE to make when building editors/vim. When I remove -DLITE, the error resurfaces. The following binaries remain affected (there are others, but they are irrelevant to vim): /usr/X11R6/bin/glxinfo: libc_r.so.4 => /usr/lib/libc_r.so.4 (0x28221000) libc.so.4 => /usr/lib/libc.so.4 (0x2831e000) /usr/X11R6/bin/glxgears: libc_r.so.4 => /usr/lib/libc_r.so.4 (0x281ac000) libc.so.4 => /usr/lib/libc.so.4 (0x28264000) What is causing this? My first suspicion is ccache. Could it be that I have set the following variables in /etc/make.conf? CC=/usr/local/bin/cc CPP=/usr/local/bin/cpp CXX=/usr/local/bin/c++ ( /usr/local/bin/c{c,pp,++} are symlinked to /usr/local/bin/ccache. ) Apart from that, the only difference between the system in question and a stock FreeBSD installation is the following MARK_ARGS pair in /usr/local/etc/pkgtools.conf: 'editors/vim' => '-DLITE -DWITH_CSCOPE -DWITH_PERL -DWITH_PYTHON -DWITH_RUBY -DWITH_TCL' - -- Anthony Chavez http://www.anthonychavez.org/ mailto:acc@anthonychavez.org jabber:acc@anthonychavez.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFA9KG1bZTbIaRBRXERAvYRAJ9Q+3AcEYJLB1iYSoSqWZM/ZMfxkACfXKeT WTypK5pincbgv/4DyQ0abDU= =FEw9 -----END PGP SIGNATURE-----