[PATCH] Fix build on non-Xen architectures

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <bwalle@xxxxxxx>

---
 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
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility

[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux