Closed l-we closed 5 years ago
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O3 -fPIC -Wno-unused-variable -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux/ -Ilibhive -DHAVE_NETINET_IN_H -DHAVE_INTTYPES_H -I. -I./ -I/home/psql/11/include/postgresql/server -I/home/psql/11/include/postgresql/internal -D_GNU_SOURCE -c -o hdfs_deparse.o hdfs_deparse.c hdfs_deparse.c: In function ‘deparseTargetList’: hdfs_deparse.c:528:28: error: incompatible types when initializing type ‘Form_pg_attribute {aka struct FormData_pg_attribute *}’ using type ‘FormData_pg_attribute {aka struct FormData_pg_attribute}’ Form_pg_attribute attr = tupdesc->attrs[i - 1]; ^~~~~~~ hdfs_deparse.c: In function ‘deparseAnalyzeSql’: hdfs_deparse.c:625:24: error: invalid type argument of ‘->’ (have ‘FormData_pg_attribute {aka struct FormData_pg_attribute}’) if (tupdesc->attrs[i]->attisdropped) ^~ In file included from /home/psql/11/include/postgresql/server/postgres.h:46:0, from hdfs_deparse.c:16: hdfs_deparse.c:633:38: error: invalid type argument of ‘->’ (have ‘FormData_pg_attribute {aka struct FormData_pg_attribute}’) colname = NameStr(tupdesc->attrs[i]->attname); ^ /home/psql/11/include/postgresql/server/c.h:576:25: note: in definition of macro ‘NameStr’ #define NameStr(name) ((name).data) ^~~~ hdfs_deparse.c: In function ‘deparseColumnRef’: hdfs_deparse.c:702:13: warning: implicit declaration of function ‘get_relid_attribute_name’; did you mean ‘get_rte_attribute_name’? [-Wimplicit-function-declaration] colname = get_relid_attribute_name(rte->relid, varattno); ^~~~~~~~~~~~~~~~~~~~~~~~ get_rte_attribute_name hdfs_deparse.c:702:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion] colname = get_relid_attribute_name(rte->relid, varattno); ^ <builtin>: recipe for target 'hdfs_deparse.o' failed make: *** [hdfs_deparse.o] Error 1
Hi,
PostgreSQL 11 Beta 2 is already out, and I'm also in the process of releasing the RPMs. Any ETA for this issue?
Regards, Devrim