From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1744 Path: news.gmane.org!not-for-mail From: John Spencer Newsgroups: gmane.linux.lib.musl.general Subject: Re: Header testing [Re: [musl] Re: dirent.h and __NEED_size_t] Date: Fri, 24 Aug 2012 22:04:22 +0200 Message-ID: <5037DE46.90304@barfooze.de> References: <5037A072.5000300@purdue.edu> <20120824182301.GG27715@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1345838443 14506 80.91.229.3 (24 Aug 2012 20:00:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Aug 2012 20:00:43 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1745-gllmg-musl=m.gmane.org@lists.openwall.com Fri Aug 24 22:00:40 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1T503c-0000ua-1l for gllmg-musl@plane.gmane.org; Fri, 24 Aug 2012 22:00:40 +0200 Original-Received: (qmail 26612 invoked by uid 550); 24 Aug 2012 20:00:38 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 26604 invoked from network); 24 Aug 2012 20:00:37 -0000 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110221 SUSE/3.1.8 Mail/1.0 In-Reply-To: <20120824182301.GG27715@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:1744 Archived-At: On 08/24/2012 08:23 PM, Rich Felker wrote: > > It would be nice to have a header test suite for this kind of issue. > Basically, it would attempt compiling an otherwise-empty source file > for each system header, with each combination of feature test macros, > to check for errors in any of the cases. We could add -std=c89 to the > mix too if we want to check for c89-compatibility errors at the same > time... > > Rich > results: http://sprunge.us/JURU script: http://sprunge.us/HIFE apart from "inline" there seem to be only 2 problems (at least from a quick glance): bits/alltypes.h: #if defined(__NEED_struct_timespec) && !defined(__DEFINED_struct_timespec) struct timespec { time_t tv_sec; long tv_nsec; }; // time_t can be undefined #define __DEFINED_struct_timespec #endif arpa/nameser.h should include support for uint16_t .. and: the stdio_ext.h bug is that stdio.h is not included