[Mesa-dev] [Bug 27612] Mesa 7.8.1 does not compile against libdrm 2.4.20
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon May 3 18:00:28 PDT 2010
https://bugs.freedesktop.org/show_bug.cgi?id=27612
--- Comment #1 from Vinson Lee <vlee at vmware.com> 2010-05-03 18:00:27 PDT ---
The build is probably picking up /usr/include/drm/i915_drm.h over
/usr/include/libdrm/i915_drm.h, and /usr/include/drm/i915_drm.h doesn't have
I915_MADV_DONTNEED.
This is likely fixed by drm commit 245d6957794648d7fd83279c680fed6e4c262147,
which isn't part of a released libdrm yet.
Patching your pkgconfig/libdrm.pc with the equivalent fix may solve your build
issue.
commit 894c86e8400f13f1ee0dfe23ca4b5f98c32d9223
Author: Kristian Høgsberg <krh at bitplanet.net>
Date: Fri Apr 9 16:33:38 2010 -0400
Revert "Fix pkgconfig includes for /usr/include/drm"
This reverts commit 245d6957794648d7fd83279c680fed6e4c262147.
libdrm now install headers in ${includedir}/libdrm and /usr/include/drm
is reserved for the kernel headers. We should only ever add one of these
to the CFLAGS.
diff --git a/libdrm.pc.in b/libdrm.pc.in
index b218d12..b46e2a6 100644
--- a/libdrm.pc.in
+++ b/libdrm.pc.in
@@ -7,4 +7,4 @@ Name: libdrm
Description: Userspace interface to kernel DRM services
Version: @PACKAGE_VERSION@
Libs: -L${libdir} -ldrm
-Cflags: -I${includedir} -I${includedir}/drm -I${includedir}/libdrm
+Cflags: -I${includedir} -I${includedir}/libdrm
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the mesa-dev
mailing list