免费注册 查看新帖 |

Chinaunix

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

[FastDFS] fastDFS 5.05编译错误(libfastcommon成功编译) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2016-09-06 13:17 |只看该作者 |倒序浏览
本帖最后由 yespgg 于 2016-09-06 15:12 编辑

linux-biim:/usr/local/fastdfs-5.05 # ./make.sh
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -o fdfs_trackerd fdfs_trackerd.c  ../common/fdfs_global.o tracker_proto.o tracker_mem.o tracker_service.o tracker_status.o tracker_global.o tracker_func.o fdfs_shared_func.o tracker_nio.o tracker_relationship.o tracker_dump.o ../common/linux_stack_trace.o -L/usr/local/lib  -lpthread -ldl -rdynamic -lfastcommon -I../common -I/usr/include/fastcommon
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libdl.a when searching for -ldl
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -ldl
collect2: ld returned 1 exit status
make: *** [fdfs_trackerd] Error 1
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -o fdfs_storaged fdfs_storaged.c  ../common/fdfs_global.o ../tracker/fdfs_shared_func.o ../tracker/tracker_proto.o tracker_client_thread.o storage_global.o storage_func.o storage_service.o storage_sync.o storage_nio.o storage_dio.o storage_ip_changed_dealer.o storage_param_getter.o storage_disk_recovery.o trunk_mgr/trunk_mem.o trunk_mgr/trunk_shared.o trunk_mgr/trunk_sync.o trunk_mgr/trunk_client.o trunk_mgr/trunk_free_block_checker.o ../client/client_global.o ../client/tracker_client.o ../client/storage_client.o ../client/client_func.o fdht_client/fdht_proto.o fdht_client/fdht_client.o fdht_client/fdht_func.o fdht_client/fdht_global.o storage_dump.o ../common/linux_stack_trace.o -L/usr/local/lib  -lpthread -ldl -rdynamic -lfastcommon -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libdl.a when searching for -ldl
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -ldl
collect2: ld returned 1 exit status
make: *** [fdfs_storaged] Error 1
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -o fdfs_monitor fdfs_monitor.c  ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -lpthread -ldl -rdynamic -lfastcommon -I../common -I../tracker -I/usr/include/fastcommon
fdfs_monitor.c: In function alist_storagesa:
fdfs_monitor.c:303:2: warning: format a%llda expects type along long inta, but argument 3 has type aint64_ta
fdfs_monitor.c:303:2: warning: format a%llda expects type along long inta, but argument 4 has type aint64_ta
fdfs_monitor.c:303:2: warning: format a%llda expects type along long inta, but argument 5 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 24 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 25 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 26 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 27 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 28 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 29 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 30 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 31 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 32 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 33 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 34 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 35 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 36 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 37 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 38 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 39 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 40 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 41 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 42 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 43 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 44 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 45 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 46 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 47 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 48 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 49 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 50 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 51 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 52 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 53 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 54 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 55 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 56 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 57 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 58 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 59 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 60 has type aint64_ta
fdfs_monitor.c:405:3: warning: format a%llda expects type along long inta, but argument 61 has type aint64_ta
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libdl.a when searching for -ldl
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -ldl
collect2: ld returned 1 exit status
make: *** [fdfs_monitor] Error 1
linux-biim:/usr/local/fastdfs-5.05 #


论坛徽章:
0
2 [报告]
发表于 2016-09-06 15:13 |只看该作者
自己顶一下,折腾一天了,翻遍百度google还是没有找到解决办法

论坛徽章:
0
3 [报告]
发表于 2016-10-13 17:42 |只看该作者
参考下这篇文章
http://ask.csdn.net/questions/199728

论坛徽章:
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
4 [报告]
发表于 2016-10-19 09:17 |只看该作者
linux下居然没有dl这个库,很奇怪啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP