From owner-freebsd-current@FreeBSD.ORG Sun Feb 10 00:36:29 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 21FA669B; Sun, 10 Feb 2013 00:36:29 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id C1A12B4; Sun, 10 Feb 2013 00:36:28 +0000 (UTC) Received: from r56.edvax.de (port-92-195-74-250.dynamic.qsc.de [92.195.74.250]) by mx02.qsc.de (Postfix) with ESMTP id DB1FC249FA; Sun, 10 Feb 2013 01:36:27 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id r1A0aVg3005287; Sun, 10 Feb 2013 01:36:31 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sun, 10 Feb 2013 01:36:31 +0100 From: Polytropon To: mexas@bristol.ac.uk Subject: Re: building custom kernel on -current: unknown option "COMPAT_LINUX" Message-Id: <20130210013631.4681c6fd.freebsd@edvax.de> In-Reply-To: <201302100031.r1A0VikU046820@mech-cluster241.men.bris.ac.uk> References: <20130210012751.76957b14.freebsd@edvax.de> <201302100031.r1A0VikU046820@mech-cluster241.men.bris.ac.uk> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sun, 10 Feb 2013 03:28:54 +0000 Cc: freebsd-current@freebsd.org, freebsd-questions@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Feb 2013 00:36:29 -0000 On Sun, 10 Feb 2013 00:31:44 GMT, Anton Shterenlikht wrote: > From freebsd@edvax.de Sun Feb 10 00:29:36 2013 > > On Sun, 10 Feb 2013 00:18:06 GMT, Anton Shterenlikht wrote: > > This is on amd64 r246552 > > > > I added > > > > options COMPAT_43 > > options COMPAT_LINUX > > options COMPAT_LINUX32 > > > > to the kernel config, > > following sys/amd64/conf/NOTES > > > > On buildkernel I get: > > > > unknown option "COMPAT_LINUX" > > > > What am I missing? > > Do you also have those (from a working i386 system): > > # Linux support > options COMPAT_LINUX # Enable Linux ABI emulation > options LINPROCFS # Enable the linux-like proc filesystemsupport (requires COMPAT_LINUX and PSEUDOFS) > options LINSYSFS # Enable the linux-like sys filesystem support (requires COMPAT_LINUX and PSEUDOFS) > device lindev > options COMPAT_AOUT # Enable i386 a.out binary support > > (note PSEUDOFS is also needed) > > No, I haven't added those. > Are these necessary to have > the linux binary compatibility? > The handbook only mentions COMPAT_LINUX. I think I had the same question some time ago and found out that if those options are present, the Linux functionality will build properly in the kernel. So I assume they are required. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...