From owner-freebsd-questions@FreeBSD.ORG Sun Feb 21 17:56:26 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 BB6111065676 for ; Sun, 21 Feb 2010 17:56:26 +0000 (UTC) (envelope-from comp.john@googlemail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 699EC8FC0C for ; Sun, 21 Feb 2010 17:56:26 +0000 (UTC) Received: by vws14 with SMTP id 14so818064vws.13 for ; Sun, 21 Feb 2010 09:56:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=IXAmJR2N2W0D18SNCiCkTjsDXlHBYEXR+QnVuRxFLEM=; b=BUhu8JmuM/iHWfS+OBJQne9CmNtJPocQTSMFllKMbW4x6WphhZRl8XrZcv085LcisO hvH3VVrhwK4Ebt23MhFxWMh5K0OpnHzxU+EnWK9YCbmPJncbrDsyZWnN2+e0WPs54Sxj ZA5wY/yCHAMvoGFqji3QPu1fspGjHZxjvKvAw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=OoykPfxErXBAtpSKAmlwjVeOdqcvSmGiY03tgXMUHmk7Je9iye0SGl25taLRF/ewrS 6g02TYacEhYDnGwKI1hODOkHGPMH2d5AECBPFHghhmpo4L7jxCtPfQd+nbC3CMbTkQSG 40WheKbYcjmeDEF0GNgs8Lu2tHexhYsEz5tBE= Received: by 10.220.122.141 with SMTP id l13mr10489257vcr.172.1266774978980; Sun, 21 Feb 2010 09:56:18 -0800 (PST) Received: from potato (potato.growveg.org [62.49.247.163]) by mx.google.com with ESMTPS id 39sm24056524vws.19.2010.02.21.09.56.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 21 Feb 2010 09:56:17 -0800 (PST) Date: Sun, 21 Feb 2010 17:56:12 +0000 From: John To: Pieter de Goeje Message-ID: <20100221175612.GA1281@potato> References: <20100220235454.GA1236@potato> <201002210310.06178.pieter@degoeje.nl> <20100221084700.GA4247@potato> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100221084700.GA4247@potato> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-questions@freebsd.org 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 17:56:26 -0000 On Sun, Feb 21, 2010 at 08:47:01AM +0000, John wrote: > Hi, thanks for replying > > On Sun, Feb 21, 2010 at 03:10:05AM +0100, Pieter de Goeje wrote: > > > > Somehow your linux.ko is broken, do you perhaps have WITHOUT_LINUX= > > in /etc/src.conf or /etc/make.conf? > > I have no src.conf > > make.conf looks like this: > > $ cat /etc/make.conf | less > CPUTYPE?=athlon64 > WITH_MUTT_IMAP_HEADER_CACHE=yes > WITH_MUTT_SMTP=yes > WITH_MUTT_CYRUS_SASL2=yes > # added by use.perl 2009-11-27 15:44:59 > PERL_VERSION=5.10.1 > > > Check the last modification date of /boot/kernel/linux.ko, does it correspond > > (roughly) to the one from /boot/kernel/kernel? > > Yes, it does: > > $ ls -la /boot/kernel/linux.ko > -r-xr-xr-x 1 root wheel 240K Feb 20 21:50 /boot/kernel/linux.ko* > $ ls -la /boot/kernel/kernel > -r-xr-xr-x 1 root wheel 6.8M Feb 20 21:08 /boot/kernel/kernel* > > > About the kernel option, try COMPAT_LINUX32. It's a documentation bug. > > OK I'll try that now, thanks > > edit: I got this error: > > ../../../amd64/linux32/linux32_sysvec.c:38:2: error: #error "Unable to > compile Linux-emulator due to missing COMPAT_IA32 option!" > mkdep: compile failed > *** Error code 1 > > so I'll add that one, too - seems to be building now That didn't fix it, and I should have mentioned at the start that I was using a custom kernel. I was also having a problem with rar out of the ports - it gave a similar error to the kldstat. So I did this: /usr/local/bin/rar: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), statically linked, for FreeBSD 7.0 (700055), stripped and then remembered I'd stripped out the compatibility 4 5 6 and 7 from the kernel. So put them back in, recompiled and now everything works. Sorry for the noise. -- John - comp dot john at googlemail dot com OpenBSD firewall | FreeBSD desktop | Ubuntu Karmic laptop GPG: 0xF08A33C5