I have installed yajl from json_path. Compiled zlib-1.2.8 and when I try to compile json_fdw I get the following error.
``gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/mit-krb5 -fPIC -pie -DLINUX_OOM_SCORE_ADJ=0 -fno-omit-frame-pointer -fpic -I../yajl.git/build/yajl-2.1.1/include -I../zlib-1.2.8 -I../curl-7.40.0/include -I. -I./ -I/usr/include/postgresql/9.4/server -I/usr/include/postgresql/internal -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o json_fdw.o json_fdw.c
json_fdw.c: In function 'JsonPlanForeignModify':
json_fdw.c:1762:9: warning: unused variable 'tableName' [-Wunused-variable]
char _tableName = RelationGetRelationName(rel);
^
json_fdw.c: In function 'JsonExecForeignInsert':
json_fdw.c:1928:7: warning: variable 'ok' set but not used [-Wunused-but-set-variable]
int ok = 0;
^
json_fdw.c: In function 'JsonExecForeignUpdate':
json_fdw.c:2029:7: warning: variable 'ok' set but not used [-Wunused-but-set-variable]
int ok = 0;
^
json_fdw.c: In function 'JsonEndForeignModify':
json_fdw.c:2068:11: warning: unused variable 'pJfmes' [-Wunused-variable]
jfmes_t pJfmes = (jfmes_t ) resultRelInfo->ri_FdwState;
^
json_fdw.c: In function 'JsonPg2Json':
json_fdw.c:2184:16: error: storage size of 'tm' isn't known
struct tm tm;
^
json_fdw.c:2215:6: warning: implicit declaration of function 'strftime' [-Wimplicit-function-declaration]
strftime(buffer, sizeof(buffer)-1, "%Y-%m-%d %H:%M:%S %Z", &tm);
^
json_fdw.c:2215:6: warning: incompatible implicit declaration of built-in function 'strftime'
json_fdw.c:2184:16: warning: unused variable 'tm' [-Wunused-variable]
struct tm tm;
^
I have installed yajl from json_path. Compiled zlib-1.2.8 and when I try to compile json_fdw I get the following error. ``gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/mit-krb5 -fPIC -pie -DLINUX_OOM_SCORE_ADJ=0 -fno-omit-frame-pointer -fpic -I../yajl.git/build/yajl-2.1.1/include -I../zlib-1.2.8 -I../curl-7.40.0/include -I. -I./ -I/usr/include/postgresql/9.4/server -I/usr/include/postgresql/internal -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o json_fdw.o json_fdw.c json_fdw.c: In function 'JsonPlanForeignModify': json_fdw.c:1762:9: warning: unused variable 'tableName' [-Wunused-variable] char _tableName = RelationGetRelationName(rel); ^ json_fdw.c: In function 'JsonExecForeignInsert': json_fdw.c:1928:7: warning: variable 'ok' set but not used [-Wunused-but-set-variable] int ok = 0; ^ json_fdw.c: In function 'JsonExecForeignUpdate': json_fdw.c:2029:7: warning: variable 'ok' set but not used [-Wunused-but-set-variable] int ok = 0; ^ json_fdw.c: In function 'JsonEndForeignModify': json_fdw.c:2068:11: warning: unused variable 'pJfmes' [-Wunused-variable] jfmes_t pJfmes = (jfmes_t ) resultRelInfo->ri_FdwState; ^ json_fdw.c: In function 'JsonPg2Json': json_fdw.c:2184:16: error: storage size of 'tm' isn't known struct tm tm; ^ json_fdw.c:2215:6: warning: implicit declaration of function 'strftime' [-Wimplicit-function-declaration] strftime(buffer, sizeof(buffer)-1, "%Y-%m-%d %H:%M:%S %Z", &tm); ^ json_fdw.c:2215:6: warning: incompatible implicit declaration of built-in function 'strftime' json_fdw.c:2184:16: warning: unused variable 'tm' [-Wunused-variable] struct tm tm; ^