Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 581620

Summary: x11-libs/libdrm-2.4.68 xf86drm.c:444:23: error: implicit declaration of function ‘makedev’, 'minor' and 'major'
Product: Gentoo Linux Reporter: Anton Kochkov <anton.kochkov>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info output
full build log

Description Anton Kochkov 2016-04-30 06:57:37 UTC
Created attachment 432632 [details]
emerge --info output

/var/tmp/portage/x11-libs/libdrm-2.4.68/work/libdrm-2.4.68/xf86drm.c: In function ‘drmOpenMinor’:
/var/tmp/portage/x11-libs/libdrm-2.4.68/work/libdrm-2.4.68/xf86drm.c:444:23: error: implicit declaration of function ‘makedev’ [-Werror=implicit-function-declaration]
  return drmOpenDevice(makedev(DRM_MAJOR, minor), minor, type);
                       ^
/var/tmp/portage/x11-libs/libdrm-2.4.68/work/libdrm-2.4.68/xf86drm.c:444:2: warning: nested extern declaration of ‘makedev’ [-Wnested-externs]
  return drmOpenDevice(makedev(DRM_MAJOR, minor), minor, type);
  ^
/var/tmp/portage/x11-libs/libdrm-2.4.68/work/libdrm-2.4.68/xf86drm.c: In function ‘drmGetNodeTypeFromFd’:
/var/tmp/portage/x11-libs/libdrm-2.4.68/work/libdrm-2.4.68/xf86drm.c:2717:8: error: implicit declaration of function ‘major’ [-Werror=implicit-function-declaration]
  maj = major(sbuf.st_rdev);
        ^
/var/tmp/portage/x11-libs/libdrm-2.4.68/work/libdrm-2.4.68/xf86drm.c:2717:2: warning: nested extern declaration of ‘major’ [-Wnested-externs]
  maj = major(sbuf.st_rdev);
  ^
/var/tmp/portage/x11-libs/libdrm-2.4.68/work/libdrm-2.4.68/xf86drm.c:2718:8: error: implicit declaration of function ‘minor’ [-Werror=implicit-function-declaration]
  min = minor(sbuf.st_rdev);
        ^
/var/tmp/portage/x11-libs/libdrm-2.4.68/work/libdrm-2.4.68/xf86drm.c:2718:2: warning: nested extern declaration of ‘minor’ [-Wnested-externs]
  min = minor(sbuf.st_rdev);
  ^
cc1: some warnings being treated as errors
Makefile:706: recipe for target 'libdrm_la-xf86drm.lo' failed
make[2]: *** [libdrm_la-xf86drm.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/tmp/portage/x11-libs/libdrm-2.4.68/work/libdrm-2.4.68/xf86drmMode.c: In function ‘drmHandleEvent’:
/var/tmp/portage/x11-libs/libdrm-2.4.68/work/libdrm-2.4.68/xf86drmMode.c:891:15: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
   e = (struct drm_event *) &buffer[i];
               ^
make[2]: Leaving directory '/var/tmp/portage/x11-libs/libdrm-2.4.68/work/libdrm-2.4.68-abi_x86_32.x86'
Makefile:815: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/x11-libs/libdrm-2.4.68/work/libdrm-2.4.68-abi_x86_32.x86'
Makefile:574: recipe for target 'all' failed
make: *** [all] Error 2
Comment 1 Anton Kochkov 2016-04-30 06:58:25 UTC
Created attachment 432634 [details]
full build log

Related to this bug: (mesa) https://bugs.gentoo.org/show_bug.cgi?id=581618
Comment 3 Alex Xu (Hello71) 2016-04-30 15:07:57 UTC

*** This bug has been marked as a duplicate of bug 580088 ***