delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/01/23/05:14:32

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 23 Jan 2008 11:13:43 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: HDF5 and timezone
Message-ID: <20080123101343.GB16891@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4796A3BC DOT 3060001 AT niwa DOT co DOT nz>
MIME-Version: 1.0
In-Reply-To: <4796A3BC.3060001@niwa.co.nz>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Jan 23 15:17, Mark Hadfield wrote:
> Building HDF5 (either the recently released RC1 or the previous beta 5)
> under Cygwin fails with
>
> gcc -DHAVE_CONFIG_H -I. -DNDEBUG -UH5_DEBUG_API -std=c99 -pedantic -Wall 
> -Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual 
> -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Waggregate-return 
> -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations 
> -Wredundant-decls -Wnested-externs -Winline -Wno-long-long -Wfloat-equal 
> -Wmissing-format-attribute -Wmissing-noreturn -Wpacked 
> -Wdisabled-optimization -Wmultichar -Wendif-labels 
> -Wdeclaration-after-statement -Wold-style-definition -Winvalid-pch -O 
> -fomit-frame-pointer -finline-functions -MT H5Omtime.lo -MD -MP -MF 
> .deps/H5Omtime.Tpo -c H5Omtime.c -o H5Omtime.o
> H5Omtime.c: In function `H5O_mtime_decode':
> H5Omtime.c:194: warning: implicit declaration of function `tzset'
> H5Omtime.c:194: warning: nested extern declaration of `tzset'
> H5Omtime.c:230: error: `timezone' undeclared (first use in this function)
> H5Omtime.c:230: error: (Each undeclared identifier is reported only once
> H5Omtime.c:230: error: for each function it appears in.)
>
> Back on 27 November 2007 I built beta 5 with no problems.
>
> Is this likely to be related to the new Cygwin versions released in 
> December? I can see some discussion of timezone and tzset on the list 
> archives in the last couple of months, but don't know whether they relate 
> to my problem.

Earlier versions of Cygwin allowed to link against a very old,
very non-standard, timezone() function.  Since Cygwin 1.5.25,
the timezone() function is only available as exported symbol for
old applications built against earlier Cygwin release.

For new applications, timezone is only available as variable of
type long, according to POSIX.  See

  http://www.opengroup.org/onlinepubs/009695399/functions/timezone.html

I assume that HDF5 special cases the usage of timezone as being a
function for Cygwin.  Remove this code and use the timezone variable as
on other POSIX compliant systems.  Make sure that <time.h> gets included
before using the timezone variable.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019