> > > 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 ?

Vadim

Mon, 20 Nov 2000 11:12:18 -0800
"Mikheev, Vadim" <vmikheev@SECTORBASE.COM>
RE: err, XLOG/UW711/cc/Doesn't compile.
* Mikheev, Vadim <vmikheev@SECTORBASE.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@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

Mon, 20 Nov 2000 13:28:11 -0600
"'Larry Rosenman'" <ler@lerctr.org>
Re: err, XLOG/UW711/cc/Doesn't compile.