BUG #19395: Postgres master: undeclared function 'typeof_unqual' - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #19395: Postgres master: undeclared function 'typeof_unqual'
Date
Msg-id 19395-37f0c2bd1be90022@postgresql.org
Whole thread Raw
Responses Re: BUG #19395: Postgres master: undeclared function 'typeof_unqual'
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      19395
Logged by:          RekGRpth
Email address:      rekgrpth@gmail.com
PostgreSQL version: Unsupported/Unknown
Operating system:   docker alpine 3.23
Description:

Postgres master stopped compiling on Docker Alpine 3.23 after commit
4cfce4e62c8f09f5b1f6a7f69760ca46a74406e2
```
#9 159.2 bootstrap.c:964:3: error: call to undeclared function
'typeof_unqual'; ISO C99 and later do not support implicit function
declarations [-Wimplicit-function-declaration]
#9 159.2   964 |                 copyObject(indexInfo->ii_Expressions);
#9 159.2       |                 ^
#9 159.2 ../../../src/include/nodes/nodes.h:230:27: note: expanded from
macro 'copyObject'
#9 159.2   230 | #define copyObject(obj) ((typeof_unqual(*(obj)) *)
copyObjectImpl(obj))
#9 159.2       |                           ^
#9 159.2 bootstrap.c:964:3: error: expected expression
#9 159.2 ../../../src/include/nodes/nodes.h:230:50: note: expanded from
macro 'copyObject'
#9 159.2   230 | #define copyObject(obj) ((typeof_unqual(*(obj)) *)
copyObjectImpl(obj))
#9 159.2       |                                                  ^
#9 159.2 bootstrap.c:968:3: error: expected expression
#9 159.2   968 |                 copyObject(indexInfo->ii_Predicate);
#9 159.2       |                 ^
#9 159.2 ../../../src/include/nodes/nodes.h:230:50: note: expanded from
macro 'copyObject'
#9 159.2   230 | #define copyObject(obj) ((typeof_unqual(*(obj)) *)
copyObjectImpl(obj))
#9 159.2       |                                                  ^
#9 159.2 3 errors generated.
...
#9 167.4 analyze.c:3184:27: error: call to undeclared function
'typeof_unqual'; ISO C99 and later do not support implicit function
declarations [-Wimplicit-function-declaration]
#9 167.4  3184 |                 stmt->into->viewQuery = copyObject(query);
#9 167.4       |                                         ^
#9 167.4 ../../../src/include/nodes/nodes.h:230:27: note: expanded from
macro 'copyObject'
#9 167.4   230 | #define copyObject(obj) ((typeof_unqual(*(obj)) *)
copyObjectImpl(obj))
#9 167.4       |                           ^
#9 167.4 analyze.c:3184:27: error: expected expression
#9 167.4 ../../../src/include/nodes/nodes.h:230:50: note: expanded from
macro 'copyObject'
#9 167.4   230 | #define copyObject(obj) ((typeof_unqual(*(obj)) *)
copyObjectImpl(obj))
#9 167.4       |                                                  ^
#9 167.4 analyze.c:3293:33: error: call to undeclared function
'typeof_unqual'; ISO C99 and later do not support implicit function
declarations [-Wimplicit-function-declaration]
#9 167.4  3293 |                                         outargs =
lappend(outargs, copyObject(n));
#9 167.4       |
^
#9 167.4 ../../../src/include/nodes/nodes.h:230:27: note: expanded from
macro 'copyObject'
#9 167.4   230 | #define copyObject(obj) ((typeof_unqual(*(obj)) *)
copyObjectImpl(obj))
#9 167.4       |                           ^
#9 167.4 analyze.c:3293:33: error: expected expression
#9 167.4 ../../../src/include/nodes/nodes.h:230:50: note: expanded from
macro 'copyObject'
#9 167.4   230 | #define copyObject(obj) ((typeof_unqual(*(obj)) *)
copyObjectImpl(obj))
#9 167.4       |                                                  ^
#9 167.4 4 errors generated.
#9 167.4 make[2]: *** [../../../src/Makefile.global:1103: analyze.bc] Error
1
...

#9 168.7 gram.y:19536:12: error: call to undeclared function
'typeof_unqual'; ISO C99 and later do not support implicit function
declarations [-Wimplicit-function-declaration]
#9 168.7  19536 |                 result = copyObject(p->argType);
#9 168.7        |                          ^
#9 168.7 ../../../src/include/nodes/nodes.h:230:27: note: expanded from
macro 'copyObject'
#9 168.7   230 | #define copyObject(obj) ((typeof_unqual(*(obj)) *)
copyObjectImpl(obj))
#9 168.8       |                           ^
#9 168.8 gram.y:19536:12: error: expected expression
#9 168.8 ../../../src/include/nodes/nodes.h:230:50: note: expanded from
macro 'copyObject'
#9 168.8   230 | #define copyObject(obj) ((typeof_unqual(*(obj)) *)
copyObjectImpl(obj))
#9 168.8       |                                                  ^
#9 168.8 2 errors generated.
#9 168.8 make[2]: Leaving directory
'/var/lib/postgresql/src/postgres/src/backend/parser'
#9 168.8 make[2]: *** [../../../src/Makefile.global:1103: gram.bc] Error 1
```





pgsql-bugs by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: BUG #19393: pg_upgrade fails with duplicate key violation when CHECK constraint named *_not_null exists
Next
From: Dilip Kumar
Date:
Subject: Re: BUG #19393: pg_upgrade fails with duplicate key violation when CHECK constraint named *_not_null exists