From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21656 invoked by alias); 13 Apr 2011 16:27:00 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28993 Received: (qmail 8500 invoked from network); 13 Apr 2011 16:26:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at csr.com does not designate permitted sender hosts) Date: Wed, 13 Apr 2011 17:26:46 +0100 From: Peter Stephenson To: Subject: Re: build on os x 10.6.7, xcode 3.2.6 Message-ID: <20110413172646.2e406efd@pwslap01u.europe.root.pri> In-Reply-To: References: <20110412130929.GG5881@erwin> Organization: Cambridge Silicon Radio X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.103.11.49] X-Scanned-By: MailControl A_10_80_00 (www.mailcontrol.com) on 10.68.0.163 On Wed, 13 Apr 2011 09:10:47 -0700 "S. Cowles" wrote: > i have been building source from the sourceforge cvs repository on os > x 10.6.x for the past two months with no issues, until this week. as > of rev4.3.11-dev-1, patchlevel 1.5245, i have begun getting the > following build error > > gcc -c -I. -I/opt/local/include -DHAVE_CONFIG_H -Wall > -Wmissing-prototypes -O2 -o builtin.o builtin.c In file included > from zsh.mdh:37, from builtin.c:33: > exec.epro:29: error: 'RLIM_NLIMITS' undeclared here (not in a > function) make[2]: *** [builtin.o] Error 1 > make[1]: *** [modobjs] Error 2 > make: *** [all] Error 1 > > previously, rev4.3.11-dev-1, patchlevel 1.5241, and prior, built with > no problems. i am still looking for what might cause the > RLIM_NLIMITS definition to be missed, but wanted to find out if > someone was already aware of this issue and might point out any > possible mistake on my part. No, but there's a good chance it's got something to do with this change. Changing random source code options often has side effects. Does removing either _GNU_SOURCE or _POSIX_C_SOURCE help? --- zsh-4.3.11/Src/system.h 2010-02-22 11:12:31.000000000 +0100 +++ zsh/Src/system.h 2011-04-12 14:20:37.106000061 +0200 @@ -37,13 +37,12 @@ #endif #endif -#if defined(__linux) || defined(__GNU__) || defined(__GLIBC__) /* * Turn on numerous extensions. * This is in order to get the functions for manipulating /dev/ptmx. */ #define _GNU_SOURCE 1 -#endif +#define _POSIX_C_SOURCE 200809L /* NeXT has half-implemented POSIX support * * which currently fools configure */ -- Peter Stephenson Software Engineer Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom