vladiksun opened a new issue, #1140:
URL: https://github.com/apache/age/issues/1140
**Describe the bug**
Master branch does not compile inside docker. Release versions compile
without any issues.
Docker file content
```
FROM postgres:11-buster
COPY apache_age_distrib/age /home/age_master
RUN apt-get update \
&& apt-get install --assume-yes --no-install-recommends
--no-install-suggests \
bison \
build-essential \
flex \
postgresql-server-dev-11
RUN \
cd /home/age_master \
&& make install \
&& cd / \
&& rm -r /home/age_master
RUN \
mkdir -p /usr/lib/postgresql/11/lib/plugins \
&& ln /usr/lib/postgresql/11/lib/age.so
/usr/lib/postgresql/11/lib/plugins/age.so
CMD ["postgres", "-c", "shared_preload_libraries=age"]
```
Error log
```
gcc -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute
-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/11/server -I/usr/include/postgresql/internal
-Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2
-I/usr/include/mit-krb5 -c -o src/backend/catalog/ag_catalog.o
src/backend/catalog/ag_catalog.c
src/backend/catalog/ag_catalog.c:45:29: error: unknown type name
‘QueryCompletion’
QueryCompletion *qc);
^~~~~~~~~~~~~~~
src/backend/catalog/ag_catalog.c: In function ‘process_utility_hook_init’:
src/backend/catalog/ag_catalog.c:71:27: error: ‘ag_ProcessUtility_hook’
undeclared (first use in this function); did you mean ‘ProcessUtility_hook’?
ProcessUtility_hook = ag_ProcessUtility_hook;
^~~~~~~~~~~~~~~~~~~~~~
ProcessUtility_hook
src/backend/catalog/ag_catalog.c:71:27: note: each undeclared identifier is
reported only once for each function it appears in
src/backend/catalog/ag_catalog.c: At top level:
src/backend/catalog/ag_catalog.c:92:30: error: unknown type name
‘QueryCompletion’
QueryCompletion *qc)
^~~~~~~~~~~~~~~
src/backend/catalog/ag_catalog.c: In function ‘is_age_drop’:
src/backend/catalog/ag_catalog.c:140:13: error: unknown type name ‘String’;
did you mean ‘stdin’?
String *val = (String *)obj;
^~~~~~
stdin
src/backend/catalog/ag_catalog.c:140:28: error: ‘String’ undeclared (first
use in this function); did you mean ‘T_String’?
String *val = (String *)obj;
^~~~~~
T_String
src/backend/catalog/ag_catalog.c:140:36: error: expected expression before
‘)’ token
String *val = (String *)obj;
^
src/backend/catalog/ag_catalog.c:141:28: error: request for member ‘sval’
in something not a structure or union
char *str = val->sval;
^~
At top level:
src/backend/catalog/ag_catalog.c:124:13: warning: ‘is_age_drop’ defined but
not used [-Wunused-function]
static bool is_age_drop(PlannedStmt *pstmt)
^~~~~~~~~~~
src/backend/catalog/ag_catalog.c:104:13: warning: ‘drop_age_extension’
defined but not used [-Wunused-function]
static void drop_age_extension(DropStmt *stmt)
^~~~~~~~~~~~~~~~~~
make: *** [<builtin>: src/backend/catalog/ag_catalog.o] Error 1
```
--
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]