This patch fixes the following build error on s390/s390x and ppc64.

 gcc -O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector \
         -g -fno-builtin-memset -fno-strict-aliasing -fno-builtin-memset \
         -o `cat mergeobj` libgdb.a ../bfd/libbfd.a ../readline/libreadline.a \
        ../opcodes/libopcodes.a  ../libiberty/libiberty.a \
        -lm -lncurses  ../libiberty/libiberty.a  -ldl -rdynamic `cat mergelibs`
 ../../crashlib.a(kernel.o): In function `back_trace':
 /usr/src/packages/BUILD/crash-4.0-7.3/kernel.c:2095: undefined reference to


Signed-off-by: Bernhard Walle <[EMAIL PROTECTED]>

---
 kernel.c |    5 +++++
 1 file changed, 5 insertions(+)

--- a/kernel.c
+++ b/kernel.c
@@ -2091,10 +2091,15 @@ complete_trace:
                goto complete_trace;
 
        if (BT_REFERENCE_FOUND(bt)) {
+#ifdef XEN_HYPERVISOR_ARCH
                if (XEN_HYPER_MODE())
                        xen_hyper_print_bt_header(fp, bt->task, 0);
                else
                        print_task_header(fp, task_to_context(bt->task), 0);
+#else
+               print_task_header(fp, task_to_context(bt->task), 0);
+#endif /* XEN_HYPERVISOR_ARCH */
+
                BCOPY(&btsave, bt, sizeof(struct bt_info));
                bt->ref = NULL;
                machdep->back_trace(bt);

--
Crash-utility mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/crash-utility

Reply via email to