Bug 19132 - fails to build using drm headers from 2.6.28
Summary: fails to build using drm headers from 2.6.28
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: high blocker
Assignee: Wang Zhenyu
QA Contact: Xorg Project Team
Depends on:
Reported: 2008-12-17 01:33 UTC by Timo Aaltonen
Modified: 2008-12-18 09:02 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Description Timo Aaltonen 2008-12-17 01:33:50 UTC
Ubuntu will soon switch to using drm headers shipped by the kernel, but the intel driver fails to build (, using libdrm master from today)

../doltcompile gcc -DHAVE_CONFIG_H -I. -I../../src -I..   -I/usr/include/xorg -I/usr/include/pixman-1    -I/usr/include/drm   -Wall -Wpointer-arith -Wstrict-prototypes 	-Wmissing-prototypes -Wmissing-declarations 	-Wnested-externs -fno-strict-aliasing -I/usr/include/xorg -I/usr/include/pixman-1   -I/usr/include/drm   -I/usr/include/X11/dri -I../../uxa -DI830_XV -DI830_USE_XAA -DI830_USE_EXA -Wall -g -O2 -MT i830_memory.lo -MD -MP -MF .deps/i830_memory.Tpo -c -o i830_memory.lo ../../src/i830_memory.c
../../src/i830_memory.c: In function 'i830_allocator_init':
../../src/i830_memory.c:510: error: 'DRM_IOCTL_I915_GEM_INIT' undeclared (first use in this function)
../../src/i830_memory.c:510: error: (Each undeclared identifier is reported only once
../../src/i830_memory.c:510: error: for each function it appears in.)
make[5]: *** [i830_memory.lo] Error 1

this is becoming an issue pretty quick after jaunty alpha2 which will be released this week..
Comment 1 Eric Anholt 2008-12-17 22:25:19 UTC
Heh, building your own hacks on upstream components breaks.

I'll push a fix to drm-intel-next, but it may not land in 2.6.28.
Comment 2 Wang Zhenyu 2008-12-17 22:53:57 UTC
hey, looks DRM_IOCTL_I915_GEM_EXECBUFFER is not defined too. ;)
Comment 3 Eric Anholt 2008-12-18 09:02:26 UTC
In drm-intel-next:

commit db139d606ea25e0590373d5ce6bfc42ce317a61c
Author: Eric Anholt <eric@anholt.net>
Date:   Wed Dec 17 22:32:14 2008 -0800

    drm/i915: Add missing userland definitions for gem init/execbuffer.
    fdo bug #19132.
    Signed-off-by: Eric Anholt <eric@anholt.net>

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.