免费注册 查看新帖 |

Chinaunix

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

[FastDFS] linux for power安装fastdfs编译报错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-04-16 12:47 |只看该作者 |倒序浏览
如题,
一批IBM powerlinux机器安装的linux for power 6.4 64bit系统,完全安装,安装fastdfs5.05的时候编译报错。
我是先编译安装libfastcommon-master成功,然后ln软链接,再编译安装fastdfs的时候编译出错。怀疑lib库的问题,也有可能是java的原因,这个linux只能安装ibm定制过得java:ibm-java-ppc64-sdk-6.0-16.3。不知道该怎么处理啊,redhat6.4上都安装ok的

[13:29:22][root@JJZD-WEBAPP2-7R1 libfastcommon-master]# ./make.sh install
[13:29:22]mkdir -p /usr/lib64
[13:29:22]install -m 755 libfastcommon.so /usr/lib64
[13:29:22]mkdir -p /usr/include/fastcommon
[13:29:22]install -m 644 common_define.h hash.h chain.h logger.h base64.h shared_func.h pthread_func.h ini_file_reader.h _os_bits.h sockopt.h sched_thread.h http_func.h md5.h local_ip_func.h avl_tree.h ioevent.h ioevent_loop.h fast_task_queue.h fast_timer.h process_ctrl.h fast_mblock.h connection_pool.h /usr/include/fastcommon
[13:29:34][root@JJZD-WEBAPP2-7R1 libfastcommon-master]# ln -s /usr/lib64/libfastcommon.so /usr/local/lib/libfastcommon.so
[13:29:34][root@JJZD-WEBAPP2-7R1 libfastcommon-master]# ln -s /usr/lib64/libfastcommon.so /usr/lib/libfastcommon.so
[13:29:34][root@JJZD-WEBAPP2-7R1 libfastcommon-master]# ln -s /usr/lib64/libfdfsclient.so /usr/local/lib/libfdfsclient.so
[13:29:34][root@JJZD-WEBAPP2-7R1 libfastcommon-master]# ln -s /usr/lib64/libfdfsclient.so /usr/lib/libfdfsclient.so
[13:29:39][root@JJZD-WEBAPP2-7R1 libfastcommon-master]# cd ..

[13:33:02][root@JJZD-WEBAPP2-7R1 fastdfs-5.05]# ./make.sh
[13:33:02]cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -o ../common/linux_stack_trace.o ../common/linux_stack_trace.c  -I../common -I/usr/include/fastcommon
[13:33:02]../common/linux_stack_trace.c: In function ‘signal_stack_trace_print’:
[13:33:02]../common/linux_stack_trace.c:82: error: ‘mcontext_t’ has no member named ‘gregs’
[13:33:02]../common/linux_stack_trace.c:149: error: ‘sz’ undeclared (first use in this function)
[13:33:02]../common/linux_stack_trace.c:149: error: (Each undeclared identifier is reported only once
[13:33:02]../common/linux_stack_trace.c:149: error: for each function it appears in.)
[13:33:02]../common/linux_stack_trace.c:149: warning: implicit declaration of function ‘backtrace’
[13:33:02]../common/linux_stack_trace.c:149: error: ‘bt’ undeclared (first use in this function)
[13:33:02]../common/linux_stack_trace.c:150: error: ‘strings’ undeclared (first use in this function)
[13:33:02]../common/linux_stack_trace.c:150: warning: implicit declaration of function ‘backtrace_symbols’
[13:33:02]../common/linux_stack_trace.c:67: warning: unused variable ‘buff’
[13:33:02]../common/linux_stack_trace.c:66: warning: unused variable ‘cmd’
[13:33:02]../common/linux_stack_trace.c:65: warning: unused variable ‘ip’
[13:33:02]../common/linux_stack_trace.c:64: warning: unused variable ‘bp’
[13:33:02]../common/linux_stack_trace.c:63: warning: unused variable ‘dlinfo’
[13:33:02]../common/linux_stack_trace.c:61: warning: unused variable ‘f’
[13:33:02]make: *** [../common/linux_stack_trace.o] Error 1
[13:33:02]cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -o ../common/linux_stack_trace.o ../common/linux_stack_trace.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
[13:33:02]../common/linux_stack_trace.c: In function ‘signal_stack_trace_print’:
[13:33:02]../common/linux_stack_trace.c:82: error: ‘mcontext_t’ has no member named ‘gregs’
[13:33:02]../common/linux_stack_trace.c:149: error: ‘sz’ undeclared (first use in this function)
[13:33:02]../common/linux_stack_trace.c:149: error: (Each undeclared identifier is reported only once
[13:33:02]../common/linux_stack_trace.c:149: error: for each function it appears in.)
[13:33:02]../common/linux_stack_trace.c:149: warning: implicit declaration of function ‘backtrace’
[13:33:02]../common/linux_stack_trace.c:149: error: ‘bt’ undeclared (first use in this function)
[13:33:02]../common/linux_stack_trace.c:150: error: ‘strings’ undeclared (first use in this function)
[13:33:02]../common/linux_stack_trace.c:150: warning: implicit declaration of function ‘backtrace_symbols’
[13:33:02]../common/linux_stack_trace.c:67: warning: unused variable ‘buff’
[13:33:02]../common/linux_stack_trace.c:66: warning: unused variable ‘cmd’
[13:33:02]../common/linux_stack_trace.c:65: warning: unused variable ‘ip’
[13:33:02]../common/linux_stack_trace.c:64: warning: unused variable ‘bp’
[13:33:02]../common/linux_stack_trace.c:63: warning: unused variable ‘dlinfo’
[13:33:02]../common/linux_stack_trace.c:61: warning: unused variable ‘f’
[13:33:02]make: *** [../common/linux_stack_trace.o] Error 1
[13:33:02]make: Nothing to be done for `all'.

论坛徽章:
0
2 [报告]
发表于 2015-04-16 13:09 |只看该作者
自己顶一个,翻看以前的帖子也没找到解决办法,是我没认真看吗。。。。linux for power这个系统用的不多诶

论坛徽章:
0
3 [报告]
发表于 2015-04-16 13:19 |只看该作者
@happy_fish100 斑竹求救。。。
我要是想试试安装低版本的,怎么删除之前安装的啊?

论坛徽章:
0
4 [报告]
发表于 2015-04-16 15:25 |只看该作者
我们同事说可能因为linux for power是PPC,需要fastDFS的PPC版本,不知道斑竹有没有?

论坛徽章:
0
5 [报告]
发表于 2015-04-17 17:05 |只看该作者
自己顶一个,希望能解决

论坛徽章:
0
6 [报告]
发表于 2015-04-20 11:04 |只看该作者
斑竹在吗?

论坛徽章:
0
7 [报告]
发表于 2015-04-22 14:45 |只看该作者
楼主问题解决了吗?遇到同样的错误

论坛徽章:
0
8 [报告]
发表于 2015-05-06 14:07 |只看该作者
回复 7# slniansmile


恩解决了,需要修改源文件


   

论坛徽章:
0
9 [报告]
发表于 2015-05-11 17:18 |只看该作者
回复 8# 1909698521


    能把修改后的源文件发我一份吗?513918845@qq.com

论坛徽章:
0
10 [报告]
发表于 2015-11-27 17:33 |只看该作者
问题一样,请问您是怎么解决的,可否给个参考。
方便的话发个改后的文件,万分感谢。
jason_wu116@126.com
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP