From d476c3a0dadb47c69f08dafce2b1a400cda49a58 Mon Sep 17 00:00:00 2001 From: Logan O'Sullivan Bruns Date: Sun, 8 Feb 2015 03:38:34 +0000 Subject: [PATCH 1/3] Kernel 3.10 also appears to not have the store_gdt call either The current #ifdef says for 3.11 and above but 3.10 also does not appear to have the store_gdt call. This fixes a build issue on CentOS 7 which includes the 3.10 kernel. --- driver/intr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/intr.c b/driver/intr.c index b3bc0ef..87967ef 100644 --- a/driver/intr.c +++ b/driver/intr.c @@ -48,7 +48,7 @@ #define store_idt(ptr) asm volatile("sidt %0":"=m" (*ptr)) #endif -#if !defined(store_gdt) && LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0) +#if !defined(store_gdt) && LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0) /***********************************************/ /* Xen removed this - oh, so nice of you. */ /* Not! We want the GDT to debug dtrace, so */ From cffbd428ee71b11a6482d49da9b34706fd9fe1d9 Mon Sep 17 00:00:00 2001 From: Logan O'Sullivan Bruns Date: Sun, 8 Feb 2015 03:41:51 +0000 Subject: [PATCH 2/3] Add dwarf_loclist to libdw vs. libdwarf check On CentOS 7 libdw does not include dwarf_loclist but libdwarf does. This changes adds checking for dwarf_loclist to the check to determine whether to use libdw instead of libdwarf. --- tools/mkport.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/mkport.pl b/tools/mkport.pl index 11b4990..419dfb4 100755 --- a/tools/mkport.pl +++ b/tools/mkport.pl @@ -326,6 +326,7 @@ sub check_dwarf_h void main(int argc, char **argv) { dwarf_begin(); + dwarf_loclist(); } EOF $fh->close(); From 8ee119b297aa0b30d99ac5817b99d342bf7edab5 Mon Sep 17 00:00:00 2001 From: Logan O'Sullivan Bruns Date: Sun, 8 Feb 2015 03:44:13 +0000 Subject: [PATCH 3/3] Added libdwarf.a deps install for fedora/rhel/centos script --- tools/get-deps-fedora.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/get-deps-fedora.sh b/tools/get-deps-fedora.sh index b6b4718..08204d3 100755 --- a/tools/get-deps-fedora.sh +++ b/tools/get-deps-fedora.sh @@ -14,6 +14,7 @@ yum install \ kernel-devel \ libdwarf \ libdwarf-devel \ + libdwarf-static \ libgcc.i686 \ make \ perl \