clickhousedb_fdw icon indicating copy to clipboard operation
clickhousedb_fdw copied to clipboard

编译的时候出现问题

Open Zhongguolin opened this issue 4 years ago • 2 comments

Zhongguolin avatar Jan 16 '20 01:01 Zhongguolin

[postgres@DP-SLAVE1 clickhousedb_fdw]$ make USE_PGXS=1 gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DLINUX_OOM_SCORE_ADJ=0 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -fPIC -g3 -O0 -Wno-unused-function -Ilib -I. -I. -I/usr/include/pgsql/server -I/usr/include/pgsql/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o clickhousedb_fdw.o clickhousedb_fdw.c In file included from /usr/include/stdio.h:27:0, from /usr/include/pgsql/server/c.h:67, from /usr/include/pgsql/server/postgres.h:47, from clickhousedb_fdw.c:14: /usr/include/features.h:330:4: 警告:#warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]

warning _FORTIFY_SOURCE requires compiling with optimization (-O)

^

clickhousedb_fdw.c:22:33: 致命错误:access/htup_details.h:没有那个文件或目录 #include "access/htup_details.h" ^ 编译中断。 make: *** [clickhousedb_fdw.o] 错误 1

Zhongguolin avatar Jan 16 '20 01:01 Zhongguolin

Same error here... What is the solution?

liangsieng avatar May 31 '20 08:05 liangsieng