From owner-freebsd-questions@FreeBSD.ORG Sun Feb 21 02:10:15 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9010E1065672 for ; Sun, 21 Feb 2010 02:10:15 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from mx.utwente.nl (mx2.utsp.utwente.nl [130.89.2.13]) by mx1.freebsd.org (Postfix) with ESMTP id 164248FC08 for ; Sun, 21 Feb 2010 02:10:14 +0000 (UTC) Received: from nox.student.utwente.nl (nox.student.utwente.nl [130.89.165.91]) by mx.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id o1L2A6o2016037; Sun, 21 Feb 2010 03:10:06 +0100 From: Pieter de Goeje To: freebsd-questions@freebsd.org Date: Sun, 21 Feb 2010 03:10:05 +0100 User-Agent: KMail/1.9.10 References: <20100220235454.GA1236@potato> In-Reply-To: <20100220235454.GA1236@potato> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201002210310.06178.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact icts.servicedesk@utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-SpamScore: s X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: John Subject: Re: unabe to install linux compatibility on freebsd 8.0-R X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Feb 2010 02:10:15 -0000 On Sunday 21 February 2010 00:54:54 John wrote: > Hello list, > > I'm following the instructions at > http://www.freebsd.org/doc/handbook/linuxemu-lbc-install.html > > I tried to kldload the module: > > # kldload linux > kldload: can't load /boot/kernel/linux.ko: Exec format error > > # kldstat > Id Refs Address Size Name > 1 22 0xffffffff80100000 846698 kernel > 2 1 0xffffffff80947000 74a8 geom_concat.ko > 3 1 0xffffffff8094f000 8308 ng_ubt.ko > 4 3 0xffffffff80958000 154a0 netgraph.ko > 5 2 0xffffffff8096e000 12ff8 ng_hci.ko > 6 2 0xffffffff80981000 2d40 ng_bluetooth.ko > 7 1 0xffffffff80a22000 a24 pflog.ko > 8 1 0xffffffff80a23000 2bd2d pf.ko > 9 1 0xffffffff80a4f000 a8ca fuse.ko > 10 1 0xffffffff80a5a000 7d6 accf_http.ko > 11 1 0xffffffff80a5b000 1ce accf_data.ko > > If I try to install the linux port: > > # cd /usr/ports/emulators/linux_base-f10 > # make > ===> linux_base-f10-10_2 linuxulator is not (kld)loaded. > *** Error code 1 > > Stop in /usr/ports/emulators/linux_base-f10. > > Finally, if I try to install compatibility in the kernel, I get the error > unknown option "COMPAT_LINUX" > at the config phase. > > Can anyone help me please? > > # uname -p -r > 8.0-RELEASE-p2 amd64 > The system was built today. Somehow your linux.ko is broken, do you perhaps have WITHOUT_LINUX= in /etc/src.conf or /etc/make.conf? Check the last modification date of /boot/kernel/linux.ko, does it correspond (roughly) to the one from /boot/kernel/kernel? About the kernel option, try COMPAT_LINUX32. It's a documentation bug. -- Pieter de Goeje