Problem with the threadsafe programm.
Hello, I am doing a work experience at Opteway and I am following your work about time zone. I am also working about the threadsafe version and I noticed some problems. The problem : when I use the "tz_prep" function of the library "libtz.a", it indicates me an error. This function works correctly on Linux but doesn't work neither on SunOS nor on Tru64. Thank you for your attention.
On Tuesday, July 10 2001, "abdelaziz boushabi" wrote to "tz@elsie.nci.nih.gov" saying:
Hello, I am doing a work experience at Opteway and I am following your work about time zone. I am also working about the threadsafe version and I noticed some problems.
The problem : when I use the "tz_prep" function of the library "libtz.a", it indicates me an error. This function works correctly on Linux but doesn't work neither on SunOS nor on Tru64.
Thank you for your attention.
You have to make sure that TZDIR in tzfile.h is pointed at a directory that actually contains your zoneinfo files. You can either configure it to use the system zoneinfo files, if they exist and you trust them to be reasonably up-to-date, or you can compile the current tzdata files and point TZDIR at the directory where you installed them. If this isn't the problem you're running into, let me know... I've tested the code on Solaris and FreeBSD. -- Jonathan Lennox lennox@cs.columbia.edu
Jonathan Lennox wrote:
On Tuesday, July 10 2001, "abdelaziz boushabi" wrote to "tz@elsie.nci.nih.gov" saying:
Hello, I am doing a work experience at Opteway and I am following your work about time zone. I am also working about the threadsafe version and I noticed some problems.
The problem : when I use the "tz_prep" function of the library "libtz.a", it indicates me an error. This function works correctly on Linux but doesn't work neither on SunOS nor on Tru64.
Thank you for your attention.
You have to make sure that TZDIR in tzfile.h is pointed at a directory that actually contains your zoneinfo files. You can either configure it to use the system zoneinfo files, if they exist and you trust them to be reasonably up-to-date, or you can compile the current tzdata files and point TZDIR at the directory where you installed them.
If this isn't the problem you're running into, let me know...
I've tested the code on Solaris and FreeBSD.
-- Jonathan Lennox lennox@cs.columbia.edu
In fact, the mistake was that the variable TZ was set to CET on SunOS, that's why it didn't work correctly. In order to avoid this mistake, I unset the variable TZ. If someone have some comment about this, let me know.
On Tuesday, July 10 2001, "abdelaziz boushabi" wrote to "Jonathan Lennox, tz@elsie.nci.nih.gov" saying:
In fact, the mistake was that the variable TZ was set to CET on SunOS, that's why it didn't work correctly. In order to avoid this mistake, I unset the variable TZ. If someone have some comment about this, let me know.
If you want to use the Solaris TZ names, you either have to compile your tzdata with the SysV-compatibility names turned on, or point your TZDIR at the system zoneinfo directory. -- Jonathan Lennox lennox@cs.columbia.edu
participants (2)
-
abdelaziz boushabi -
Jonathan Lennox