Skip to content

Build failure with PG12: src/rumsort.c:3233:2: error: unknown type name 'FunctionCallInfoData'; did you mean 'FunctionCallInfoBaseData'? #61

Closed
@df7cb

Description

@df7cb

Building against 12beta1:

16:14:16 # 12: make
16:14:16 make[2]: Entering directory '/<<PKGBUILDDIR>>'
16:14:16 gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -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 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I. -I./ -I/usr/include/postgresql/12/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/rumsort.o src/rumsort.c
16:14:16 src/rumsort.c: In function 'rum_tuplesort_begin_cluster':
16:14:16 src/rumsort.c:1054:24: warning: implicit declaration of function '_bt_mkscankey_nodata'; did you mean '_bt_mkscankey'? [-Wimplicit-function-declaration]
16:14:16   state->indexScanKey = _bt_mkscankey_nodata(indexRel);
16:14:16                         ^~~~~~~~~~~~~~~~~~~~
16:14:16                         _bt_mkscankey
16:14:16 src/rumsort.c:1054:22: warning: assignment to 'ScanKey' {aka 'struct ScanKeyData *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
16:14:16   state->indexScanKey = _bt_mkscankey_nodata(indexRel);
16:14:16                       ^
16:14:16 src/rumsort.c: In function 'rum_tuplesort_begin_index_btree':
16:14:16 src/rumsort.c:1119:22: warning: assignment to 'ScanKey' {aka 'struct ScanKeyData *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
16:14:16   state->indexScanKey = _bt_mkscankey_nodata(indexRel);
16:14:16                       ^
16:14:16 src/rumsort.c: In function 'myFunctionCall2Coll':
16:14:16 src/rumsort.c:3233:2: error: unknown type name 'FunctionCallInfoData'; did you mean 'FunctionCallInfoBaseData'?
16:14:16   FunctionCallInfoData fcinfo;
16:14:16   ^~~~~~~~~~~~~~~~~~~~
16:14:16   FunctionCallInfoBaseData
16:14:16 In file included from src/rumsort.h:23,
16:14:16                  from src/rumsort.c:123:
16:14:16 /usr/include/postgresql/12/server/fmgr.h:152:11: error: request for member 'flinfo' in something not a structure or union
16:14:16    (Fcinfo).flinfo = (Flinfo); \
16:14:16            ^
16:14:16 src/rumsort.c:3236:2: note: in expansion of macro 'InitFunctionCallInfoData'
16:14:16   InitFunctionCallInfoData(fcinfo, flinfo, 2, collation, NULL, NULL);
16:14:16   ^~~~~~~~~~~~~~~~~~~~~~~~
16:14:16 /usr/include/postgresql/12/server/fmgr.h:153:11: error: request for member 'context' in something not a structure or union
16:14:16    (Fcinfo).context = (Context); \
16:14:16            ^
16:14:16 src/rumsort.c:3236:2: note: in expansion of macro 'InitFunctionCallInfoData'
16:14:16   InitFunctionCallInfoData(fcinfo, flinfo, 2, collation, NULL, NULL);
16:14:16   ^~~~~~~~~~~~~~~~~~~~~~~~
16:14:16 /usr/include/postgresql/12/server/fmgr.h:154:11: error: request for member 'resultinfo' in something not a structure or union
16:14:16    (Fcinfo).resultinfo = (Resultinfo); \
16:14:16            ^
16:14:16 src/rumsort.c:3236:2: note: in expansion of macro 'InitFunctionCallInfoData'
16:14:16   InitFunctionCallInfoData(fcinfo, flinfo, 2, collation, NULL, NULL);
16:14:16   ^~~~~~~~~~~~~~~~~~~~~~~~
16:14:16 /usr/include/postgresql/12/server/fmgr.h:155:11: error: request for member 'fncollation' in something not a structure or union
16:14:16    (Fcinfo).fncollation = (Collation); \
16:14:16            ^
16:14:16 src/rumsort.c:3236:2: note: in expansion of macro 'InitFunctionCallInfoData'
16:14:16   InitFunctionCallInfoData(fcinfo, flinfo, 2, collation, NULL, NULL);
16:14:16   ^~~~~~~~~~~~~~~~~~~~~~~~
16:14:16 /usr/include/postgresql/12/server/fmgr.h:156:11: error: request for member 'isnull' in something not a structure or union
16:14:16    (Fcinfo).isnull = false; \
16:14:16            ^
16:14:16 src/rumsort.c:3236:2: note: in expansion of macro 'InitFunctionCallInfoData'
16:14:16   InitFunctionCallInfoData(fcinfo, flinfo, 2, collation, NULL, NULL);
16:14:16   ^~~~~~~~~~~~~~~~~~~~~~~~
16:14:16 /usr/include/postgresql/12/server/fmgr.h:157:11: error: request for member 'nargs' in something not a structure or union
16:14:16    (Fcinfo).nargs = (Nargs); \
16:14:16            ^
16:14:16 src/rumsort.c:3236:2: note: in expansion of macro 'InitFunctionCallInfoData'
16:14:16   InitFunctionCallInfoData(fcinfo, flinfo, 2, collation, NULL, NULL);
16:14:16   ^~~~~~~~~~~~~~~~~~~~~~~~
16:14:16 src/rumsort.c:3238:8: error: request for member 'arg' in something not a structure or union
16:14:16   fcinfo.arg[0] = arg1;
16:14:16         ^
16:14:16 src/rumsort.c:3239:8: error: request for member 'arg' in something not a structure or union
16:14:16   fcinfo.arg[1] = arg2;
16:14:16         ^
16:14:16 src/rumsort.c:3240:8: error: request for member 'argnull' in something not a structure or union
16:14:16   fcinfo.argnull[0] = false;
16:14:16         ^
16:14:16 src/rumsort.c:3241:8: error: request for member 'argnull' in something not a structure or union
16:14:16   fcinfo.argnull[1] = false;
16:14:16         ^
16:14:16 In file included from src/rumsort.h:23,
16:14:16                  from src/rumsort.c:123:
16:14:16 /usr/include/postgresql/12/server/fmgr.h:167:48: error: request for member 'flinfo' in something not a structure or union
16:14:16  #define FunctionCallInvoke(fcinfo) ((* (fcinfo)->flinfo->fn_addr) (fcinfo))
16:14:16                                                 ^~
16:14:16 src/rumsort.c:3243:11: note: in expansion of macro 'FunctionCallInvoke'
16:14:16   result = FunctionCallInvoke(&fcinfo);
16:14:16            ^~~~~~~~~~~~~~~~~~
16:14:16 src/rumsort.c:3246:12: error: request for member 'isnull' in something not a structure or union
16:14:16   if (fcinfo.isnull)
16:14:16             ^
16:14:16 In file included from /usr/include/postgresql/12/server/postgres.h:47,
16:14:16                  from src/rumsort.c:121:
16:14:16 src/rumsort.c:3247:50: error: request for member 'flinfo' in something not a structure or union
16:14:16    elog(ERROR, "function %u returned NULL", fcinfo.flinfo->fn_oid);
16:14:16                                                   ^
16:14:16 /usr/include/postgresql/12/server/utils/elog.h:221:23: note: in definition of macro 'elog'
16:14:16    elog_finish(elevel, __VA_ARGS__); \
16:14:16                        ^~~~~~~~~~~
16:14:16 make[2]: *** [<builtin>: src/rumsort.o] Error 1
16:14:16 make[2]: Leaving directory '/<<PKGBUILDDIR>>'
16:14:16 make[1]: *** [debian/rules:12: override_dh_auto_install] Error 2
16:14:16 make[1]: Leaving directory '/<<PKGBUILDDIR>>'
16:14:16 make: *** [debian/rules:29: binary] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy