From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5501 invoked from network); 29 Sep 2009 17:23:45 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from new-brage.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.254.104) by ns1.primenet.com.au with SMTP; 29 Sep 2009 17:23:45 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 60642 invoked from network); 29 Sep 2009 17:23:39 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 29 Sep 2009 17:23:39 -0000 Received: (qmail 22561 invoked by alias); 29 Sep 2009 17:23:36 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 27296 Received: (qmail 22545 invoked from network); 29 Sep 2009 17:23:36 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 29 Sep 2009 17:23:36 -0000 Received: from rcpt-expgw.biglobe.ne.jp (rcpt-expgw.biglobe.ne.jp [133.205.19.65]) by bifrost.dotsrc.org (Postfix) with ESMTP id 8CF63801E2BF for ; Tue, 29 Sep 2009 19:23:27 +0200 (CEST) Received: from vc-gw.biglobe.ne.jp by rcpt-expgw.biglobe.ne.jp (kbkr/0208160408) with SMTP id n8THNQXm017895 for ; Wed, 30 Sep 2009 02:23:26 +0900 Received: from smtp-gw.biglobe.ne.jp ([172.21.175.155]) by vc-gw.biglobe.ne.jp (kbkr/0716090908) with ESMTP id n8THNQEI025940 for ; Wed, 30 Sep 2009 02:23:26 +0900 X-Biglobe-Sender: Received: from [192.168.0.3] (125.196.138.35 [125.196.138.35]) by smtp-gw.biglobe.ne.jp id CAMEAC15AFDB; Wed, 30 Sep 2009 02:23:26 +0900 (JST) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Mime-Version: 1.0 (Apple Message framework v1076) Subject: Re: Rebuilding from CVS on Snow Leopard From: "Jun T." In-Reply-To: <090927225016.ZM17646@torch.brasslantern.com> Date: Wed, 30 Sep 2009 02:23:26 +0900 Content-Transfer-Encoding: 7bit Message-Id: References: <090927225016.ZM17646@torch.brasslantern.com> To: zsh-workers@sunsite.dk X-Mailer: Apple Mail (2.1076) X-Virus-Scanned: ClamAV 0.94.2/9852/Tue Sep 29 17:06:51 2009 on bifrost X-Virus-Status: Clean On 2009/09/28, at 14:50, Bart Schaefer wrote: > configure: WARNING: libc.h: accepted by the compiler, rejected by > the preprocessor! This is due to the lines 464-467 of configure.ac: dnl Default preprocessing on Mac OS X produces warnings case "$host_os" in darwin*) CPP="$CPP -traditional-cpp" ;; esac I don't know when and why this is added. It seems -traditional-cpp is not required already on Leopard (darwin9.x.x), but maybe it would be better to modify only for Snow Leopard (darwin10.x.x). On Snow Leopard, _FORTIFY_SOURCE is defined to 2 by default, and stdio.h and string.h include files under /usr/include/secure/. This adds some buffer overflow checks, as in the case of strncpy(). But some macros in /usr/include/secure/_stdio.h can't be processed by gcc -E -traditional-cpp, and causes the above warning from configure. Index: configure.ac =================================================================== RCS file: /cvsroot/zsh/zsh/configure.ac,v retrieving revision 1.127 diff -u -r1.127 configure.ac --- configure.ac 7 Sep 2009 08:53:48 -0000 1.127 +++ configure.ac 29 Sep 2009 17:18:17 -0000 @@ -462,8 +462,9 @@ AC_C_CONST dnl Does compiler support `const'. dnl Default preprocessing on Mac OS X produces warnings +dnl Mac OS X 10.6 (darwin10.x.x) does not need this. case "$host_os" in - darwin*) CPP="$CPP -traditional-cpp" ;; + darwin[[0-9]].*) CPP="$CPP -traditional-cpp" ;; esac fp_PROG_CC_STDC