2017c zdump outputs "No such file or directory"
Hi, Previously, I tryed 2017b like the following. make TOPDIR=$HOME/tzdir install $HOME/tzdir/etc/zdump -v America/Los_Angeles It works good . Now I tryed 2017c as the same way. make TOPDIR=$HOME/tzdir install $HOME/tzdir/etc/zdump -v America/Los_Angeles But , zdump outputs "America/Los_Angeles: No such file or Directory" Something wrong with me?
Hi, You might need these patches: Fix Makefile quoting bug https://github.com/eggert/tz/commit/b520d20b8122a783f99f088758b78d928f70ee34 Port zdump to C90 + snprintf https://github.com/eggert/tz/commit/e231da4fb2beb17c60b4b1a5c276366d6a6e433f Everything works as expected for me when I use these patches. Hope this helps! Patsy On Wed, Oct 25, 2017 at 11:01 PM, 大山俊成 <ohyamat@citizen.co.jp> wrote:
Hi, Previously, I tryed 2017b like the following. make TOPDIR=$HOME/tzdir install $HOME/tzdir/etc/zdump -v America/Los_Angeles It works good .
Now I tryed 2017c as the same way. make TOPDIR=$HOME/tzdir install $HOME/tzdir/etc/zdump -v America/Los_Angeles But , zdump outputs "America/Los_Angeles: No such file or Directory"
Something wrong with me?
Hi, Patsy. I'm Ohyama. Thank you for your information,. Unfortunately, these paches don't works good for me.
On 10/25/2017 08:01 PM, 大山俊成 wrote:
Hi, Previously, I tryed 2017b like the following. make TOPDIR=$HOME/tzdir install $HOME/tzdir/etc/zdump -v America/Los_Angeles It works good .
Now I tryed 2017c as the same way. make TOPDIR=$HOME/tzdir install $HOME/tzdir/etc/zdump -v America/Los_Angeles But , zdump outputs "America/Los_Angeles: No such file or Directory"
Something wrong with me?
I'm not observing that problem with 2017c, on Fedora 26 x86-64. I built with: make TOPDIR=/tmp/tzdir install /tmp/tzdir/etc/zdump America/Los_Angeles and got today's date in Los Angeles time. What platform are you running on? What is the value of "$HOME"? If you run this command: strace -o /tmp/tr $HOME/tzdir/etc/zdump America/Los_Angeles which files are opened, as logged in /tmp/tr?
Hi, Paul. Thank you for your information. My platform is Ubuntu 14.04 64bit (on VirtualBox). And $HOME is my home directory(/home/ohyamat). /tmp/tr is like the followings ------------------------------------------------------------------------------ open("./tzdir/etc/zoneinfo/UTC0", O_RDONLY) = -1 ENOENT (No such file or directory) open("./tzdir/etc/zoneinfo/posixrules", O_RDONLY) = -1 ENOENT (No such file or directory) open("./tzdir/etc/zoneinfo/America/Los_Angeles", O_RDONLY) = -1 ENOENT (No such file or directory) dup(2) = 3 fcntl(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE) fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fcea0ad4000 lseek(3, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek) write(3, "America/Los_Angeles: No such fil"..., 47) = 47 close(3) = 0 munmap(0x7fcea0ad4000, 4096) = 0 exit_group(1) = ? +++ exited with 1 +++ ------------------------------------------------------------------------------ I guess I misunderstand something basic. I tried 2 cases. case1: use tzcode-latest.tar.gz tzdata-latest.tar.gz --> Don't work. case2: use tzdb-latest.tar.lz --> Woks GOOD! In case1, there are not America,Asia,Africa ... folders in etc/zoneinfo/ Ohyama
On 10/26/2017 05:35 PM, 大山俊成 wrote:
open("./tzdir/etc/zoneinfo/America/Los_Angeles", O_RDONLY) = -1 ENOENT (No such file or directory)
It looks like when you compiled the program, TOPDIR was simply ".". Please try building tzdb-2017c from scratch, and make sure that TOPDIR is an absolute file name, i.e., that TOPDIR begins with "/". You should be able to verify this by looking at the output of 'make'; it should say that TZDIR is an absolute file name.
On 10/26/2017 05:35 PM, 大山俊成 wrote:
I tried 2 cases. case1: use tzcode-latest.tar.gz tzdata-latest.tar.gz --> Don't work. case2: use tzdb-latest.tar.lz --> Woks GOOD!
The two cases should be identical, since they contain the same files. I suspect that you configured one of them differently from the other. Anyway, it's working for you now, so that's good.
I tried some configuration (TOPDIR was simply "." or $HOME ,patch....) Maybe, I guess I operated in the wrong way as you say. Anyway your comment was helpful for me, thank you .
participants (3)
-
Patsy Franklin -
Paul Eggert -
大山俊成