Sorry to have messed up a bit at xenofarm, My Linux sparc64 is listed 3 times, the first time I misconfigured /etc/hosts. The second has something to do with the fact it now runs from cron as user, and not from commandline as root.
Now the build itself, on both machine (alpha and malcolm) the testsuite fails at 2 points, currently I'm looking at the first.
The function: Calendar.Minute(2040,11,8,2,46) returns an error. When I run it from hilfe I get the same error see below. However on other Linux machines it runs fine. Any pointers where this goes wrong?
marc@malcolm:~$ pike Pike v7.7 release 11 running Hilfe v3.5 (Incremental Pike Frontend)
mixed a= Calendar.Minute(2040,11,8,2,46) ;
Time is out of range for Timezone.localtime() /usr/local/pike/7.7.11/lib/modules/Calendar.pmod/Timezone.pmod:202: Timezone.localtime()->tz_ux(2236032000) /usr/local/pike/7.7.11/lib/modules/Calendar.pmod/YMD.pike:159: Day(Fri 9 Nov 2040 0:00 sharp)->unix_time() /usr/local/pike/7.7.11/lib/modules/Calendar.pmod/YMD.pike:982: Day(Thu 8 Nov 2040)->number_of_seconds() /usr/local/pike/7.7.11/lib/modules/Calendar.pmod/YMD.pike:891: Day(Thu 8 Nov 2040)->get_timeofday("seconds",0,1,ISO->cSecond,9960,9960) /usr/local/pike/7.7.11/lib/modules/Calendar.pmod/YMD.pike:881: Day(Thu 8 Nov 2040)->get_unit("second",9960) /usr/local/pike/7.7.11/lib/modules/Calendar.pmod/Time.pmod:132: Minute(Thu 8 Nov 2040 0:00 local sharp)->create_backtry(2,46) /usr/local/pike/7.7.11/lib/modules/Calendar.pmod/Time.pmod:106: Minute(Thu 8 Nov 2040 0:00 local sharp)->create(2040,11,8,2,46) /usr/local/pike/7.7.11/lib/modules/Calendar.pmod/YMD.pike:3069: ISO->cMinute()
If you set your timezone to your actual timezone (and not localtime) I think you will find that things start working. Providing details about where (in the file system, for instance) to find which timezone your machine has may make Pike better at defaulting to that zone, too.
On Fri, Feb 25, 2005 at 05:40:01PM +0100, Johan Sundström (Achtung Liebe!) @ Pike (-) developers forum wrote:
If you set your timezone to your actual timezone (and not localtime) I think you will find that things start working.
Sorry I don't really understand, whenn I installed Linux I selected Europe/Amsterdam as local timezone. Isn't that enough or should I declare this somewhere?
Providing details about where (in the file system, for instance) to find which timezone your machine has may make Pike better at defaulting to that zone, too.
How is this done?
Sorry for the newbie questions.
/Marc
Sorry to be replying to myself.
It actually works, (might be what you meant) to do:
Calendar.Calendar mycal= Calendar.ISO->set_timezone("Europe/Amsterdam"); mycal->Minute(2040,11,8,2,46) ;
(3) Result: Minute(Thu 8 Nov 2040 2:46 CET)
But this is not done in the pike-testsuite. How can I get it to work there?
On Fri, Feb 25, 2005 at 06:50:03PM +0100, Marc Dirix wrote:
On Fri, Feb 25, 2005 at 05:40:01PM +0100, Johan Sundström (Achtung Liebe!) @ Pike (-) developers forum wrote:
If you set your timezone to your actual timezone (and not localtime) I think you will find that things start working.
Sorry I don't really understand, whenn I installed Linux I selected Europe/Amsterdam as local timezone. Isn't that enough or should I declare this somewhere?
Providing details about where (in the file system, for instance) to find which timezone your machine has may make Pike better at defaulting to that zone, too.
How is this done?
Sorry for the newbie questions.
/Marc
If you know your timezone, you can edit [pike]/lib/modules/Calendar.pmod/localization.h to reflect the correct timezone.
It only defaults to localtime if it can't figure out the timezone, which seems to be a bigger problem on some architectures...
The default is: string default_timezone="locale";
Does this mean the timezone is determined true the locale system? What is actually checked? I don't wan't my locale on this system to actually point to nl_NL or something.
(For my debian system at least) there is a file /etc/timezone which contains the timezone in ascii. And /etc/localtime is the current timezone file copied from /usr/share/zoneinfo, containing the timezone Als Europe/Amsterdam.
Changing [pike]/lib/modules/Calendar.pmod/localization.h helps, but how is this done for every recompile of xenofarm?
Thnx for the help,
/Marc
On Fri, Feb 25, 2005 at 07:20:00PM +0100, Mirar @ Pike developers forum wrote:
If you know your timezone, you can edit [pike]/lib/modules/Calendar.pmod/localization.h to reflect the correct timezone.
It only defaults to localtime if it can't figure out the timezone, which seems to be a bigger problem on some architectures...
pike-devel@lists.lysator.liu.se