libfastcommon安装错误
从github下载的程序libfastcommon-master,执行./make.sh,报如下错误:
cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_FREEBSD -DIOEVENT_USE_KQUEUE -c -fPIC -o sockopt.lo sockopt.c
sockopt.c:1241:25: error: use of undeclared identifier 'fsbytes'; did you mean 'sbytes'?
remain_bytes -= fsbytes;
^~~~~~~
sbytes
sockopt.c:1231:15: note: 'sbytes' declared here
off_t sbytes;
^
1 error generated.
*** Error code 1
Stop.
make: stopped in /usr/local/libfastcommon-master/src
看错误信息是变量申明的问题,是不是其他依赖库要安装啊?
系统:FreeBSD zhz 10.1-RELEASE FreeBSD 10.1-RELEASEi386;另外make.sh中的gcc修改成了cc(freebsd中只装了cc)。 自己顶一下,没人碰到过这个问题吗?斑竹有空来看下啊。这个对系统是64位、32位有要求吗?
没办法了,安装了gcc,也不过,放弃了。错误如下:
root@zhz:/usr/local/libfastcommon-1.0.7 # ./make.sh
cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_FREEBSD -DIOEVENT_USE_KQUEUE -c -fPIC -o hash.lo hash.c
cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_FREEBSD -DIOEVENT_USE_KQUEUE -c -fPIC -o chain.lo chain.c
cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_FREEBSD -DIOEVENT_USE_KQUEUE -c -fPIC -o shared_func.lo shared_func.c
cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_FREEBSD -DIOEVENT_USE_KQUEUE -c -fPIC -o ini_file_reader.lo ini_file_reader.c
cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_FREEBSD -DIOEVENT_USE_KQUEUE -c -fPIC -o logger.lo logger.c
cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_FREEBSD -DIOEVENT_USE_KQUEUE -c -fPIC -o sockopt.lo sockopt.c
sockopt.c:1241:25: error: use of undeclared identifier 'fsbytes'; did you mean 'sbytes'?
remain_bytes -= fsbytes;
^~~~~~~
sbytes
sockopt.c:1231:15: note: 'sbytes' declared here
off_t sbytes;
^
1 error generated.
*** Error code 1
Stop.
make: stopped in /usr/local/libfastcommon-1.0.7/src 已解决,修改sockopt.c, 1241行的fsbytes为sbytes;:curse: 好高深,懂不起 有点深:-L 这得请专业人员 谢谢反馈,代码已更改。 楼主我认识你。。 真的假的你就认识我,稍稍透露点看看 回复 7# happy_fish100
请问php上传不成功,返回权限错误时什么原因。。。
页:
[1]