Sphinx 编译的问题及解决办法(sphinxclient.c:1358: error: ‘SO_NOSIGPIPE’ undeclared)
编译sphinx库 —-libsphinxclient遇到的错误如下: A错误: sphinxclient.c:1358: error: ‘SO_NOSIGPIPE’ undeclared (first use in this function) B错误: .libs/libsphinxclient.a(sphinxclient.o): In function `vi sphinxclient.cset_error’: 解决这两个问题都需要修改sphinxclient.c 文件,如下所示: A错误详细表述: [root@localhost libsphinxclient]# make make all-am make[1]: Entering directory `/usr/local/src/sphinx-1.10-beta/api/libsphinxclient’ /bin/sh ./libtool –mode=compile –tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c -o sphinxclient.lo sphinxclient.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c sphinxclient.c -fPIC […]