Compile error with ossdetect with glibc starting with version 2.23

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, cesium

hash
Member
Posts: 29
Joined: Thu Nov 18, 2010 10:38 am

Compile error with ossdetect with glibc starting with version 2.23

Postby hash » Mon Sep 25, 2017 10:34 am

So I stumbled at another problem, this time with newest glibc starting version 2.23.

Code: Select all

ossdetect.c:(.text+0xf2f): undefined reference to `makedev'
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:
oss-4.9999-002_oss4_sys-libs_glibc-2.23_ossdetect_fix_git.patch.txt
fix ossdetect compile error with glibc starting version 2.23
(611 Bytes) Downloaded 1484 times

Return to “Linux”

Who is online

Users browsing this forum: No registered users and 3 guests