免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7802 | 回复: 2
打印 上一主题 下一主题

[FastDFS] 求助,FastDFS_5.07安装报错 [复制链接]

论坛徽章:
0
1 [报告]
发表于 2016-05-18 09:40 |显示全部楼层
CentOS 6.6 X86_64  libfastcommon 1.07
FastDFS 5.08 make.sh也报类似的错误

$ ./make.sh
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o tracker_service.o tracker_service.c  -I../common -I/usr/include/fastcommon
In file included from /usr/include/fastcommon/fast_task_queue.h:19,
                 from tracker_nio.h:17,
                 from tracker_service.c:34:
/usr/include/fastcommon/ioevent.h:82:2: error: #error port me
/usr/include/fastcommon/ioevent.h:95:2: error: #error port me
/usr/include/fastcommon/ioevent.h:108:2: error: #error port me
make: *** [tracker_service.o] Error 1
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o tracker_client_thread.o tracker_client_thread.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
In file included from /usr/include/fastcommon/fast_task_queue.h:19,
                 from tracker_client_thread.c:28:
/usr/include/fastcommon/ioevent.h:82:2: error: #error port me
/usr/include/fastcommon/ioevent.h:95:2: error: #error port me
/usr/include/fastcommon/ioevent.h:108:2: error: #error port me
make: *** [tracker_client_thread.o] Error 1



另能否在github上release一套统一的版本?github上的版本都特别老,github可以建立一个组织帐号,然后把相关的项目都放在一起。

论坛徽章:
0
2 [报告]
发表于 2016-05-18 10:02 |显示全部楼层
libfastcommon改用了github上的Master分支的最新版本(作者好像昨天还在更新),然后FastDFS编译通过了,大家再试试。


还有一个小问题:
libfastcommon的1.07里编译选项还是 -O -DDEBUG_FLAG的,但master里面已经是cc -Wall -D_FILE_OFFSET_BITS=64 -g -O3...了
而从sourceforge下的最新的FastDFS 5.08版本里,编译仍旧是cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c ...
我们在生产环境部署时是不是要改为-O3的非Debug模式?

论坛徽章:
0
3 [报告]
发表于 2016-05-31 12:22 |显示全部楼层
要是作者发一些release版就好了,对于普通用户来说,在线上用master分支有点没底
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP