zsh-workers
 help / color / mirror / code / Atom feed
From: "Jun T." <takimoto-j@kba.biglobe.ne.jp>
To: zsh-workers@sunsite.dk
Subject: Re: Rebuilding from CVS on Snow Leopard
Date: Wed, 30 Sep 2009 02:23:26 +0900	[thread overview]
Message-ID: <ADC9F79E-C7F4-4CB8-9E22-869ABDE01878@kba.biglobe.ne.jp> (raw)
In-Reply-To: <090927225016.ZM17646@torch.brasslantern.com>

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



  parent reply	other threads:[~2009-09-29 17:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-28  5:50 Bart Schaefer
2009-09-29 12:05 ` Jun T.
2009-09-29 14:32   ` Peter Stephenson
2009-09-29 14:44   ` Bart Schaefer
2009-09-29 16:55     ` Jun T.
2009-09-29 17:23 ` Jun T. [this message]
2009-09-29 17:41   ` Mikael Magnusson
2009-09-30 16:11     ` Jun T.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ADC9F79E-C7F4-4CB8-9E22-869ABDE01878@kba.biglobe.ne.jp \
    --to=takimoto-j@kba.biglobe.ne.jp \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).