0002-binutils-2.23.1.patch 1.87 KB
libbfd from binutils 2.23.1+ requires PACKAGE* definitions from autoconf.
Patch from https://fedorahosted.org/dropwatch/ticket/5
Upstream status: new.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>

diff -aurd src.orig/lookup.c src/lookup.c
--- a/src/lookup.c	2011-10-03 22:51:38.000000000 +0400
+++ b/src/lookup.c	2013-02-18 09:13:56.683214438 +0400
@@ -27,13 +27,13 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <sys/utsname.h>
-#include <bfd.h>
 #include <string.h>
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/stat.h>

 #include "lookup.h"
+#include <bfd.h>

 extern struct lookup_methods bfd_methods;
 extern struct lookup_methods kallsym_methods;
diff -aurd src.orig/lookup.h src/lookup.h
--- a/src/lookup.h	2011-10-03 22:51:38.000000000 +0400
+++ b/src/lookup.h	2013-02-18 09:11:00.506895026 +0400
@@ -28,6 +28,9 @@
 #include <stdlib.h>
 #include <asm/types.h>

+// satisfy PR 14072 in bfd.h
+#define PACKAGE 1
+#define PACKAGE_VERSION 1

 /*
  * Initalization routine
diff -aurd src.orig/lookup_bfd.c src/lookup_bfd.c
--- a/src/lookup_bfd.c	2012-01-16 22:34:11.000000000 +0400
+++ b/src/lookup_bfd.c	2013-02-18 09:14:02.472984310 +0400
@@ -25,13 +25,13 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <sys/utsname.h>
-#include <bfd.h>
 #include <string.h>
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/stat.h>

 #include "lookup.h"
+#include <bfd.h>


 static int lookup_bfd_init(void)
diff -aurd src.orig/lookup_kas.c src/lookup_kas.c
--- a/src/lookup_kas.c	2012-05-31 02:43:23.000000000 +0400
+++ b/src/lookup_kas.c	2013-02-18 09:14:07.906101713 +0400
@@ -25,7 +25,6 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <sys/utsname.h>
-#include <bfd.h>
 #include <string.h>
 #include <unistd.h>
 #include <sys/types.h>
@@ -33,6 +32,7 @@
 #include <sys/queue.h>

 #include "lookup.h"
+#include <bfd.h>

 struct symbol_entry {
 	char *sym_name;