From owner-freebsd-stable@FreeBSD.ORG Tue May 11 04:11:21 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5981F1065673 for ; Tue, 11 May 2010 04:11:21 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta07.emeryville.ca.mail.comcast.net (qmta07.emeryville.ca.mail.comcast.net [76.96.30.64]) by mx1.freebsd.org (Postfix) with ESMTP id 4023D8FC08 for ; Tue, 11 May 2010 04:11:20 +0000 (UTC) Received: from omta18.emeryville.ca.mail.comcast.net ([76.96.30.74]) by qmta07.emeryville.ca.mail.comcast.net with comcast id Foi41e0081bwxycA74BMw8; Tue, 11 May 2010 04:11:21 +0000 Received: from koitsu.dyndns.org ([98.248.46.159]) by omta18.emeryville.ca.mail.comcast.net with comcast id G4BL1e00L3S48mS8e4BMYv; Tue, 11 May 2010 04:11:21 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 75D279B425; Mon, 10 May 2010 21:11:19 -0700 (PDT) Date: Mon, 10 May 2010 21:11:19 -0700 From: Jeremy Chadwick To: lhmwzy Message-ID: <20100511041119.GA78693@icarus.home.lan> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-stable@freebsd.org Subject: Re: How to clear the 32-bit ldconfig error in 64-bit FreeBSD? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 May 2010 04:11:21 -0000 On Tue, May 11, 2010 at 11:11:34AM +0800, lhmwzy wrote: > like this: > > ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib > /usr/local/lib/compat > 32-bit compatibility ldconfig path: /usr/local/lib32/compat > .: Can't open %%RC_SUBR%%: No such file or directory This looks like a problem with a port or part of your system where some expandos (%%RC_SUBR%%) did not get expanded to /etc/rc.subr. > uname -a: > FreeBSD lanshuweb2 8.0-RELEASE FreeBSD 8.0-RELEASE #2: Tue May 11 > 10:04:28 UTC 2010 root@lanshuweb2:/usr/obj/usr/src/sys/mlh amd6 Regarding 32-bit support on amd64, this is what you need: 1) Make sure /etc/src.conf does not contain WITHOUT_LIB32. This will inhibit FreeBSD's buildworld from building 32-bit binaries. By default FreeBSD *does* build 32-bit binaries on amd64. The only reason I'm pointing this out is that some administrators set WITHOUT_LIB32 in src.conf but then later need i386 compatibility and forget all about the option they set. 2) Your kernel configuration file needs "options COMPAT_IA32" in it. You have it commented out. Be aware that the name of this option has changed in RELENG_8 (not 8.0-RELEASE) from COMPAT_IA32 to COMPAT_FREEBSD32. So if you upgrade in the future, you may need to rename this option. You should view /sys/amd64/conf/GENERIC or /sys/amd64/conf/NOTES to see what other semantics may have changed since you made your kernel configuration file. I also advocate watching CVS commits for parts of the tree around there and reading what changes happen, especially if you follow -STABLE. Ex: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/amd64/conf/GENERIC http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/amd64/conf/NOTES -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |