From: | "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu> |
---|---|
To: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | dwayne(at)mika(dot)com, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [HACKERS] DEC Alpha and HAVE_INT_TIMEZONE |
Date: | 1998-03-21 04:42:24 |
Message-ID: | 35134530.55EAA0F5@alumni.caltech.edu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> > I've finally figured out why the Alpha fails when
> > HAVE_INT_TIMEZONE is defined. As far as I'm concerned, somebody
> > at DEC should be shot. The problem has nothing to do with
> > postgresql code. The symbol 'timezone' is defined in two
> > different libraries, as two very different things! libc.a
> > defines it as a global variable of type long, as documented in
> > the timezone(3) manpage. However, libbsd.a defines a function
> > named timezone. Since we link explicitly to -lbsd, guess which
> > definition gets linked into the program? We're using the address
> > of that function as our timezone offset. Well, the low four
> > bytes of the address, anyway.
>
> I assume they are supporting both uses for the symbol. I recommend
> hard-coding the stuff into the port, and hopefully it will work.
> > As far as I can tell, we don't require any of the routines used
> > in libbsd.a. I'm about to do some more testing to confirm this,
> > so hopefully a patch will be on its way soon. Up to this point,
> > all I've recompiled under this new model is postgres, which links
> > fine, and runs without error. The only failure on the date tests
> > that I noticed seemed to be using PST when it should have been
> > PDT. I suspect that's an artifact of where I am (Michigan)
> > which, according to the /etc/zoneinfo/localtime source, didn't
> > observe DST between 1968 and 1973.
>
> Yea, I see this sometimes too on BSDI.
One of the other ports (AIX?) had this problem and they could just
remove the libbsd from the link arguments.
- Tom
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 1998-03-21 05:34:59 | 6.3p1 CHANGES |
Previous Message | Bruce Momjian | 1998-03-21 03:40:54 | Re: [HACKERS] Re: [PATCHES] patches for 6.2.1p6 |