From: Joseph K. <jk...@us...> - 2020-02-14 22:34:53
|
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 |