mickeycn888 发表于 2016-01-06 18:23

fastdfsV5.05在red hat server 6.5 for power linux上安装报错

错误代码如下,请问如何解决,谢谢。
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

mickeycn888 发表于 2016-01-06 18:37

是make.sh 编译的时候就报错

mickeycn888 发表于 2016-01-07 09:10

有朋友知道吗,帮忙看看呀:((

wzhanke 发表于 2016-01-07 21:07

回复 3# mickeycn888
我不太清楚你这个,我刚装的5.01 版时 虚拟机 装好后 yum install *gcc*然后 把 ssh、lrzsz、zip 、unzip(这几个可能和fds没什么关系) 都装了就正常 安装 fds了,那个libevent 没有装也没有影响


   

mickeycn888 发表于 2016-01-07 23:18

signal_stack_trace_print   看了源代码,是这个报错通过不了

happy_fish100 发表于 2016-01-10 09:10

把make.sh中DEBUG_FLAG设置为0即可。
或者下载最新版本的libfastcommon库
页: [1]
查看完整版本: fastdfsV5.05在red hat server 6.5 for power linux上安装报错