要在centos6上编译,为了能在centos5用,用静态编译
有两个显示函数参数的patch,但是不一定能起作用
patch1:
https://github.com/jhammond/xbt https://www.redhat.com/archives/crash-utility/2013-September/msg00010.html
patch2:
https://github.com/hziSot/crash-stack-parser https://github.com/hziSot/crash-stack-parser/blob/master/crash-parse-stack-7.0.1.patch
一、依赖包:
yum install bison zlib zlib-static glibc-static elfutils-devel elfutils-devel-static elfutils-libelf-devel-static ncurses ncurses-static crash-devel
二、patch1: xbt 显示参数
patch: https://github.com/hziSot/crash-stack-parser
make CFLAGS+=–static LDFLAGS+=–static
三、patch2: bt -H 显示参数
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|