Skip to content

src/spock_apply.c:1025:18: error: ‘WalSndCtlData’ {aka ‘struct <anonymous>’} has no member named ‘sync_standbys_status #199

@SID2025GIT

Description

@SID2025GIT

I am performing POC on PgEdge SPOCK extension , While compiling spock extension, I am getting below error

/stage/spock-main/include/spock_output_plugin.h:92:20: warning: inline function ‘set_repair_mode’ declared but never defined
extern inline void set_repair_mode(bool is_enabled);
^~~~~~~~~~~~~~~
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 -fPIC -fvisibility=hidden -I/pgbin/pgpoc1d/16.x/include -I/stage/spock-main/include -I/stage/spock-main/src/compat/16 -Werror=implicit-function-declaration -I. -I./ -I/pgbin/pgpoc1d/16.x/include/postgresql/server -I/pgbin/pgpoc1d/16.x/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/spock_functions.o src/spock_functions.c
In file included from /stage/spock-main/include/spock_proto_native.h:19,
from /stage/spock-main/include/spock_apply.h:18,
from src/spock_functions.c:87:
/stage/spock-main/include/spock_output_plugin.h:92:20: warning: inline function ‘set_repair_mode’ declared but never defined
extern inline void set_repair_mode(bool is_enabled);
^~~~~~~~~~~~~~~
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 -fPIC -fvisibility=hidden -I/pgbin/pgpoc1d/16.x/include -I/stage/spock-main/include -I/stage/spock-main/src/compat/16 -Werror=implicit-function-declaration -I. -I./ -I/pgbin/pgpoc1d/16.x/include/postgresql/server -I/pgbin/pgpoc1d/16.x/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/spock_apply.o src/spock_apply.c
src/spock_apply.c: In function ‘handle_commit’:
src/spock_apply.c:1025:18: error: ‘WalSndCtlData’ {aka ‘struct ’} has no member named ‘sync_standbys_status’; did you mean ‘sync_standbys_defined’?
if (WalSndCtl->sync_standbys_status & SYNC_STANDBY_DEFINED)
^~~~~~~~~~~~~~~~~~~~
sync_standbys_defined
src/spock_apply.c:1025:41: error: ‘SYNC_STANDBY_DEFINED’ undeclared (first use in this function); did you mean ‘RM_STANDBY_ID’?
if (WalSndCtl->sync_standbys_status & SYNC_STANDBY_DEFINED)
^~~~~~~~~~~~~~~~~~~~
RM_STANDBY_ID
src/spock_apply.c:1025:41: note: each undeclared identifier is reported only once for each function it appears in
src/spock_apply.c: In function ‘send_feedback’:
src/spock_apply.c:2710:17: error: ‘WalSndCtlData’ {aka ‘struct ’} has no member named ‘sync_standbys_status’; did you mean ‘sync_standbys_defined’?
if (WalSndCtl->sync_standbys_status & SYNC_STANDBY_DEFINED)
^~~~~~~~~~~~~~~~~~~~
sync_standbys_defined
src/spock_apply.c:2710:40: error: ‘SYNC_STANDBY_DEFINED’ undeclared (first use in this function); did you mean ‘RM_STANDBY_ID’?
if (WalSndCtl->sync_standbys_status & SYNC_STANDBY_DEFINED)
^~~~~~~~~~~~~~~~~~~~
RM_STANDBY_ID
In file included from /stage/spock-main/include/spock_proto_native.h:19,
from /stage/spock-main/include/spock_conflict.h:19,
from src/spock_apply.c:74:
src/spock_apply.c: At top level:
/stage/spock-main/include/spock_output_plugin.h:92:20: warning: inline function ‘set_repair_mode’ declared but never defined
extern inline void set_repair_mode(bool is_enabled);
^~~~~~~~~~~~~~~
make: *** [: src/spock_apply.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions