From owner-freebsd-stable@FreeBSD.ORG Thu Sep 6 09:29:59 2012 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 AEE961065674 for ; Thu, 6 Sep 2012 09:29:59 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward4h.mail.yandex.net (forward4h.mail.yandex.net [IPv6:2a02:6b8:0:f05::4]) by mx1.freebsd.org (Postfix) with ESMTP id 2E5438FC22 for ; Thu, 6 Sep 2012 09:29:59 +0000 (UTC) Received: from smtp2h.mail.yandex.net (smtp2h.mail.yandex.net [84.201.187.145]) by forward4h.mail.yandex.net (Yandex) with ESMTP id 744B21B21DFB; Thu, 6 Sep 2012 13:29:57 +0400 (MSK) Received: from smtp2h.mail.yandex.net (localhost [127.0.0.1]) by smtp2h.mail.yandex.net (Yandex) with ESMTP id 3AFB01700114; Thu, 6 Sep 2012 13:29:57 +0400 (MSK) Received: from 87.249.28.58.tel.ru (87.249.28.58.tel.ru [87.249.28.58]) by smtp2h.mail.yandex.net (nwsmtp/Yandex) with ESMTP id TuVC2c14-TuVChAk5; Thu, 6 Sep 2012 13:29:56 +0400 Message-ID: <50486D0A.8040102@passap.ru> Date: Thu, 06 Sep 2012 13:29:46 +0400 From: =?UTF-8?B?0JHQvtGA0LjRgSDQodCw0LzQvtGA0L7QtNC+0LI=?= User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:15.0) Gecko/20120905 Thunderbird/15.0 MIME-Version: 1.0 To: Willem Jan Withagen References: <50484F47.9030907@digiware.nl> In-Reply-To: <50484F47.9030907@digiware.nl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: FreeBSD Stable Users Subject: Re: Wanting to load kernel module linprocfs 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: Thu, 06 Sep 2012 09:29:59 -0000 06.09.2012 11:22, Willem Jan Withagen пишет: > Hi, > > I'm trying to get htop to work, but that requires linproc. > > So building and loading linproc I get: > l# kldload linprocfs > kldload: can't load linprocfs: Exec format error > > So I go Grrrmbbblll, try som more things, rebuild kernel and modules... > Only to find out this morning in the reports that /var/log/messages > contains: > > zfs.digiware.nl kernel log messages: > +++ /tmp/security.iJfdNgeT 2012-09-06 03:40:36.135242983 +0200 > +KLD linprocfs.ko: depends on linux - not available or version mismatch > +linker_load_file: Unsupported file type > +KLD linprocfs.ko: depends on linux - not available or version mismatch > +linker_load_file: Unsupported file type > +KLD linprocfs.ko: depends on linux - not available or version mismatch > +linker_load_file: Unsupported file type > > Right, how easy that one was. :( > > So I build and load linux. > # kldload linux > kldload: can't load linux: Exec format error > > This time I know I have to look in to messages: > But that is not so easy: > Sep 6 09:14:02 zfs kernel: link_elf_obj: symbol > freebsd32_exec_copyin_args undefined > Sep 6 09:14:02 zfs kernel: linker_load_file: Unsupported file type > > So how do I get freebsd32_exec_copyin_args defined.... > > My current modules line: > MODULES_OVERRIDE=splash geom ipfw ipdivert acpi nfsserver coretemp aio > opensolaris zfs nullfs linux linprocfs > > Any insights appreciated, Is it FreeBSD-amd64? (uname -a is a good start) If yes, have you got i386 compatibility? (kernel config may help here) -- WBR, Boris Samorodov (bsam) FreeBSD Committer, http://www.FreeBSD.org The Power To Serve