Chinaunix

标题: libfastcommon安装错误 [打印本页]

作者: zhzjizhan    时间: 2015-04-17 14:03
标题: 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-RELEASE  i386;另外make.sh中的gcc修改成了cc(freebsd中只装了cc)。
作者: zhzjizhan    时间: 2015-04-19 13:53
自己顶一下,没人碰到过这个问题吗?斑竹有空来看下啊。这个对系统是64位、32位有要求吗?

作者: zhzjizhan    时间: 2015-04-24 14:24
没办法了,安装了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
作者: zhzjizhan    时间: 2015-04-27 09:09
已解决,修改sockopt.c, 1241行的fsbytes为sbytes;
作者: chinawiserv6    时间: 2015-05-05 15:31
好高深,懂不起
作者: 会计师会钓鱼    时间: 2015-05-07 11:06
有点深   这得请专业人员
作者: happy_fish100    时间: 2015-05-11 18:34
谢谢反馈,代码已更改。
作者: winyong    时间: 2015-05-11 22:29
楼主我认识你。。
作者: zhzjizhan    时间: 2015-05-12 09:06
真的假的你就认识我,稍稍透露点看看
作者: 8634129    时间: 2015-07-28 23:57
回复 7# happy_fish100


请问php上传不成功,返回权限错误时什么原因。。。


   




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2