| From: | "'Larry Rosenman'" <ler(at)lerctr(dot)org> |
|---|---|
| To: | PostgreSQL Hackers List <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: err, XLOG/UW711/cc/Doesn't compile. |
| Date: | 2000-11-20 19:28:11 |
| Message-ID: | 20001120132811.A11452@lerami.lerctr.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
* Mikheev, Vadim <vmikheev(at)SECTORBASE(dot)COM> [001120 13:26]:
> > > > more info. It seems to not like the following from
> > > > src/include/buffer/bufpage.h (line 305):
> > > > #define PageSetLSN(page, lsn) \
> > > > (((PageHeader) (page))->pd_lsn = (XLogRecPtr) (lsn))
> > > >
> > > > I'm not sure what it's trying to do...
> > >
> > > Just assign values to 8 bytes structure in pageheader.
> >
> > It's because XLogRecPtr is a struct. You can't assign structs with
> > '='. Gotta use memcpy, etc.
>
> I had no problems with this on Solaris & Linux. Also I think that
> there are another places in code where it worked so far.
> Anyway, there are just two members in this struct - Larry, could
> you try make this assignment by members and let us know ?
I bet you used GCC on all those platforms... cc on UnixWare is
a C99 compiler....
I'll see if I can find the right pieces. This is evidently
*NON*-Portable in it's current form.
>
> Vadim
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 (voice) Internet: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
| From | Date | Subject | |
|---|---|---|---|
| Next Message | 'Larry Rosenman' | 2000-11-20 19:35:56 | Re: err, XLOG/UW711/cc/Doesn't compile. |
| Previous Message | Mikheev, Vadim | 2000-11-20 19:13:49 | RE: err, XLOG/UW711/cc/Doesn't compile. |