merged Bruce
On Fri, Aug 31, 2018 at 8:02 AM, Hongzhi.Song <[email protected]> wrote: > Error: > diod/ops.c:845: undefined reference to `makedev' > > Fixed: > Glibc removes sys/sysmacros.h which defines makedev from sys/types.h > since v2.28. [Commit ID: e16deca62e16f] > > And then glibc suggestions us to include <sys/sysmacros.h> directly if > code needs it. > > Signed-off-by: Hongzhi.Song <[email protected]> > --- > recipes-extended/diod/diod_1.0.24.bb | 1 + > ...01-diod-ops.c-add-header-file-for-makedev.patch | 40 > ++++++++++++++++++++++ > 2 files changed, 41 insertions(+) > create mode 100644 > recipes-extended/diod/files/0001-diod-ops.c-add-header-file-for-makedev.patch > > diff --git a/recipes-extended/diod/diod_1.0.24.bb > b/recipes-extended/diod/diod_1.0.24.bb > index a4d159a..bb5707e 100644 > --- a/recipes-extended/diod/diod_1.0.24.bb > +++ b/recipes-extended/diod/diod_1.0.24.bb > @@ -15,6 +15,7 @@ SRC_URI = "git://github.com/chaos/diod.git;protocol=git \ > file://diod.conf \ > > file://0001-build-allow-builds-to-work-with-separate-build-dir.patch \ > file://0002-auto.diod.in-remove-bashisms.patch \ > + file://0001-diod-ops.c-add-header-file-for-makedev.patch \ > " > DEPENDS = "libcap ncurses tcp-wrappers lua" > > diff --git > a/recipes-extended/diod/files/0001-diod-ops.c-add-header-file-for-makedev.patch > > b/recipes-extended/diod/files/0001-diod-ops.c-add-header-file-for-makedev.patch > new file mode 100644 > index 0000000..e6f7ece > --- /dev/null > +++ > b/recipes-extended/diod/files/0001-diod-ops.c-add-header-file-for-makedev.patch > @@ -0,0 +1,40 @@ > +From f75836731d6051d85e6317eb4c12465bafb4973e Mon Sep 17 00:00:00 2001 > +From: "Hongzhi.Song" <[email protected]> > +Date: Fri, 31 Aug 2018 05:47:02 -0400 > +Subject: [PATCH] diod/ops.c: add header file for makedev > + > +Error: > +diod/ops.c:845: undefined reference to `makedev' > + > +Fixed: > +Glibc removes sys/sysmacros.h which defines makedev from sys/types.h > +since v2.28. [Commit ID: e16deca62e16f] > + > +And then glibc suggestions us to include <sys/sysmacros.h> directly if > +code needs it. > + > +Upstream-Status: Submitted > +[diod: > +mail: [email protected] > +author: [email protected]] > + > +Signed-off-by: Hongzhi.Song <[email protected]> > +--- > + diod/ops.c | 1 + > + 1 file changed, 1 insertion(+) > + > +diff --git a/diod/ops.c b/diod/ops.c > +index c6c8291..469a502 100644 > +--- a/diod/ops.c > ++++ b/diod/ops.c > +@@ -74,6 +74,7 @@ > + #include <pthread.h> > + #include <errno.h> > + #include <sys/types.h> > ++#include <sys/sysmacros.h> > + > + #ifdef __FreeBSD__ > + #if !__BSD_VISIBLE > +-- > +2.8.1 > + > -- > 2.8.1 > > -- > _______________________________________________ > meta-virtualization mailing list > [email protected] > https://lists.yoctoproject.org/listinfo/meta-virtualization -- "Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end" -- _______________________________________________ meta-virtualization mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-virtualization
