From owner-freebsd-current@FreeBSD.ORG Tue Oct 11 17:46:45 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 87343106566B for ; Tue, 11 Oct 2011 17:46:45 +0000 (UTC) (envelope-from matt.thyer@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 167848FC0C for ; Tue, 11 Oct 2011 17:46:44 +0000 (UTC) Received: by wyj26 with SMTP id 26so11444490wyj.13 for ; Tue, 11 Oct 2011 10:46:44 -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=ecp5jTGQ/mwyg+sP1/LkXtmsGV+i+BKNJdAeLr1Zbdk=; b=QHYob4rCUFzoYxuoWX/9uvJ8PBWnzngc1z3P4NMJLM7yYrpyZwfYCwsmb8XhQbTwP+ Np5mdjWPnu7V7xQB6KPbKYZP2QnpbHdGfJE4q4E75HQrswxwhXBanbae6CykO+BAeBg/ +N42D132Ic2AlEhmuY8K27TbUl4R4vRBRUg+A= MIME-Version: 1.0 Received: by 10.216.163.194 with SMTP id a44mr7973071wel.1.1318355203940; Tue, 11 Oct 2011 10:46:43 -0700 (PDT) Received: by 10.216.36.18 with HTTP; Tue, 11 Oct 2011 10:46:43 -0700 (PDT) Received: by 10.216.36.18 with HTTP; Tue, 11 Oct 2011 10:46:43 -0700 (PDT) In-Reply-To: <589d032a-7b71-4ff1-8adf-f5e49e87696c@email.android.com> 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> Date: Wed, 12 Oct 2011 04:16:43 +1030 Message-ID: From: Matt Thyer To: Larry Rosenman Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 17:46:45 -0000 On Oct 12, 2011 3:25 AM, "Larry Rosenman" wrote: > > I didn't say bug for bug, just not generate stupid errors like the ffs one. > -- > Sent from my Android phone with K-9 Mail. Please excuse my brevity. > > Chuck Swiger wrote: > > On Oct 11, 2011, at 6:59 AM, Larry Rosenman wrote: > > We will NOT support clang as the compiler for lsof unless the system headers work the same way as gcc's do. > > That apparently means you won't support clang then, because it's not intended to be (or ever going to be) fully bug-for-bug "compatible" with GCC. In this case, at least, clang is reporting legitimate issues which should be fixed, even if folks continue to build lsof with GCC from now until the end of days. The elegant solution would be to avoid this problem altogether by re-implementation of lsof using interfaces into the kernel that provide the required information. bsdof anyone?