From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.comp.lib.gnulib.bugs,gmane.emacs.devel Subject: Re: [Jim Meyering] Re: strftime merge from Emacs Date: Wed, 11 Jun 2003 21:38:33 +0300 Sender: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane.org@gnu.org Message-ID: <5567-Wed11Jun2003213832+0300-eliz@elta.co.il> References: <200306111214.56921.bruno@clisp.org> <3EE7047D.8060706@gnu.org> <878ys8setd.fsf@penguin.cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1055357193 3417 80.91.224.249 (11 Jun 2003 18:46:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 11 Jun 2003 18:46:33 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane.org@gnu.org Wed Jun 11 20:46:31 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19QAZG-0000cq-00 for ; Wed, 11 Jun 2003 20:43:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19QAaw-0007Hy-Br for gnu-bug-gnulib@m.gmane.org; Wed, 11 Jun 2003 14:45:14 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19QAZ5-0006Dl-RM for bug-gnulib@gnu.org; Wed, 11 Jun 2003 14:43:19 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19QAYy-00064p-Oz for bug-gnulib@gnu.org; Wed, 11 Jun 2003 14:43:14 -0400 Original-Received: from frigg.inter.net.il ([192.114.186.16]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19QAUQ-0003td-0l; Wed, 11 Jun 2003 14:38:30 -0400 Original-Received: from zaretsky (tony08-234-121.inter.net.il [80.230.234.121] (may be forged)) by frigg.inter.net.il (Mirapoint Messaging Server MOS 3.3.5-GR) with ESMTP id CMI03452; Wed, 11 Jun 2003 21:38:14 +0300 (IDT) Original-To: eggert@CS.UCLA.EDU X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <878ys8setd.fsf@penguin.cs.ucla.edu> (message from Paul Eggert on 11 Jun 2003 10:29:34 -0700) Original-cc: bug-gnulib@gnu.org X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: The GNUlib portability library bug discussion list List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane.org@gnu.org Xref: main.gmane.org gmane.comp.lib.gnulib.bugs:533 gmane.emacs.devel:15047 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15047 > From: Paul Eggert > Date: 11 Jun 2003 10:29:34 -0700 > > > I wonder why you need to redeclare tzname[] there, do header files not > > already declare it on platforms where HAVE_TZNAME is defined? > > Yes, depending on compilation options. For example, I get the > following symptomps on both Debian GNU/Linux 3.0r1 and on Solaris 8: > > $ cat t.c > #include > int main (void) { return !tzname; } > $ gcc -c t.c > $ gcc -c -ansi t.c > t.c: In function `main': > t.c:2: `tzname' undeclared (first use in this function) > t.c:2: (Each undeclared identifier is reported only once > t.c:2: for each function it appears in.) But we don't use -ansi in Emacs, so this particular problem is not really relevant, is it? (I don't know whether gnulib can be built with -ansi, but I sincerely doubt it.)