Building issue fix #1
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Totally, there are two building errors as below described.
The first error:
repmgr_version.h:5:38: 错误:missing binary operator beforee token "120000"
#define PG_ACTUAL_VERSION_NUM 100011 120000
The second error:
controldata.c:315:9: 错误:未知的类型名‘ControlFileData12’
ControlFileData12 *ptr = (struct ControlFileData12 *)ControlFileDataPtr;
^
controldata.c:315:34: 警告:从不兼容的指针类型初始化 [默认启用]
ControlFileData12 *ptr = (struct ControlFileData12 *)ControlFileDataPtr;
^
controldata.c:316:51: 错误:在非结构或联合中请求成员‘system_identifier’
control_file_info->system_identifier = ptr->system_identifier;
^
controldata.c:317:39: 错误:在非结构或联合中请求成员‘state’
control_file_info->state = ptr->state;
^
controldata.c:318:44: 错误:在非结构或联合中请求成员‘checkPoint’
control_file_info->checkPoint = ptr->checkPoint;
^
controldata.c:319:55: 错误:在非结构或联合中请求成员‘data_checksum_version’
control_file_info->data_checksum_version = ptr->data_checksum_version;
^
controldata.c:320:42: 错误:在非结构或联合中请求成员‘checkPointCopy’
control_file_info->timeline = ptr->checkPointCopy.ThisTimeLineID;
^
controldata.c:321:53: 错误:在非结构或联合中请求成员‘minRecoveryPointTLI’
control_file_info->minRecoveryPointTLI = ptr->minRecoveryPointTLI;
^
controldata.c:322:50: 错误:在非结构或联合中请求成员‘minRecoveryPoint’
control_file_info->minRecoveryPoint = ptr->minRecoveryPoint;