Skip to content

cant make on pg16 #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Artivus2 opened this issue Oct 14, 2024 · 1 comment
Closed

cant make on pg16 #20

Artivus2 opened this issue Oct 14, 2024 · 1 comment

Comments

@Artivus2
Copy link

Здравствуйте! при попытке сделать make install валятся ошибки
root@ubuntu-master:/build_postgresql/contrib#cd mmts/
root@ubuntu-master:
/build_postgresql/contrib/mmts# make
make -C ../../src/backend generated-headers
make[1]: Entering directory '/root/build_postgresql/src/backend'
make -C catalog distprep generated-header-symlinks
make[2]: Entering directory '/root/build_postgresql/src/backend/catalog'
make[2]: Nothing to be done for 'distprep'.
make[2]: Nothing to be done for 'generated-header-symlinks'.
make[2]: Leaving directory '/root/build_postgresql/src/backend/catalog'
make -C nodes distprep generated-header-symlinks
make[2]: Entering directory '/root/build_postgresql/src/backend/nodes'
make[2]: Nothing to be done for 'distprep'.
make[2]: Nothing to be done for 'generated-header-symlinks'.
make[2]: Leaving directory '/root/build_postgresql/src/backend/nodes'
make -C utils distprep generated-header-symlinks
make[2]: Entering directory '/root/build_postgresql/src/backend/utils'
make[2]: Nothing to be done for 'distprep'.
make[2]: Nothing to be done for 'generated-header-symlinks'.
make[2]: Leaving directory '/root/build_postgresql/src/backend/utils'
make[1]: Leaving directory '/root/build_postgresql/src/backend'
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -O2 -fPIC -fvisibility=hidden -I/root/postgresql-16.0/contrib/mmts/src/include -I/root/postgresql-16.0/src/interfaces/libpq -I. -I/root/postgresql-16.0/contrib/mmts -I../../src/include -I/root/postgresql-16.0/src/include -D_GNU_SOURCE -c -o src/multimaster.o src/multimaster.c
src/multimaster.c: In function ‘_PG_init’:
src/multimaster.c:743:9: error: ‘DetectGlobalDeadLock’ undeclared (first use in this function); did you mean ‘MtmDetectGlobalDeadLock’?
743 | DetectGlobalDeadLock = MtmDetectGlobalDeadLock;
| ^~~~~~~~~~~~~~~~~~~~
| MtmDetectGlobalDeadLock
src/multimaster.c:743:9: note: each undeclared identifier is reported only once for each function it appears in
In file included from /root/postgresql-16.0/src/include/postgres.h:45,
from src/multimaster.c:10:
src/multimaster.c: In function ‘MtmIsEnabled’:
src/multimaster.c:791:38: warning: implicit declaration of function ‘get_publication_oid’; did you mean ‘GetPublication’? [-Wimplicit-function-declaration]
791 | enabled = OidIsValid(get_publication_oid(MULTIMASTER_NAME, true));
| ^~~~~~~~~~~~~~~~~~~
/root/postgresql-16.0/src/include/c.h:759:41: note: in definition of macro ‘OidIsValid’
759 | #define OidIsValid(objectId) ((bool) ((objectId) != InvalidOid))
| ^~~~~~~~
src/multimaster.c: In function ‘check_config’:
src/multimaster.c:854:13: error: ‘max_prepared_xacts’ undeclared (first use in this function); did you mean ‘pg_prepared_xact’?
854 | if (max_prepared_xacts < 1)
| ^~~~~~~~~~~~~~~~~~
| pg_prepared_xact
src/multimaster.c: In function ‘mtm_after_node_create’:
src/multimaster.c:1146:25: error: ‘CreatePublicationStmt’ has no member named ‘tables’
1146 | pub_stmt->tables = NIL;
| ^~
src/multimaster.c:1150:35: warning: passing argument 1 of ‘CreatePublication’ from incompatible pointer type [-Wincompatible-pointer-types]
1150 | CreatePublication(pub_stmt);
| ^~~~~~~~
| |
| CreatePublicationStmt *
In file included from src/multimaster.c:24:
/root/postgresql-16.0/src/include/commands/publicationcmds.h:25:52: note: expected ‘ParseState *’ but argument is of type ‘CreatePublicationStmt *’
25 | extern ObjectAddress CreatePublication(ParseState *pstate, CreatePublicationStmt *stmt);
| ~~~~~~~~~~~~^~~~~~
src/multimaster.c:1150:17: error: too few arguments to function ‘CreatePublication’
1150 | CreatePublication(pub_stmt);
| ^~~~~~~~~~~~~~~~~
/root/postgresql-16.0/src/include/commands/publicationcmds.h:25:22: note: declared here
25 | extern ObjectAddress CreatePublication(ParseState *pstate, CreatePublicationStmt *stmt);
| ^~~~~~~~~~~~~~~~~
src/multimaster.c:1189:36: warning: passing argument 1 of ‘CreateSubscription’ from incompatible pointer type [-Wincompatible-pointer-types]
1189 | CreateSubscription(cs_stmt, true);
| ^~~~~~~
| |
| CreateSubscriptionStmt *
In file included from src/multimaster.c:25:
/root/postgresql-16.0/src/include/commands/subscriptioncmds.h:21:53: note: expected ‘ParseState *’ but argument is of type ‘CreateSubscriptionStmt *’
21 | extern ObjectAddress CreateSubscription(ParseState *pstate, CreateSubscriptionStmt *stmt,
| ~~~~~~~~~~~~^~~~~~
src/multimaster.c:1189:45: warning: passing argument 2 of ‘CreateSubscription’ makes pointer from integer without a cast [-Wint-conversion]
1189 | CreateSubscription(cs_stmt, true);
| ^~~~
| |
| int
/root/postgresql-16.0/src/include/commands/subscriptioncmds.h:21:85: note: expected ‘CreateSubscriptionStmt *’ but argument is of type ‘int’
21 | extern ObjectAddress CreateSubscription(ParseState *pstate, CreateSubscriptionStmt *stmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
src/multimaster.c:1189:17: error: too few arguments to function ‘CreateSubscription’
1189 | CreateSubscription(cs_stmt, true);
| ^~~~~~~~~~~~~~~~~~
/root/postgresql-16.0/src/include/commands/subscriptioncmds.h:21:22: note: declared here
21 | extern ObjectAddress CreateSubscription(ParseState *pstate, CreateSubscriptionStmt *stmt,
| ^~~~~~~~~~~~~~~~~~
src/multimaster.c: In function ‘mtm_ping’:
src/multimaster.c:1527:32: warning: implicit declaration of function ‘pg_strtouint64’; did you mean ‘pg_strtoint64’? [-Wimplicit-function-declaration]
1527 | peer_gen_num = pg_strtouint64(PQgetvalue(res, 0, 0), NULL, 10);
| ^~~~~~~~~~~~~~
| pg_strtoint64
src/multimaster.c: In function ‘MtmMesageToString’:
src/multimaster.c:2350:62: error: expected ‘)’ before ‘XID_FMT’
2350 | appendStringInfo(&si, ", "xid": "" XID_FMT """, msg->xid);
| ~ ^~~~~~~~
| )
src/multimaster.c: In function ‘mtm_hold_backends’:
src/multimaster.c:2513:17: error: unknown type name ‘PreparedTransaction’
2513 | PreparedTransaction pxacts;
| ^~~~~~~~~~~~~~~~~~~
src/multimaster.c:2517:30: warning: implicit declaration of function ‘GetPreparedTransactions’ [-Wimplicit-function-declaration]
2517 | n_prepares = GetPreparedTransactions(&pxacts);
| ^~~~~~~~~~~~~~~~~~~~~~~
src/multimaster.c:2523:50: error: subscripted value is neither array nor pointer nor vector
2523 | deserialize_xstate(pxacts[i].state_3pc, &xinfo, &gtx_state, PANIC);
| ^
src/multimaster.c:2529:31: warning: passing argument 1 of ‘pfree’ makes pointer from integer without a cast [-Wint-conversion]
2529 | pfree(pxacts);
| ^~~~~~
| |
| int
In file included from /root/postgresql-16.0/src/include/postgres.h:47:
/root/postgresql-16.0/src/include/utils/palloc.h:87:25: note: expected ‘void *’ but argument is of type ‘int’
87 | extern void pfree(void *pointer);
| ~~~~~~^~~~~~~
make: *** [: src/multimaster.o] Error 1

@Artivus2
Copy link
Author

read early issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant