[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Porting DKMS package from ubuntu to debian shows compilation errors



On 2015-09-27 at 10:43, Paul Wise wrote:

> On Sun, Sep 27, 2015 at 10:44 AM, laalaa wrote:
> 
>> In file included from /var/lib/dkms/oem-audio-i915-baytrail/0.20150605/build/i915/i915_drv.c:33:0:
>> /var/lib/dkms/oem-audio-i915-baytrail/0.20150605/build/i915/i915_drv.h:277:2: error: unknown type name ‘drm_local_map_t’
>>   drm_local_map_t *sarea;
>>   ^
> 
> Looks like the code you are compiling isn't compatible with the
> version of the Linux kernel that you are compiling against. I would
> try to find a newer version of the code or report this issue to the
> person who is responsible for maintaining oem-audio-i915-baytrail.

Or possibly find an _older_ version of the code; it doesn't seem
impossible that this module might have been updated for kernel changes
which are more recent than what's in kernel 3.18.21.

In fact, that seems reasonably likely. I have headers for 4.0.0-2,
4.1.0-1, and 4.1.0-2 installed, and they all define drm_local_map_t in
include/drm/drm_legacy.h; if kernel 3.18.21 defines it elsewhere (such
that the includes in this module don't find it) or doesn't define it,
that would explain the observed behavior.

Unfortunately I don't have immediate access to a set of headers for the
3.18-era kernel, so I can't easily check that myself, but it shouldn't
be hard for you to check it on your build machine.

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man.         -- George Bernard Shaw

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: