DeoLeung opened a new issue, #1511:
URL: https://github.com/apache/age/issues/1511
**Describe the bug**
```bash
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement
-Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3
-Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv
-fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g
-g -O2 -fstack-protector-strong -Wformat -Werror=format-security
-fno-omit-frame-pointer -fPIC -I.//src/include -I.//src/include/parser -I. -I./
-I/usr/include/postgresql/14/server -I/usr/include/postgresql/internal
-Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -c -o
src/backend/age.o src/backend/age.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement
-Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3
-Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv
-fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g
-g -O2 -fstack-protector-strong -Wformat -Werror=format-security
-fno-omit-frame-pointer -fPIC -I.//src/include -I.//src/include/parser -I. -I./
-I/usr/include/postgresql/14/server -I/usr/include/postgresql/internal
-Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -c -o
src/backend/catalog/ag_catalog.o src/backend/catalog/ag_catalog.c
src/backend/catalog/ag_catalog.c: In function ‘process_utility_hook_init’:
src/backend/catalog/ag_catalog.c:71:25: warning: assignment to
‘ProcessUtility_hook_type’ {aka ‘void (*)(PlannedStmt *, const char *, _Bool,
ProcessUtilityContext, struct ParamListInfoData *, QueryEnvironment *, struct
_DestReceiver *, QueryCompletion *)’} from incompatible pointer type ‘void
(*)(PlannedStmt *, const char *, ProcessUtilityContext, struct
ParamListInfoData *, QueryEnvironment *, DestReceiver *, QueryCompletion *)’
{aka ‘void (*)(PlannedStmt *, const char *, ProcessUtilityContext, struct
ParamListInfoData *, QueryEnvironment *, struct _DestReceiver *,
QueryCompletion *)’} [-Wincompatible-pointer-types]
71 | ProcessUtility_hook = ag_ProcessUtility_hook;
| ^
src/backend/catalog/ag_catalog.c: In function ‘ag_ProcessUtility_hook’:
src/backend/catalog/ag_catalog.c:97:68: error: incompatible type for
argument 4 of ‘prev_process_utility_hook’
97 | (*prev_process_utility_hook) (pstmt, queryString, context,
params,
|
^~~~~~
| |
|
ParamListInfo {aka struct ParamListInfoData *}
src/backend/catalog/ag_catalog.c:97:68: note: expected
‘ProcessUtilityContext’ but argument is of type ‘ParamListInfo’ {aka ‘struct
ParamListInfoData *’}
src/backend/catalog/ag_catalog.c:98:39: warning: passing argument 5 of
‘prev_process_utility_hook’ from incompatible pointer type
[-Wincompatible-pointer-types]
98 | queryEnv, dest, qc);
| ^~~~~~~~
| |
| QueryEnvironment *
src/backend/catalog/ag_catalog.c:98:39: note: expected ‘ParamListInfo’ {aka
‘struct ParamListInfoData *’} but argument is of type ‘QueryEnvironment *’
src/backend/catalog/ag_catalog.c:98:49: warning: passing argument 6 of
‘prev_process_utility_hook’ from incompatible pointer type
[-Wincompatible-pointer-types]
98 | queryEnv, dest, qc);
| ^~~~
| |
| DestReceiver * {aka
struct _DestReceiver *}
src/backend/catalog/ag_catalog.c:98:49: note: expected ‘QueryEnvironment *’
but argument is of type ‘DestReceiver *’ {aka ‘struct _DestReceiver *’}
src/backend/catalog/ag_catalog.c:98:55: warning: passing argument 7 of
‘prev_process_utility_hook’ from incompatible pointer type
[-Wincompatible-pointer-types]
98 | queryEnv, dest, qc);
| ^~
| |
|
QueryCompletion *
src/backend/catalog/ag_catalog.c:98:55: note: expected ‘DestReceiver *’ {aka
‘struct _DestReceiver *’} but argument is of type ‘QueryCompletion *’
src/backend/catalog/ag_catalog.c:97:10: error: too few arguments to function
‘prev_process_utility_hook’
97 | (*prev_process_utility_hook) (pstmt, queryString, context,
params,
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/backend/catalog/ag_catalog.c:100:62: error: incompatible type for
argument 4 of ‘standard_ProcessUtility’
100 | standard_ProcessUtility(pstmt, queryString, context, params,
queryEnv,
| ^~~~~~
| |
|
ParamListInfo {aka struct ParamListInfoData *}
In file included from src/backend/catalog/ag_catalog.c:27:
/usr/include/postgresql/14/server/tcop/utility.h:87:95: note: expected
‘ProcessUtilityContext’ but argument is of type ‘ParamListInfo’ {aka ‘struct
ParamListInfoData *’}
87 |
ProcessUtilityContext context, ParamListInfo params,
|
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
src/backend/catalog/ag_catalog.c:100:70: warning: passing argument 5 of
‘standard_ProcessUtility’ from incompatible pointer type
[-Wincompatible-pointer-types]
100 | standard_ProcessUtility(pstmt, queryString, context, params,
queryEnv,
|
^~~~~~~~
|
|
|
QueryEnvironment *
/usr/include/postgresql/14/server/tcop/utility.h:87:118: note: expected
‘ParamListInfo’ {aka ‘struct ParamListInfoData *’} but argument is of type
‘QueryEnvironment *’
87 |
ProcessUtilityContext context, ParamListInfo params,
|
~~~~~~~~~~~~~~^~~~~~
src/backend/catalog/ag_catalog.c:101:33: warning: passing argument 6 of
‘standard_ProcessUtility’ from incompatible pointer type
[-Wincompatible-pointer-types]
101 | dest, qc);
| ^~~~
| |
| DestReceiver * {aka struct
_DestReceiver *}
/usr/include/postgresql/14/server/tcop/utility.h:88:91: note: expected
‘QueryEnvironment *’ but argument is of type ‘DestReceiver *’ {aka ‘struct
_DestReceiver *’}
88 |
QueryEnvironment *queryEnv,
|
~~~~~~~~~~~~~~~~~~^~~~~~~~
src/backend/catalog/ag_catalog.c:101:39: warning: passing argument 7 of
‘standard_ProcessUtility’ from incompatible pointer type
[-Wincompatible-pointer-types]
101 | dest, qc);
| ^~
| |
| QueryCompletion *
/usr/include/postgresql/14/server/tcop/utility.h:89:87: note: expected
‘DestReceiver *’ {aka ‘struct _DestReceiver *’} but argument is of type
‘QueryCompletion *’
89 |
DestReceiver *dest, QueryCompletion *qc);
|
~~~~~~~~~~~~~~^~~~
src/backend/catalog/ag_catalog.c:100:9: error: too few arguments to function
‘standard_ProcessUtility’
100 | standard_ProcessUtility(pstmt, queryString, context, params,
queryEnv,
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/postgresql/14/server/tcop/utility.h:85:13: note: declared here
85 | extern void standard_ProcessUtility(PlannedStmt *pstmt, const char
*queryString,
| ^~~~~~~~~~~~~~~~~~~~~~~
make: *** [<builtin>: src/backend/catalog/ag_catalog.o] Error 1
```
**What is the command that caused the error?**
using official docker image of postgresql 14.10 bookworm
```bash
tar xzvf apache-age-1.5.0-src.tar.gz && \
cd apache-age-1.5.0 && \
make install && \
```
**Expected behavior**
13 & 15 installation is fine on latest postgres image, 14 fails
**Environment (please complete the following information):**
- Version: [e.g. 0.4.0]
**Additional context**
Add any other context about the problem here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]