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

Re: [Fwd: Re: Bug#270299: kernel-headers-2.6.8-1: missing headers drm.h and drm_proc.h needed for building radeon modules.]



G'Day - (as an Aussie myself :).

Yes,

That is correct. We should be using our own drm.h that we build our other items against. This will be fixed in a future release. For the moment, you are installing it in the same way that I do.

Regards,

Matthew



Donovan Baarda wrote:
G'day,

Just started using these packages. Tried dpkg-make building them using
the kernel-header-2.6-k7 packages (ie, without using a full
kernel-source tree), and got the following errors;

CC [M]  /usr/src/modules/fglrx-4.3.0-3.12.0/firegl_public.o
/usr/src/modules/fglrx-4.3.0-3.12.0/firegl_public.c:279:17: drm.h: No
such file or directory
/usr/src/modules/fglrx-4.3.0-3.12.0/firegl_public.c:294:22: drm_proc.h:
No such file or directory

After getting a full kernel-source-2.6.8, I sym-linked the
drivers/char/drm/*.h files into the kernel-headers tree, and the build
worked (though I'm yet to verify that the generated modules work).

Thinking this was a deficiency in the kernel-headers package, I reported
a bug against them, and got the response below.

According to the kernel package maintainers, fglrx-4.3.0-kernel-src
should include it's own drm.h headers. Is there any particular reason
why it doesn't? If it did, then it could be built against the
kernel-headers packages, and wouldn't need a full kernel-source tree.

-----Forwarded Message-----
From: Christoph Hellwig <hch at lst dot de>
To: Donovan Baarda <abo at minkirri dot apana dot org dot au>, 270299 at bugs dot debian dot org
Cc: control at bugs dot debian dot org
Subject: Re: Bug#270299: kernel-headers-2.6.8-1: missing headers drm.h and drm_proc.h needed for building radeon modules.
Date: Mon, 06 Sep 2004 19:29:31 +0200

close 270299
thanks


On Tue, Sep 07, 2004 at 03:07:11AM +1000, Donovan Baarda wrote:

Package: kernel-headers-2.6.8-1
Version: 2.6.8-1
Severity: normal


Several *.h header files are not included in the kernel-headers
packages. Some of the missing headers are needed when building
some kernel modules.

When using make-kpk to build the fglrx radeon modules-image package
from inside the /usr/src/kernel-headers-2.6.8-1-k7/ directory, an
error message is displayed reporting that header files drm.h and
drm_proc.h cannot be found.


This is intentionally.  These headers must match the exact version
of the drm drivers used.


These headers and many others are included in the kernel-source-2.6.8
package, in the directory drivers/char/drm/, but not in the
corresponding /usr/src/kernel-headers-2.6.8-1/drivers/char/drm/
directory. Adding symlinks from this headers directory to all the *.h
files in the corresponding source directory made the fglrx modules
build fine.


No.  The fglrx must include copies of these headers that match their
driver.  It must not use the kernel version.