免费注册 查看新帖 |

Chinaunix

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

[FastDFS] 什么时候才能支持mac os? 高手来帮帮忙~ [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-08-17 11:04 |只看该作者 |倒序浏览
本帖最后由 pp18180058 于 2012-08-17 13:44 编辑

untitled2.pdf (48.2 KB, 下载次数: 6)

make的时候报错,怎么改make.sh才能安装与配置成功?

附件内是错误信息,信息量太大发不了帖子,只能放附件里。

论坛徽章:
4
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT运维版块每日发帖之星
日期:2016-08-11 06:20:00IT运维版块每日发帖之星
日期:2016-08-15 06:20:00
2 [报告]
发表于 2012-08-17 12:40 |只看该作者
回复 1# pp18180058

把出错信息帖出来吧

论坛徽章:
0
3 [报告]
发表于 2012-08-17 13:35 |只看该作者
pp18180058@ppitt-2:~/Downloads/FastDFS$ sudo ./make.sh
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../common/hash.o ../common/hash.c  -I../common -I/usr/local/include
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../common/chain.o ../common/chain.c  -I../common -I/usr/local/include
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../common/base64.o ../common/base64.c  -I../common -I/usr/local/include
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../common/shared_func.o ../common/shared_func.c  -I../common -I/usr/local/include
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../common/ini_file_reader.o ../common/ini_file_reader.c  -I../common -I/usr/local/include
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../common/logger.o ../common/logger.c  -I../common -I/usr/local/include
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../common/sockopt.o ../common/sockopt.c  -I../common -I/usr/local/include
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../common/fdfs_global.o ../common/fdfs_global.c  -I../common -I/usr/local/include
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../common/sched_thread.o ../common/sched_thread.c  -I../common -I/usr/local/include
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../common/http_func.o ../common/http_func.c  -I../common -I/usr/local/include
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../common/md5.o ../common/md5.c  -I../common -I/usr/local/include
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../common/pthread_func.o ../common/pthread_func.c  -I../common -I/usr/local/include
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../common/local_ip_func.o ../common/local_ip_func.c  -I../common -I/usr/local/include
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o tracker_proto.o tracker_proto.c  -I../common -I/usr/local/include
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o tracker_mem.o tracker_mem.c  -I../common -I/usr/local/include
tracker_mem.c:1830:12: warning: conversion specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
                                "\t%s="INT64_PRINTF_FORMAT"\n" \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
../common/common_define.h:57:38: note: expanded from macro 'INT64_PRINTF_FORMAT'
    #define INT64_PRINTF_FORMAT   "%ld"
                                     ^
/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf'
  __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
                                                       ^~~~~~~~~~~
tracker_mem.c:1831:12: warning: conversion specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
                                "\t%s="INT64_PRINTF_FORMAT"\n" \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~

论坛徽章:
0
4 [报告]
发表于 2012-08-17 13:46 |只看该作者
happy_fish100  @happy_fish100
我用3.11和3.10都是这个问题

论坛徽章:
0
5 [报告]
发表于 2012-08-17 13:49 |只看该作者
原作者的回复?{:3_182:}

论坛徽章:
0
6 [报告]
发表于 2012-08-18 17:49 |只看该作者
来个人,帮帮忙~

论坛徽章:
4
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT运维版块每日发帖之星
日期:2016-08-11 06:20:00IT运维版块每日发帖之星
日期:2016-08-15 06:20:00
7 [报告]
发表于 2012-08-20 09:33 |只看该作者
你的系统是64位的吧?
另外,看了一下出错信息,需要事先安装libevent。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP