From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 26 20:02:52 2008 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A783106567C for ; Thu, 26 Jun 2008 20:02:52 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outC.internet-mail-service.net (outc.internet-mail-service.net [216.240.47.226]) by mx1.freebsd.org (Postfix) with ESMTP id 47E1D8FC16 for ; Thu, 26 Jun 2008 20:02:52 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 3AEDC248A; Thu, 26 Jun 2008 12:49:19 -0700 (PDT) Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id 0F2782D601C; Thu, 26 Jun 2008 12:49:19 -0700 (PDT) Message-ID: <4863F2CE.30902@elischer.org> Date: Thu, 26 Jun 2008 12:49:34 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: Dmitry Morozovsky References: <20080626211352.M77682@woozle.rinet.ru> In-Reply-To: <20080626211352.M77682@woozle.rinet.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: hackers@FreeBSD.org Subject: Re: i386 jail undex amd64: libkvm X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jun 2008 20:02:52 -0000 Dmitry Morozovsky wrote: > Dear colleagues, > > it seems this question had been arised several times, but I failed to find any > solution (yet). > > What is (and is there?) the proper way to compile libkvm-related binaries (and > libkvm itself) to assure 32bit binaries work with amd64 kernel structures? > > Straight way with installing i386 world, or cross-compile with TARGET=i386 > leads to empty result with ps and > you can not do this. there are a small number of system utilities that can not be run across the 386/amd64 chasm. Anything that uses libkvm on the riunning system is one of them. teh asnwer is to have a small numebr of 64 bit utilities in your "32 bit" jail. Netstat, ps and some others are examples (top, systat). you could put the 64 bit shared libs in your jail, or you could grab static versions from /rescue. It's just the way it has to be.. (unless we have special code to translate proc structure fields. which probably wouldn't make sense anyhow). > kvm_open: kinfo_proc size mismatch (expected 768, got 1088) > top: Out of memory. > > with top. > > I tried to play with lib32 libraries and different system headers, but did not > succeed. > > Any clues? > > Thank you in advance. > > Sincerely, > D.Marck [DM5020, MCK-RIPE, DM3-RIPN] > [ FreeBSD committer: marck@FreeBSD.org ] > ------------------------------------------------------------------------ > *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** > ------------------------------------------------------------------------ > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"