1909698521 发表于 2015-04-16 12:47

linux for power安装fastdfs编译报错

如题,
一批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的

# ./make.sh install
mkdir -p /usr/lib64
install -m 755 libfastcommon.so /usr/lib64
mkdir -p /usr/include/fastcommon
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
# ln -s /usr/lib64/libfastcommon.so /usr/local/lib/libfastcommon.so
# ln -s /usr/lib64/libfastcommon.so /usr/lib/libfastcommon.so
# ln -s /usr/lib64/libfdfsclient.so /usr/local/lib/libfdfsclient.so
# ln -s /usr/lib64/libfdfsclient.so /usr/lib/libfdfsclient.so
# cd ..

# ./make.sh
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
../common/linux_stack_trace.c: In function ‘signal_stack_trace_print’:
../common/linux_stack_trace.c:82: error: ‘mcontext_t’ has no member named ‘gregs’
../common/linux_stack_trace.c:149: error: ‘sz’ undeclared (first use in this function)
../common/linux_stack_trace.c:149: error: (Each undeclared identifier is reported only once
../common/linux_stack_trace.c:149: error: for each function it appears in.)
../common/linux_stack_trace.c:149: warning: implicit declaration of function ‘backtrace’
../common/linux_stack_trace.c:149: error: ‘bt’ undeclared (first use in this function)
../common/linux_stack_trace.c:150: error: ‘strings’ undeclared (first use in this function)
../common/linux_stack_trace.c:150: warning: implicit declaration of function ‘backtrace_symbols’
../common/linux_stack_trace.c:67: warning: unused variable ‘buff’
../common/linux_stack_trace.c:66: warning: unused variable ‘cmd’
../common/linux_stack_trace.c:65: warning: unused variable ‘ip’
../common/linux_stack_trace.c:64: warning: unused variable ‘bp’
../common/linux_stack_trace.c:63: warning: unused variable ‘dlinfo’
../common/linux_stack_trace.c:61: warning: unused variable ‘f’
make: *** [../common/linux_stack_trace.o] Error 1
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
../common/linux_stack_trace.c: In function ‘signal_stack_trace_print’:
../common/linux_stack_trace.c:82: error: ‘mcontext_t’ has no member named ‘gregs’
../common/linux_stack_trace.c:149: error: ‘sz’ undeclared (first use in this function)
../common/linux_stack_trace.c:149: error: (Each undeclared identifier is reported only once
../common/linux_stack_trace.c:149: error: for each function it appears in.)
../common/linux_stack_trace.c:149: warning: implicit declaration of function ‘backtrace’
../common/linux_stack_trace.c:149: error: ‘bt’ undeclared (first use in this function)
../common/linux_stack_trace.c:150: error: ‘strings’ undeclared (first use in this function)
../common/linux_stack_trace.c:150: warning: implicit declaration of function ‘backtrace_symbols’
../common/linux_stack_trace.c:67: warning: unused variable ‘buff’
../common/linux_stack_trace.c:66: warning: unused variable ‘cmd’
../common/linux_stack_trace.c:65: warning: unused variable ‘ip’
../common/linux_stack_trace.c:64: warning: unused variable ‘bp’
../common/linux_stack_trace.c:63: warning: unused variable ‘dlinfo’
../common/linux_stack_trace.c:61: warning: unused variable ‘f’
make: *** [../common/linux_stack_trace.o] Error 1
make: Nothing to be done for `all'.

1909698521 发表于 2015-04-16 13:09

自己顶一个,翻看以前的帖子也没找到解决办法,是我没认真看吗。。。。linux for power这个系统用的不多诶

1909698521 发表于 2015-04-16 13:19

@happy_fish100 斑竹求救。。。
我要是想试试安装低版本的,怎么删除之前安装的啊?

1909698521 发表于 2015-04-16 15:25

我们同事说可能因为linux for power是PPC,需要fastDFS的PPC版本,不知道斑竹有没有?:dizzy:

1909698521 发表于 2015-04-17 17:05

自己顶一个,希望能解决

1909698521 发表于 2015-04-20 11:04

斑竹在吗?

slniansmile 发表于 2015-04-22 14:45

楼主问题解决了吗?遇到同样的错误

1909698521 发表于 2015-05-06 14:07

回复 7# slniansmile


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


   

slniansmile 发表于 2015-05-11 17:18

回复 8# 1909698521


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

andy_wu116 发表于 2015-11-27 17:33

问题一样,请问您是怎么解决的,可否给个参考。
方便的话发个改后的文件,万分感谢。
jason_wu116@126.com
页: [1] 2
查看完整版本: linux for power安装fastdfs编译报错