LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-16-2005, 01:40 AM   #1
taiwf
Member
 
Registered: Jun 2005
Distribution: debian, ubuntu, redhat,knoppix
Posts: 194

Rep: Reputation: 31
compiling ITE8212f driver..


I tried to cmpile the source code (in c) but there are so many error comeout . I attempt to fix the error but i got stuck on the part where i dono why some header file got invoked (eg. autoconf.h whish is not explicitly used in the C-code). And when i go into autoconf.h, it only contained an comment: #error Invalid kernel header included in userspace
Can anyone tell me where to look for to fix this? Also __kernel_dev_t

===========beginning portion of the error code============

make -C /usr/src/linux-2.6.9 SUBDIRS=/root/ide modules
make[1]: Entering directory `/usr/src/linux-2.6.9'
Makefile:461: .config: No such file or directory
CC [M] /root/ide/iteraid.o
In file included from /usr/include/linux/module.h:10,
from /root/ide/iteraid.c:233:
include/linux/config.h:4:28: linux/autoconf.h: No such file or directory <------------******
In file included from include/linux/types.h:13,
from include/linux/prefetch.h:13,
from include/linux/list.h:7,
from /usr/include/linux/module.h:11,
from /root/ide/iteraid.c:233:
include/linux/posix_types.h:47:29: asm/posix_types.h: No such file or directory
In file included from include/linux/prefetch.h:13,
from include/linux/list.h:7,
from /usr/include/linux/module.h:11,
from /root/ide/iteraid.c:233:
include/linux/types.h:14:23: asm/types.h: No such file or directory
In file included from include/linux/prefetch.h:13,
from include/linux/list.h:7,
from /usr/include/linux/module.h:11,
from /root/ide/iteraid.c:233:
include/linux/types.h:18: error: syntax error before "__kernel_dev_t" <--------*********
include/linux/types.h:18: warning: type defaults to `int' in declaration of `__kernel_dev_t'
include/linux/types.h:18: warning: data definition has no type or storage class
include/linux/types.h:21: error: syntax error before "dev_t"
include/linux/types.h:21: warning: type defaults to `int' in declaration of `dev_t'
 
Old 08-17-2005, 09:49 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
At the 3rd line of your log :
Code:
Makefile:461: .config: No such file or directory
You may need to copy the config file for your actual kernel here
(maybe it is in /boot, that depends if you use your distribution stock
kernel...)

Did you install kernel-headers package for your distribution ?

Last edited by keefaz; 08-17-2005 at 09:50 AM.
 
Old 08-17-2005, 05:12 PM   #3
taiwf
Member
 
Registered: Jun 2005
Distribution: debian, ubuntu, redhat,knoppix
Posts: 194

Original Poster
Rep: Reputation: 31
I install kernel package from http://www.kernel.org/pub/linux/kernel/v2.6/
as the default installation kinda leave the /usr/src/ directory empty. [btw i use fedora c3]

The only .config file i found is from /lib/modules/2.6.9-1.667/build/.config and after i copy it to the /usr/src/linux-2.6.9 , there is no error message of not found .config but the rest still remain the same.

=========beginning portion error message==============
make -C /usr/src/linux-2.6.9 SUBDIRS=/root/ide modules
make[1]: Entering directory `/usr/src/linux-2.6.9'
CC [M] /root/ide/iteraid.o
In file included from include/linux/module.h:9,
from /root/ide/iteraid.c:233:
include/linux/config.h:4:28: linux/autoconf.h: No such file or directory
In file included from include/linux/module.h:10,
from /root/ide/iteraid.c:233:
include/linux/sched.h:4:36: asm/param.h: No such file or directory
In file included from include/linux/types.h:13,
from include/linux/capability.h:16,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /root/ide/iteraid.c:233:
include/linux/posix_types.h:47:29: asm/posix_types.h: No such file or directory
In file included from include/linux/capability.h:16,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /root/ide/iteraid.c:233:
include/linux/types.h:14:23: asm/types.h: No such file or directory
In file included from include/linux/capability.h:16,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /root/ide/iteraid.c:233:
include/linux/types.h:18: error: syntax error before "__kernel_dev_t"
include/linux/types.h:18: warning: type defaults to `int' in declaration of `__kernel_dev_t'
include/linux/types.h:18: warning: data definition has no type or storage class
include/linux/types.h:21: error: syntax error before "dev_t"
include/linux/types.h:21: warning: type defaults to `int' in declaration of `dev_t'
include/linux/types.h:21: warning: data definition has no type or storage class
include/linux/types.h:22: error: syntax error before "ino_t"
include/linux/types.h:22: warning: type defaults to `int' in declaration of `ino_t'
include/linux/types.h:22: warning: data definition has no type or storage class
include/linux/types.h:23: error: syntax error before "mode_t"
include/linux/types.h:23: warning: type defaults to `int' in declaration of `mode_t'
include/linux/types.h:23: warning: data definition has no type or storage class

=========================================




Last edited by taiwf; 08-17-2005 at 06:01 PM.
 
  


Reply



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
Compiling driver into kernel DDoS YourseLF Linux - General 1 08-07-2005 01:45 PM
Driver compiling howto teruthar Linux - Hardware 4 05-29-2004 02:37 PM
Driver compiling problems silverline Linux - Hardware 1 03-12-2004 03:00 AM
RAID controler ITE8212F topche Linux - Hardware 0 10-30-2003 06:53 AM
Compiling A Driver into Ghostscript Slack_Master Linux - General 5 02-13-2003 10:37 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:23 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration