LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 11-30-2006, 07:39 PM   #1
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
Removal of include/linux/config.h file in 2.6.19 kernel


The file include/linux/config.h has been removed from 2.6.19 kernel. So remember this if you build your favorite module against the new 2.6.19 kernel and you get an error similar to this:

In file included from /usr/src/modules/qc-usb-0.6.4/qc-driver.c:47:
/usr/src/modules/qc-usb-0.6.4/quickcam.h:79:26: linux/config.h: No such file or directory



Thats because there is no more include/linux/config.h file in 2.6.19. This is from the Changelog:

Quote:
Author: Dave Jones <someone@someplace.com>
Date: Mon Oct 9 19:13:51 2006 -0400

[HEADERS] Put linux/config.h out of its misery.

Signed-off-by: Dave Jones <someone@someplace.com>



Author: Paul Mundt <nameremoved@a-linux-company.org>
Date: Tue Oct 3 13:19:02 2006 +0900

sh: Kill off remaining config.h references.

A few of these managed to sneak back in, get rid of them once
and for all.
What I did was to modify the code and commented out all instances of the include statement :
#include <linux/config.h>
This seemed to work. Another trick that worked was just do this:
touch /usr/src/linux/include/linux/config.h
 
Old 12-01-2006, 01:30 AM   #2
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248

Rep: Reputation: 30
Thanks for the information. It will be usefull.
 
Old 12-01-2006, 10:32 AM   #3
axobeauvi
Member
 
Registered: Apr 2003
Posts: 128

Rep: Reputation: 16
well the .h files are not from the main kernel package ,they are from the devel package(unless you built it yourself)
if kernel-devel(or -source depending on distro) isn't installed there wouldn't be any useful includes
 
Old 12-01-2006, 12:34 PM   #4
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248

Rep: Reputation: 30
Quote:
Originally Posted by axobeauvi
well the .h files are not from the main kernel package ,they are from the devel package(unless you built it yourself)
if kernel-devel(or -source depending on distro) isn't installed there wouldn't be any useful includes
I usually build the kernel myself... I am currently using 2.6.17-beyond4 but I plan to build 2.6.19 soon, so this information will be usefull.
 
Old 12-02-2006, 03:34 AM   #5
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Original Poster
Rep: Reputation: 46
Quote:
Posted by axobeauvi
well the .h files are not from the main kernel package ,they are from the devel package(unless you built it yourself)
if kernel-devel(or -source depending on distro) isn't installed there wouldn't be any useful includes
The reason I posted this is for people who have the kernel sources installed and are trying to build a module against the sources and are getting the error I mentioned. You wouldn't be trying to build a module for the 2.6.19 kernel unless you had the sources installed.

Actually there is not much to the file:
Code:
#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
So if you have problems you could probably just add to code here to your module.c file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel includes at /usr/src/linux/include do not match current kernel. blanny Red Hat 1 03-09-2006 07:53 AM
Webmin cannot handle Samba config files that use the config or include directives allelopath Linux - Networking 3 01-18-2005 09:36 AM
**Default Config File for Linux Kernel Problems** geogecko Linux - Software 4 02-12-2004 12:45 PM
I lost rmed my kernel config file. Anyway to create one from the kernel? severedhead Linux - Software 3 07-12-2002 07:54 PM


All times are GMT -5. The time now is 01:38 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration