amd64/109584: zdump doesn't work
Michael Plass
mfp49_freebsd at plass-family.net
Wed Nov 14 17:10:03 PST 2007
The following reply was made to PR amd64/109584; it has been noted by GNATS.
From: Michael Plass <mfp49_freebsd at plass-family.net>
To: bug-followup at FreeBSD.org,
dcrandall at simplestar.com
Cc:
Subject: Re: amd64/109584: zdump doesn't work
Date: Wed, 14 Nov 2007 16:54:14 -0800
Building from upstream sources yields a working zdump with the recipe
below. Note that it uses the upstream localtime.c as well, not the
libc version.
$ cd /tmp
$ mkdir zdumptest
$ cd zdumptest
$ fetch ftp://elsie.nci.nih.gov/pub/tzcode2007h.tar.gz
tzcode2007h.tar.gz 100% of 185 kB 322 kBps
$ tar xfz tzcode2007h.tar.gz
$ make TZDIR=/usr/share/zoneinfo CFLAGS='-D_XOPEN_SOURCE=600' zdump
cc -DTZDIR=\"/usr/share/zoneinfo\" -D_XOPEN_SOURCE=600 -c zdump.c
cc -DTZDIR=\"/usr/share/zoneinfo\" -D_XOPEN_SOURCE=600 -c localtime.c
cc -DTZDIR=\"/usr/share/zoneinfo\" -D_XOPEN_SOURCE=600 -c ialloc.c
cc -DTZDIR=\"/usr/share/zoneinfo\" -D_XOPEN_SOURCE=600 zdump.o
localtime.o ialloc.o -o zdump
$ ./zdump -v America/Los_Angeles | grep -w 200.
America/Los_Angeles Sun Apr 2 09:59:59 2000 UTC = Sun Apr 2
01:59:59 2000 PST isdst=0
America/Los_Angeles Sun Apr 2 10:00:00 2000 UTC = Sun Apr 2
03:00:00 2000 PDT isdst=1
America/Los_Angeles Sun Oct 29 08:59:59 2000 UTC = Sun Oct 29
01:59:59 2000 PDT isdst=1
America/Los_Angeles Sun Oct 29 09:00:00 2000 UTC = Sun Oct 29
01:00:00 2000 PST isdst=0
America/Los_Angeles Sun Apr 1 09:59:59 2001 UTC = Sun Apr 1
01:59:59 2001 PST isdst=0
America/Los_Angeles Sun Apr 1 10:00:00 2001 UTC = Sun Apr 1
03:00:00 2001 PDT isdst=1
America/Los_Angeles Sun Oct 28 08:59:59 2001 UTC = Sun Oct 28
01:59:59 2001 PDT isdst=1
America/Los_Angeles Sun Oct 28 09:00:00 2001 UTC = Sun Oct 28
01:00:00 2001 PST isdst=0
America/Los_Angeles Sun Apr 7 09:59:59 2002 UTC = Sun Apr 7
01:59:59 2002 PST isdst=0
America/Los_Angeles Sun Apr 7 10:00:00 2002 UTC = Sun Apr 7
03:00:00 2002 PDT isdst=1
America/Los_Angeles Sun Oct 27 08:59:59 2002 UTC = Sun Oct 27
01:59:59 2002 PDT isdst=1
America/Los_Angeles Sun Oct 27 09:00:00 2002 UTC = Sun Oct 27
01:00:00 2002 PST isdst=0
America/Los_Angeles Sun Apr 6 09:59:59 2003 UTC = Sun Apr 6
01:59:59 2003 PST isdst=0
America/Los_Angeles Sun Apr 6 10:00:00 2003 UTC = Sun Apr 6
03:00:00 2003 PDT isdst=1
America/Los_Angeles Sun Oct 26 08:59:59 2003 UTC = Sun Oct 26
01:59:59 2003 PDT isdst=1
America/Los_Angeles Sun Oct 26 09:00:00 2003 UTC = Sun Oct 26
01:00:00 2003 PST isdst=0
America/Los_Angeles Sun Apr 4 09:59:59 2004 UTC = Sun Apr 4
01:59:59 2004 PST isdst=0
America/Los_Angeles Sun Apr 4 10:00:00 2004 UTC = Sun Apr 4
03:00:00 2004 PDT isdst=1
America/Los_Angeles Sun Oct 31 08:59:59 2004 UTC = Sun Oct 31
01:59:59 2004 PDT isdst=1
America/Los_Angeles Sun Oct 31 09:00:00 2004 UTC = Sun Oct 31
01:00:00 2004 PST isdst=0
America/Los_Angeles Sun Apr 3 09:59:59 2005 UTC = Sun Apr 3
01:59:59 2005 PST isdst=0
America/Los_Angeles Sun Apr 3 10:00:00 2005 UTC = Sun Apr 3
03:00:00 2005 PDT isdst=1
America/Los_Angeles Sun Oct 30 08:59:59 2005 UTC = Sun Oct 30
01:59:59 2005 PDT isdst=1
America/Los_Angeles Sun Oct 30 09:00:00 2005 UTC = Sun Oct 30
01:00:00 2005 PST isdst=0
America/Los_Angeles Sun Apr 2 09:59:59 2006 UTC = Sun Apr 2
01:59:59 2006 PST isdst=0
America/Los_Angeles Sun Apr 2 10:00:00 2006 UTC = Sun Apr 2
03:00:00 2006 PDT isdst=1
America/Los_Angeles Sun Oct 29 08:59:59 2006 UTC = Sun Oct 29
01:59:59 2006 PDT isdst=1
America/Los_Angeles Sun Oct 29 09:00:00 2006 UTC = Sun Oct 29
01:00:00 2006 PST isdst=0
America/Los_Angeles Sun Mar 11 09:59:59 2007 UTC = Sun Mar 11
01:59:59 2007 PST isdst=0
America/Los_Angeles Sun Mar 11 10:00:00 2007 UTC = Sun Mar 11
03:00:00 2007 PDT isdst=1
America/Los_Angeles Sun Nov 4 08:59:59 2007 UTC = Sun Nov 4
01:59:59 2007 PDT isdst=1
America/Los_Angeles Sun Nov 4 09:00:00 2007 UTC = Sun Nov 4
01:00:00 2007 PST isdst=0
America/Los_Angeles Sun Mar 9 09:59:59 2008 UTC = Sun Mar 9
01:59:59 2008 PST isdst=0
America/Los_Angeles Sun Mar 9 10:00:00 2008 UTC = Sun Mar 9
03:00:00 2008 PDT isdst=1
America/Los_Angeles Sun Nov 2 08:59:59 2008 UTC = Sun Nov 2
01:59:59 2008 PDT isdst=1
America/Los_Angeles Sun Nov 2 09:00:00 2008 UTC = Sun Nov 2
01:00:00 2008 PST isdst=0
America/Los_Angeles Sun Mar 8 09:59:59 2009 UTC = Sun Mar 8
01:59:59 2009 PST isdst=0
America/Los_Angeles Sun Mar 8 10:00:00 2009 UTC = Sun Mar 8
03:00:00 2009 PDT isdst=1
America/Los_Angeles Sun Nov 1 08:59:59 2009 UTC = Sun Nov 1
01:59:59 2009 PDT isdst=1
America/Los_Angeles Sun Nov 1 09:00:00 2009 UTC = Sun Nov 1
01:00:00 2009 PST isdst=0
$ uname -rsp
FreeBSD 7.0-BETA2 amd64
$
$ exit
More information about the freebsd-amd64
mailing list