From owner-freebsd-current@FreeBSD.ORG Tue Oct 11 19:57:55 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 123D010656D0; Tue, 11 Oct 2011 19:57:55 +0000 (UTC) (envelope-from lacombar@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id 6A8D58FC1A; Tue, 11 Oct 2011 19:57:54 +0000 (UTC) Received: by wwn22 with SMTP id 22so5707936wwn.1 for ; Tue, 11 Oct 2011 12:57:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=cQJQlqu3TBmIX/dvGcOHSErGllv4cVfBtOFivShVock=; b=kKHsixgR7UVLJYPaMx1+Pc1zWafyRmlFQLL8+ijDjJfW976DxG/PnNv4bNPNTRjsX5 XGnWbHPMN3KRNSaZQpHpZTf/GJnSqItwkXQmFu59+A6ZOx3FX7hhDIC07de4UWrq3DIe jFsYbd6fDu0GHpnOseB/cufXFF5vt287aXCYM= MIME-Version: 1.0 Received: by 10.227.29.161 with SMTP id q33mr6396692wbc.49.1318363073415; Tue, 11 Oct 2011 12:57:53 -0700 (PDT) Received: by 10.180.103.33 with HTTP; Tue, 11 Oct 2011 12:57:53 -0700 (PDT) In-Reply-To: <4E949C26.4070105@freebsd.org> References: <4E942FF1.9000805@FreeBSD.org> <4E9449F2.2000801@FreeBSD.org> <4E944BA5.4080506@lerctr.org> <83FC19FA-BD52-4383-9ABE-708161597B85@mac.com> <589d032a-7b71-4ff1-8adf-f5e49e87696c@email.android.com> <4E949C26.4070105@freebsd.org> Date: Tue, 11 Oct 2011 15:57:53 -0400 Message-ID: From: Arnaud Lacombe To: Julian Elischer Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD current Subject: Re: System headers with clang? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2011 19:57:55 -0000 Hi, On Tue, Oct 11, 2011 at 3:42 PM, Julian Elischer wrote: > On 10/11/11 12:36 PM, Arnaud Lacombe wrote: >>> [...] >> libprocstat is _itself_ a problem: >> >> % git grep 'define _KERNEL' . >> [...] >> lib/libprocstat/cd9660.c:#define _KERNEL >> lib/libprocstat/nwfs.c:#define _KERNEL >> lib/libprocstat/smbfs.c:#define _KERNEL >> lib/libprocstat/udf.c:#define _KERNEL >> lib/libprocstat/zfs.c:#define _KERNEL >> [...] >> >> ok, I admit this is all FS related stuff :) > > but at least it comes with the system so it matches. > no, you should be able to run a FreeBSD 1.0 userland and a 9-RELEASE kernel together and have all utilities working. If not, you cannot claim to support backward compatibility, even if you do on a subset of kernel/userland interface. That said, this is just my personal opinion. > we've been looking for the 'right' way to do this since, hmmm, 1988 that I > remember and I bet before that too. > then the job was done bad. I will repeat myself here, but I ran what-was-to-become-Linux-v3.2 kernel on a 4 years old openwrt image and still had a functional system. Comparatively, I could not mix FreeBSD 7-STABLE userland and 8-STABLE kernel, The 8-STABLE kernel even changed the FS enough to make FreeBSD 7 unable to boot (even single user). Let me emphasize again that it is only my personal opinion :-) - Arnaud