Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 309939 - [x11 overlay] libdrm should also install intel_bufmgr.h and xf86drm.h to make mesa and xf86-video-intel compile
Summary: [x11 overlay] libdrm should also install intel_bufmgr.h and xf86drm.h to make...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-17 13:37 UTC by Florian Klink
Modified: 2010-03-17 22:52 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Klink 2010-03-17 13:37:10 UTC
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
Comment 1 Florian Klink 2010-03-17 21:29:13 UTC
later, to compile xf86-video-intel-9999, drm/xf86drm.h is also needed.

failing build: http://pastebin.com/yiLgnbLZ
Comment 2 Florian Klink 2010-03-17 22:52:46 UTC
fixed in latest libdrm git