[MacPorts] #71355: postgresql16 @16.4_1 does not build on PPC Tiger, Mac OS X 10.4.11, because of "Extraneous text after `else' directive"
MacPorts
noreply at macports.org
Tue Nov 19 13:25:45 UTC 2024
#71355: postgresql16 @16.4_1 does not build on PPC Tiger, Mac OS X 10.4.11, because
of "Extraneous text after `else' directive"
---------------------------+-----------------------
Reporter: ballapete | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.4
Resolution: | Keywords: tiger ppc
Port: postgresql16 |
---------------------------+-----------------------
Comment (by ballapete):
Found in:
{{{
./src/backend/access/transam/xlog.c:183:#ifdef O_DSYNC
./src/backend/access/transam/xlog.c:184: {"open_datasync",
SYNC_METHOD_OPEN_DSYNC, false},
./src/backend/access/transam/xlog.c:2312:
sync_method != SYNC_METHOD_OPEN_DSYNC)
./src/backend/access/transam/xlog.c:2988: * O_DSYNC will be
sufficient to sync future writes to the log file.
./src/backend/access/transam/xlog.c:8117:#ifdef O_DSYNC
./src/backend/access/transam/xlog.c:8118: case
SYNC_METHOD_OPEN_DSYNC:
./src/backend/access/transam/xlog.c:8119: return
O_DSYNC | o_direct_flag;
./src/backend/access/transam/xlog.c:8187: sync_method ==
SYNC_METHOD_OPEN_DSYNC)
./src/backend/access/transam/xlog.c:8214: case
SYNC_METHOD_OPEN_DSYNC:
./src/backend/storage/file/fd.c:1078:
O_DSYNC |
./src/bin/pg_test_fsync/pg_test_fsync.c:303:#ifdef O_DSYNC
./src/bin/pg_test_fsync/pg_test_fsync.c:304: if ((tmpfile =
open_direct(filename, O_RDWR | O_DSYNC | PG_BINARY, 0)) == -1)
./src/include/access/xlog.h:26:#define SYNC_METHOD_OPEN_DSYNC 4 /*
for O_DSYNC */
./src/include/access/xlogdefs.h:72: * Note that we define our own O_DSYNC
on Windows, but not O_SYNC.
./src/include/access/xlogdefs.h:76:#elif defined(O_DSYNC) &&
(!defined(O_SYNC) || O_DSYNC != O_SYNC)
./src/include/access/xlogdefs.h:77:#define DEFAULT_SYNC_METHOD
SYNC_METHOD_OPEN_DSYNC
./src/include/port/win32_port.h:360:#define O_DSYNC 0x0080
./src/port/open.c:77:
_O_SHORT_LIVED | O_DSYNC | O_DIRECT |
./src/port/open.c:99:
((fileFlags & O_DSYNC) ? FILE_FLAG_WRITE_THROUGH : 0),
}}}
Two C header files – but src/include/access/xlogdefs.h might be the origin
or root…
--
Ticket URL: <https://trac.macports.org/ticket/71355#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list