macOS Big Sur编译错误
a0x opened this issue · comments
系统环境
# uname -a
Darwin MacbookPro 20.1.0 Darwin Kernel Version 20.1.0: Sat Oct 31 00:07:11 PDT 2020; root:xnu-7195.50.7~2/RELEASE_X86_64 x86_64
# sw_vers
ProductName: Mac OS X
ProductVersion: 10.16
BuildVersion: 20B29
# scws -v
scws (scws-cli/1.2.3: Simpled Chinese Words Segment - Command line usage)
# gmake --version
GNU Make 4.3
Built for x86_64-apple-darwin20.1.0
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
# make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i386-apple-darwin11.3.0
PG版本
本地PG是通过pgenv
编译安装的。
PostgreSQL 10.13
# path
/Users/someone/.pgenv/pgsql-10.13/bin/psql
报错信息
无论使用gmake
还是make
,都会报相同的错误。
$ PG_CONFIG=/Users/someone/.pgenv/pgsql-10.13/bin/pg_config gmake
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2 -I/usr/local/include/scws -I. -I./ -I/Users/someone/.pgenv/pgsql-10.13/include/server -I/Users/someone/.pgenv/pgsql-10.13/include/internal -c -o zhparser.o zhparser.c
zhparser.c:220:10: error: implicit declaration of function 'SplitIdentifierString' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
if(!SplitIdentifierString(extra_dicts,',',&elemlist)){
^
1 error generated.
gmake: *** [<builtin>: zhparser.o] Error 1
试一下git head吧,应该修复了。多谢反馈!