ed> Should the build glue (adding appropriate -I arguments, etc.) already
ed> be in place?

ed> I tried building the change on Ubuntu 18.04 via CI and it failed to
ed> find <sys/tree.h>.

The example programs in the libelf tutorial use "libbsd-dev".

To build on Ubuntu you may need something like the following to be
incorporated into your patch:

Index: addr2line.c
===================================================================
--- addr2line.c (revision 3822)
+++ addr2line.c (working copy)
@@ -25,6 +25,8 @@
  */

 #include <sys/param.h>
+#include <sys/tree.h>
+
 #include <dwarf.h>
 #include <err.h>
 #include <fcntl.h>
Index: os.Linux.mk
===================================================================
--- os.Linux.mk (nonexistent)
+++ os.Linux.mk (working copy)
@@ -0,0 +1,2 @@
+CFLAGS+=    -I/usr/include/bsd -DLIBBSD_OVERLAY
+LDADD+=     -lbsd


-- 
Joseph Koshy | Volunteer Developer, The Elftoolchain Project


_______________________________________________
Elftoolchain-developers mailing list
Elftoolchain-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/elftoolchain-developers

Reply via email to