Re: PostgreSQL does not compile on macOS SDK 15.0
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Aleksander Alekseev <aleksander@timescale.com>
Cc: Pg Hackers <pgsql-hackers@lists.postgresql.org>, Stan Hu <stanhu@gmail.com>
Date: 2024-06-25T14:31:17Z
Lists: pgsql-hackers
Hi, On 2024-06-25 16:49:32 +0300, Aleksander Alekseev wrote: > ... to make sure Postgres will not find the older version of SDK (it > did until I made this step). You should be able to influence that by specifying -Ddarwin_sysroot=... > ... and get the error reported by Stan. Also I can confirm that the > proposed workaround fixes it. Attached is the result of `git > format-patch` for convenience. > > Personally I'm not extremely happy with this workaround though. Yea, it seems decidedly not great. > An alternative solution would be adding the "pg_" prefix to our type > declarations. A third approach would be to make sure we don't include xlocale.h from pg_locale.h. IMO pg_locale currently exposes too many implementation details, neither xlocale.h nor ucol.h should be included in it, that should be in a C file. > Another question is whether we should fix this while the SDK is in > beta or only after it is released. Yea. Greetings, Andres Freund
Commits
-
Cope with <regex.h> name clashes.
- 9c273679b36b 17.0 landed
- 31423bc4489d 16.4 landed
- 467d77bb1634 15.8 landed
- c2342a925b70 14.13 landed
- 440aedc0fb18 13.16 landed
- 274a8195d479 12.20 landed
- 2a5ef0983040 18.0 landed