Percona-Lab / clickhousedb_fdw

PostgreSQL's Foreign Data Wrapper For ClickHouse
Other
202 stars 24 forks source link

编译的时候出现问题 #23

Open Zhongguolin opened 4 years ago

Zhongguolin commented 4 years ago

[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

liangsieng commented 4 years ago

Same error here... What is the solution?