When trying to compile git mesa (intel gallium), I get the following error: intel_regions.c: In function ‘intel_region_unmap’: intel_regions.c:137: warning: implicit declaration of function ‘drm_intel_gem_bo_unmap_gtt’ intel_regions.c: In function ‘intel_region_alloc’: intel_regions.c:185: error: ‘BO_ALLOC_FOR_RENDER’ undeclared (first use in this function) BO_ALLOC_FOR_RENDER is defined in intel/intel_bufmgr.h . Mesa needs it in sth like "/usr/include/drm", so the ebuild should install it there. If I copy this file manually, mesa builds successfully. Reproducible: Always Steps to Reproduce: 1. compile git libdrm 2. compile git mesa with gallium use flag and intel drivers
later, to compile xf86-video-intel-9999, drm/xf86drm.h is also needed. failing build: http://pastebin.com/yiLgnbLZ
fixed in latest libdrm git