From owner-freebsd-current@FreeBSD.ORG Fri Jun 13 00:55:44 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46DD837B401; Fri, 13 Jun 2003 00:55:44 -0700 (PDT) Received: from HAL9000.homeunix.com (ip114.bella-vista.sfo.interquest.net [66.199.86.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87D6A43FA3; Fri, 13 Jun 2003 00:55:43 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.9/8.12.9) with ESMTP id h5D7tg6L003965; Fri, 13 Jun 2003 00:55:42 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.9/8.12.9/Submit) id h5D7tfBD003964; Fri, 13 Jun 2003 00:55:41 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Date: Fri, 13 Jun 2003 00:55:41 -0700 From: David Schultz To: Tim Robbins Message-ID: <20030613075541.GC3769@HAL9000.homeunix.com> Mail-Followup-To: Tim Robbins , Kris Kennaway , current@freebsd.org References: <20030610113858.GA99227@rot13.obsecurity.org> <20030612023701.GA33532@rot13.obsecurity.org> <20030612141419.A54664@dilbert.robbins.dropbear.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030612141419.A54664@dilbert.robbins.dropbear.id.au> cc: current@FreeBSD.ORG cc: Kris Kennaway Subject: Re: CSTD=c99 breaks package creation X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 13 Jun 2003 07:55:44 -0000 On Thu, Jun 12, 2003, Tim Robbins wrote: > On Wed, Jun 11, 2003 at 07:37:01PM -0700, Kris Kennaway wrote: > > > It's possible that there's either a bug in gcc or there is C code in > > the system that has a different meaning when interpreted to C99 > > standards. > > I think I may have found the problem, and I think it's in GNU tar. > > GNU tar does this: > > #ifndef __attribute__ > /* This feature is available in gcc versions 2.5 and later. */ > # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__ > # define __attribute__(Spec) /* empty */ > # endif > #endif > > machine/_types.h does this: > > typedef int __attribute__((__mode__(__DI__))) __int64_t; > typedef unsigned int __attribute__((__mode__(__DI__))) __uint64_t; > > If __attribute__ is empty, __int64_t becomes a synonym for int. Bad. Wow! Nice catch...