Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 581620 - x11-libs/libdrm-2.4.68 xf86drm.c:444:23: error: implicit declaration of function ‘makedev’, 'minor' and 'major'
Summary: x11-libs/libdrm-2.4.68 xf86drm.c:444:23: error: implicit declaration of funct...
Status: RESOLVED DUPLICATE of bug 580088
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-30 06:57 UTC by Anton Kochkov
Modified: 2016-04-30 15:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info output (emerge_info3.log,17.00 KB, text/plain)
2016-04-30 06:57 UTC, Anton Kochkov
Details
full build log (libdrm_build.log,23.22 KB, text/plain)
2016-04-30 06:58 UTC, Anton Kochkov
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***