pcp
[Top] [All Lists]

Re: [pcp] Desperately seeking Perl help

To: kenj@xxxxxxxxxxxxxxxx
Subject: Re: [pcp] Desperately seeking Perl help
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Wed, 14 Jul 2010 12:43:32 +1000 (EST)
Cc: pcp@xxxxxxxxxxx
In-reply-to: <1997118232.893151279074169863.JavaMail.root@xxxxxxxxxxxxxxxxxx>
----- "Nathan Scott" <nathans@xxxxxxxxxx> wrote:

> ----- "Nathan Scott" <nathans@xxxxxxxxxx> wrote:
> 
> > Not there yet, but closing in on it.  Couple of things that may
> help,
> 
> Its definately timezone related - descending deeper, we can see its
> something to do with the __pmSquashTZ call - if I set TZ in the env
> (and hence skip that call inside __pmLogCreate + __pmTimezone) when
> running the script, everything works...

If I comment out the call to "putenv(tzbuffer);" at libpcp/tz.c, line
126 ... all is well.  Hmmm ... thats ... odd.  Any theories?  Possible
workaround to this odd libpcp/perl-runtime interaction might be to set
the TZ variable yourself before calling __pmLogCreate...?  Bit of a
hack, but anything else is going to require libpcp changes I suspect.

cheers.

-- 
Nathan

<Prev in Thread] Current Thread [Next in Thread>