OS/2, eCS & ArcaOS - Technical > Applications

XTide

<< < (2/4) > >>

Dave Yeo:
Interesting, I wasn't sure how to run it, as well as not having the local tide database for here. There's a whole rabbit hole on the tidal databases. Seems they were public domain but no more and my government is worried about commercial use :(
I am curious about the local tides, I'm perhaps 30 miles upstream from the ocean and the railroad bridge in town is considered the end of tidal waters.
I'll have to read up on the time zone support and whether x:\sys\apps\timeset\tz_en.lst that is installed by AOS is good enough. Seems it should be taken care off by the operating system and ideally installed in %ETC%
Then there is the rabbit hole of when the time zones change. Here the Province passed a law to switch to DST when ever you guys get around to it.

Dave Yeo:

--- Quote from: Martin Iturbide on January 18, 2026, 02:32:55 pm ---Hello Dave

I created this repo: https://github.com/OS2World/APP-SCIENCE-XTide
Let me know if you think that way is fine (the program and the library), otherwise, just delete the files and set it as you like it.

Also, a quick tutorial on how it works would be appreciated just to test it out.

Regards

--- End quote ---

It's fine. At first I had git problems much like earlier. Went down the rabbit hole of restoring backups and screwing around. On that install, the latest libc update broke git.
Ended up using a different install and things work. Still can't update git due to a CVS dependency with no cvs.rpm. Need to open a ticket but github has become so hard to use on OS/2.

Dave Yeo:
Working on time support. Downloaded tzdb and did some editing of the makefile. There are a lot of options but first step is compiling.
The problems I've run into is first a static vs non-static problem,

--- Code: ---c99 -DHAVE_GETRESUID=0 -DHAVE_GETEUID=0 -DHAVE_ISSETUGID=0   -c -o localtime.o localtime.c
localtime.c:388:1: error: static declaration of 'issetugid' follows non-static declaration
  388 | issetugid(void)
      | ^~~~~~~~~
In file included from private.h:266,
                 from localtime.c:16:
M:/usr/lib/gcc/i686-pc-os2-emx/9/include-fixed/unistd.h:525:6: note: previous declaration of 'issetugid' was here
  525 | int  issetugid(void);
      |      ^~~~~~~~~
make: *** [<builtin>: localtime.o] Error 1

--- End code ---

I can remove the static but then get a duplicate symbol error,

--- Code: ---c99 -o zdump -DHAVE_GETRESUID=0 -DHAVE_GETEUID=0 -DHAVE_ISSETUGID=0 -Zexe -Zomf -Zhigh-mem -Zmap zdump.o localtime.o strftime.o -lintl
weakld: H:\tmp\ldconv_strftime_o_8da5696ed544186c40.obj - error: Duplicate symbol '_issetugid' ('_issetugid').
weakld: H:\tmp\ldconv_localtime_o_8da5696ed544184d00.obj - error: Symbol previously defined in this module.

--- End code ---

Even if and when I get it built, have to figure out how to install/use it

Steven Levine:
Without looking at the code, I have to guess that -DHAVE_ISSETUGID=0 is part of the problem.  This is going to trigger the compatibility code to build.  However, since we have a issetugid(), this is going to cause a problem.

Dave Yeo:
Actually, I added that after the failure, the other defines did fix other issues. The code has a lot of defines and only a makefile. Likely grew a lot  Perhaps Martin will create an empty tzdb git repository and I'll push my code.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version