Skip to content

Build Fails on CentOS 7.2 with errors #22

@pavangadiya

Description

@pavangadiya

Hello All,

I am trying to install JDBC_FDW extension on the following environment:
OS: CentOS 7.2
Postgres: 9.5.0

I am following instructions from this link
( https://github.com/atris/JDBC_FDW/wiki/Installation-instructions )

When I try to build it, I get the errors like:

make
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fpic -D'PKG_LIB_DIR=/usr/local/pgsql/lib' -I. -I. -I../../src/include -D_GNU_SOURCE -c -o jdbc_fdw.o jdbc_fdw.c
jdbc_fdw.c: In function ‘jdbc_fdw_handler’:
jdbc_fdw.c:372:29: warning: assignment from incompatible pointer type [enabled by default]
fdwroutine->GetForeignPlan = jdbcGetForeignPlan;
^
jdbc_fdw.c: In function ‘jdbcGetForeignPaths’:
jdbc_fdw.c:1060:2: warning: passing argument 8 of ‘create_foreignscan_path’ from incompatible pointer type [enabled by default]
add_path(baserel, (Path_)create_foreignscan_path(root, baserel, baserel->rows, startup_cost, total_cost, NIL, NULL, NIL));
^
In file included from jdbc_fdw.c:43:0:
../../src/include/optimizer/pathnode.h:82:21: note: expected ‘struct Path *’ but argument is of type ‘struct List *’
extern ForeignPath *create_foreignscan_path(PlannerInfo *root, RelOptInfo *rel,
^
jdbc_fdw.c:1060:2: error: too few arguments to function ‘create_foreignscan_path’
add_path(baserel, (Path_)create_foreignscan_path(root, baserel, baserel->rows, startup_cost, total_cost, NIL, NULL, NIL));
^
In file included from jdbc_fdw.c:43:0:
../../src/include/optimizer/pathnode.h:82:21: note: declared here
extern ForeignPath create_foreignscan_path(PlannerInfo *root, RelOptInfo *rel,
^
jdbc_fdw.c: In function ‘jdbcGetForeignPlan’:
jdbc_fdw.c:1079:2: error: too few arguments to function ‘make_foreignscan’
return (make_foreignscan(tlist, scan_clauses, scan_relid, NIL, NIL));
^
In file included from jdbc_fdw.c:45:0:
../../src/include/optimizer/planmain.h:46:21: note: declared here
extern ForeignScan *make_foreignscan(List *qptlist, List *qpqual,
^
jdbc_fdw.c:1080:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make: *
* [jdbc_fdw.o] Error 1

Please help me to resolve this issue.
Thank You!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions