drm.h not found

Help
Hermann
2005-02-14
2013-04-15
  • Hermann
    Hermann
    2005-02-14

    I've been following the Mini-Howto but I get to setp 6 and when I try to make I get the following error:

    In file included from via_common.h:4,
                     from via_priv.h:4,
                     from via_driver.h:65,
                     from via_driver.c:42:
    ../../../../../../programs/Xserver/hw/xfree86/os-support/xf86drm.h:39:17: drm.h: No such file or directory
    In file included from via_common.h:4,
                     from via_priv.h:4,
                     from via_driver.h:65,
                     from via_driver.c:42:
    ../../../../../../programs/Xserver/hw/xfree86/os-support/xf86drm.h:222: error: parse error before "drm_context_t"

    [bunch of parse errors]

    make: *** [via_driver.o] Error 1

    But drm.h is present:

    /usr/src/Xorg/xc# find | grep drm.h
    ./programs/Xserver/hw/xfree86/os-support/xf86drm.h
    ./programs/Xserver/hw/xfree86/drivers/savage/savage_drm.h
    ./lib/GL/dri/drm/drm.h
    ./extras/drm/linux/i810_drm.h
    ./extras/drm/linux/i830_drm.h
    ./extras/drm/linux/savage_drm.h
    ./extras/drm/linux/gamma_drm.h
    ./extras/drm/libdrm/xf86drm.h
    ./extras/drm/shared/r128_drm.h
    ./extras/drm/shared/radeon_drm.h
    ./extras/drm/shared/via_drm.h
    ./extras/drm/shared/i915_drm.h
    ./extras/drm/shared/drm.h
    ./extras/drm/shared/mach64_drm.h
    ./extras/drm/shared/sis_drm.h
    ./extras/drm/shared/mga_drm.h
    ./extras/Mesa/src/mesa/drivers/dri/dri_client/imports/xf86drm.h

    Any ideas?