From owner-freebsd-current@FreeBSD.ORG Sun Feb 10 01:26:54 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 798C8E9; Sun, 10 Feb 2013 01:26:54 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id 201CA1D6; Sun, 10 Feb 2013 01:26:53 +0000 (UTC) Received: from irix.bris.ac.uk ([137.222.10.39] helo=ncs.bris.ac.uk) by dirg.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1U4Lgc-0005Ww-C3; Sun, 10 Feb 2013 01:26:53 +0000 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1U4Lgc-0005nJ-3F; Sun, 10 Feb 2013 01:26:30 +0000 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.6/8.14.6) with ESMTP id r1A1QTm3047020; Sun, 10 Feb 2013 01:26:29 GMT (envelope-from mexas@mech-cluster241.men.bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.6/8.14.6/Submit) id r1A1QTT2047019; Sun, 10 Feb 2013 01:26:29 GMT (envelope-from mexas) Date: Sun, 10 Feb 2013 01:26:29 GMT From: Anton Shterenlikht Message-Id: <201302100126.r1A1QTT2047019@mech-cluster241.men.bris.ac.uk> To: freebsd@edvax.de Subject: Re: building custom kernel on -current: unknown option "COMPAT_LINUX" In-Reply-To: <20130210013631.4681c6fd.freebsd@edvax.de> X-Spam-Score: -3.4 X-Spam-Level: --- 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: mexas@bristol.ac.uk 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 01:26:54 -0000 From freebsd@edvax.de Sun Feb 10 00:42:11 2013 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. I removed COMPAT_LINUX, and only left options COMPAT_43 options COMPAT_LINUX32 This seems enough to get flash working with firefox, exactly as per the handbook instructions. Anton