mysql_fdw.cpp:400:31: error: invalid conversion from ‘ForeignScan* (*)(PlannerInfo*, RelOptInfo*, Oid, ForeignPath*, List*, List*) {aka ForeignScan* (*)(PlannerInfo*, RelOptInfo*, unsigned int, ForeignPath*, List*, List*)}’ to ‘GetForeignPlan_function {aka ForeignScan* (*)(PlannerInfo*, RelOptInfo*, unsigned int, ForeignPath*, List*, List*, Plan*)}’ [-fpermissive] fdwroutine->GetForeignPlan = mysqlGetForeignPlan; ^~~~~~~~~~~~~~~~~~~ mysql_fdw.cpp: In function ‘void mysqlGetForeignRelSize(PlannerInfo*, RelOptInfo*, Oid)’: mysql_fdw.cpp:784:35: error: ‘RelOptInfo {aka struct RelOptInfo}’ has no member named ‘reltargetlist’; did you mean ‘reltarget’? pull_varattnos((Node *) baserel->reltargetlist, baserel->relid, ^~~~~~~~~~~~~ reltarget mysql_fdw.cpp:802:35: error: ‘RelOptInfo {aka struct RelOptInfo}’ has no member named ‘reltargetlist’; did you mean ‘reltarget’? pull_varattnos((Node *) baserel->reltargetlist, baserel->relid, ^~~~~~~~~~~~~ reltarget mysql_fdw.cpp: In function ‘void mysqlGetForeignPaths(PlannerInfo*, RelOptInfo*, Oid)’: mysql_fdw.cpp:982:15: error: too few arguments to function ‘ForeignPath* create_foreignscan_path(PlannerInfo*, RelOptInfo*, Cost, Cost, List*, Relids, Path*, List*, int)’ NULL)); /* no fdw_private data */ ^ In file included from mysql_fdw.cpp:42:0: /mnt/disk01/OpenGauss/openGauss-server/src/include/optimizer/pathnode.h:86:21: note: declared here extern ForeignPath* create_foreignscan_path(PlannerInfo* root, RelOptInfo* rel, Cost startup_cost, Cost total_cost, ^~~~~~~~~~~~~~~~~~~~~~~ mysql_fdw.cpp: In function ‘ForeignScan* mysqlGetForeignPlan(PlannerInfo*, RelOptInfo*, Oid, ForeignPath*, List*, List*)’: mysql_fdw.cpp:1105:19: error: too few arguments to function ‘ForeignScan* make_foreignscan(List*, List*, Index, List*, List*, List*, List*, Plan*, RemoteQueryExecType)’ fdw_private); ^ In file included from mysql_fdw.cpp:43:0: /mnt/disk01/OpenGauss/openGauss-server/src/include/optimizer/planmain.h:73:21: note: declared here extern ForeignScan* make_foreignscan(List* qptlist, List* qpqual, Index scanrelid, List* fdw_exprs, List* fdw_private, ^~~~~~~~~~~~~~~~ make[4]: *** [<builtin>: mysql_fdw.o] Error 1 make[4]: Leaving directory '/mnt/disk01/OpenGauss/openGauss-third_party_binarylibs_5.0.0/kernel/dependency/mysql_fdw' make[3]: *** [Makefile:33: mysql_fdw_target] Error 2 make[3]: Leaving directory '/mnt/disk01/OpenGauss/openGauss-server/contrib/mysql_fdw' make[2]: *** [common.mk:44: ../../contrib/mysql_fdw-recursive] Error 2 make[2]: Leaving directory '/mnt/disk01/OpenGauss/openGauss-server/src/gausskernel' make[1]: *** [Makefile:68: all-gausskernel-recurse] Error 2 make[1]: Leaving directory '/mnt/disk01/OpenGauss/openGauss-server/src' make: *** [GNUmakefile:12: all-src-recurse] Error 2