On Sep 25, 2014, at 1:38 PM, Dave Anderson <anderson(a)redhat.com>
wrote:
You can modify the crash.spec file by adding
< BuildRequires: ncurses-devel zlib-devel bison
> BuildRequires: ncurses-devel zlib-devel lzo-devel bison snappy-devel
< make RPMPKG="%{version}"
> make RPMPKG="%{version}" lzo snappy
And then create a new src.rpm with rpmbuild.
Alternatively, you could add this patch to the crash.spec file, which
is taken from the Fedora and RHEL7 distros:
--- crash-7.0.2/diskdump.c.orig
+++ crash-7.0.2/diskdump.c
@@ -23,6 +23,8 @@
* GNU General Public License for more details.
*/
+#define LZO
+#define SNAPPY
#include "defs.h"
#include "diskdump.h"
--- crash-7.0.2/Makefile.orig
+++ crash-7.0.2/Makefile
@@ -223,7 +223,7 @@ all: make_configure
gdb_merge: force
@if [ ! -f ${GDB}/README ]; then \
make --no-print-directory gdb_unzip; fi
- @echo "${LDFLAGS} -lz -ldl -rdynamic" > ${GDB}/gdb/mergelibs
+ @echo "${LDFLAGS} -lz -llzo2 -lsnappy -ldl -rdynamic" >
${GDB}/gdb/mergelibs
@echo "../../${PROGRAM} ../../${PROGRAM}lib.a" > ${GDB}/gdb/mergeobj
@rm -f ${PROGRAM}
@if [ ! -f ${GDB}/config.status ]; then \
Thank you!
--
Mark