Re: err, XLOG/UW711/cc/Doesn't compile.
От | 'Larry Rosenman' |
---|---|
Тема | Re: err, XLOG/UW711/cc/Doesn't compile. |
Дата | |
Msg-id | 20001120132811.A11452@lerami.lerctr.org обсуждение исходный текст |
Ответ на | RE: err, XLOG/UW711/cc/Doesn't compile. ("Mikheev, Vadim" <vmikheev@SECTORBASE.COM>) |
Список | pgsql-hackers |
* 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
В списке pgsql-hackers по дате отправления: