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

Re: Is it possible to install older linux-headers on Debian 8



 Hi.

Please do not top-post.
Please do not CC me, I'm subscribed to the list.

On Thu, 18 Jun 2015 17:06:09 +0530
Dhiraj Bhor <dhirajbhor21@gmail.com> wrote:

> One quick question:
> If ata.h is missing from latest package then which file is replacement for
> it?

Looking in the problem further, I realized that I was wrong.
linux-headers-3.16-0-4-686-pae package actually provides ata.h, although
it's location is unconventional somewhat. Specifically,

/usr/src/linux-headers-3.16.0-4-686-pae/include/config/ata.h

So, it's no wonder that scons is unable to locate the needed header.
Not is was *that* big problem for building kernel module, but I don't
recall any *userspace* program that requires that part of kernel
headers (and that's clearly userspace one as they don't write kernel
in C++).

And, the good news are - there's no need for this old packages trickery.
The bad news being - you'll need to convince scons to look the header
there. Personally I'd say 'screw it' and patch the source with the
following diff:

-#include <linux/ata.h>
-#include "/usr/src/linux-headers-3.16.0-4-686-pae/include/config/ata.h"

Reco


Reply to: