Compile error with ossdetect with glibc starting with version 2.23
Posted: Mon Sep 25, 2017 10:34 am
So I stumbled at another problem, this time with newest glibc starting version 2.23.
After some search I found this topic on Gentoo forums: glibc 2.23 and undefined reference to `minor' or `major'
Which gave me the idea to add #include <sys/sysmacros.h> which fixed the problem.
Is that a correct solution? Have no idea!
Is it works? Yes.
Here is a patch for convenience:
Code: Select all
ossdetect.c:(.text+0xf2f): undefined reference to `makedev'Which gave me the idea to add #include <sys/sysmacros.h> which fixed the problem.
Is that a correct solution? Have no idea!
Is it works? Yes.
Here is a patch for convenience: