ubuntu安装postpresql,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 -I../../../src/interfaces/libpq -DFRONTEND -I../../../src/include -D_GNU_SOURCE -c -o copy_fetch.o copy_fetch.c
copy_fetch.c:159:1: error: conflicting types for ‘copy_file_range’
copy_file_range(const char path, off_t begin, off_t end, bool trunc)
^~~~~~~~~~~~~~~
In file included from copy_fetch.c:15:0:
/usr/include/unistd.h:1110:9: note: previous declaration of ‘copy_file_range’ was here
ssize_t copy_file_range (int infd, __off64_t *pinoff,
^~~~~~~~~~~~~~~
<内置>: recipe for target 'copy_fetch.o' failed
make[3]: ** [copy_fetch.o] Error 1
make[3]: 离开目录“/home/coraop/postgresql-10.0/src/bin/pg_rewind”
Makefile:40: recipe for target 'all-pg_rewind-recurse' failed
make[2]: *** [all-pg_rewind-recurse] Error 2
make[2]: 离开目录“/home/coraop/postgresql-10.0/src/bin”
Makefile:37: recipe for target 'all-bin-recurse' failed
make[1]: *** [all-bin-recurse] Error 2
make[1]: 离开目录“/home/coraop/postgresql-10.0/src”
GNUmakefile:11: recipe for target 'all-src-recurse' failed
make: *** [all-src-recurse] Error 2
把copy_fetch.c 所有的copy_file_range改成copy_file_chunk