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

Re: linux/config.h missing from linux-libc-dev



Stefano Sabatini <stefano.sabatini-lala@poste.it> writes:

> I'm on a Debian Lenny with a linux-2.6.22 kernel and the
> linux-libc-dev 2.6.22-4 version.
>
> linux-libc-dev is replacing the old package linux-kernel-headers which
> seems to be deprecated.

Correct.

> The problem is that I'm trying to compile the spca5xx module from
> source, and it fails compiling because of the missing linux/config.h
> file.

Please complain to whoever wrote that module that linux/config.h is a
deprecated file which no longer exists in current kernel headers.

> Do you have any hint about the status of the linux/config.h file, and
> about a possible fix to this problem?

It was removed upstream in Linux 2.6.19, I remember because I wanted
to build another module that depended on it.  If you need it, here are
its contents:

----------------------8->--------------------------------------------------
#ifndef _LINUX_CONFIG_H
#define _LINUX_CONFIG_H
/* This file is no longer in use and kept only for backward compatibility.
 * autoconf.h is now included via -imacros on the commandline
 */
#include <linux/autoconf.h>

#endif
-----------------------8->-------------------------------------------------

Save that file under /usr/include/linux/config.h and hope that the
module compiles.

Good luck,
Sven



Reply to: