- 论坛徽章:
- 0
|
如题,
一批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'. |
|