|
发表于 2005-1-12 20:30:54
|
显示全部楼层
Alex_Sune, 这个驱动怎么装不了啊。我按照说明文件的方法。出现下面的错误。
是怎么回事啊?帮帮我啊
[root@fc3 ltmodem595lus]# make install
./ltuninst
ERROR: Module ltserial does not exist in /proc/modules
ERROR: Module ltmodem does not exist in /proc/modules
make all
make[1]: Entering directory `/usr/src/ltmodem595lus'
gcc -D__KERNEL__ -DMODULE -DNO_EEPROM -w -O2 -fomit-frame-pointer -I/usr/src/linux/include -c -o ltmodem.a ltmodem.c
In file included from ltmodem.c:12:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from ltmodem.c:21:
/usr/include/linux/config.h:5:2: #error Incorrectly using glibc headers for a kernel module
In file included from /usr/include/linux/module.h:20,
from ltmodem.c:22:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from the appropriate kernel package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.
In file included from /usr/include/linux/sched.h:13,
from ltmodem.c:24:
/usr/include/linux/times.h:7: error: syntax error before "clock_t"
/usr/include/linux/times.h:9: error: syntax error before "tms_cutime"
/usr/include/linux/times.h:10: error: syntax error before "tms_cstime"
In file included from /usr/include/linux/sched.h:14,
from ltmodem.c:24:
/usr/include/linux/timex.h:148: error: field `time' has incomplete type
In file included from /usr/include/linux/signal.h:4,
from /usr/include/linux/sched.h:25,
from ltmodem.c:24:
/usr/include/asm/signal.h:107: error: syntax error before "sigset_t"
/usr/include/asm/signal.h:110: error: syntax error before '}' token
In file included from /usr/include/linux/signal.h:5,
from /usr/include/linux/sched.h:25,
from ltmodem.c:24:
/usr/include/asm/siginfo.h:26: error: syntax error before "pid_t"
/usr/include/asm/siginfo.h:38: error: syntax error before "pid_t"
/usr/include/asm/siginfo.h:41: error: syntax error before '}' token
/usr/include/asm/siginfo.h:45: error: syntax error before "pid_t"
/usr/include/asm/siginfo.h:48: error: syntax error before "_utime"
/usr/include/asm/siginfo.h:49: error: syntax error before "_stime"
/usr/include/asm/siginfo.h:62: error: syntax error before '}' token
/usr/include/asm/siginfo.h:63: error: syntax error before '}' token
In file included from /usr/include/linux/sched.h:65,
from ltmodem.c:24:
/usr/include/linux/time.h:10: error: syntax error before "time_t"
/usr/include/linux/time.h:12: error: syntax error before '}' token
/usr/include/linux/time.h:18: error: syntax error before "time_t"
/usr/include/linux/time.h:44: error: field `it_interval' has incomplete type
/usr/include/linux/time.h:45: error: field `it_value' has incomplete type
/usr/include/linux/time.h:49: error: field `it_interval' has incomplete type
/usr/include/linux/time.h:50: error: field `it_value' has incomplete type
In file included from /usr/include/linux/sched.h:67,
from ltmodem.c:24:
/usr/include/linux/resource.h:22: error: field `ru_utime' has incomplete type
/usr/include/linux/resource.h:23: error: field `ru_stime' has incomplete type
In file included from ltmodem.c:27:
/usr/include/linux/interrupt.h:12:25: asm/hardirq.h: No such file or directory
/usr/include/linux/interrupt.h:13:25: asm/softirq.h: No such file or directory
ltmodem.c: In function `lt_pci_find_device':
ltmodem.c:103: error: dereferencing pointer to incomplete type
ltmodem.c: In function `GetIrqFromDev':
ltmodem.c:112: error: dereferencing pointer to incomplete type
ltmodem.c: In function `GetBusNumberFromDev':
ltmodem.c:117: error: dereferencing pointer to incomplete type
ltmodem.c: In function `GetDevfnFromDev':
ltmodem.c:122: error: dereferencing pointer to incomplete type
ltmodem.c: In function `GetDeviceFromDev':
ltmodem.c:127: error: dereferencing pointer to incomplete type
ltmodem.c: In function `GetVendorFromDev':
ltmodem.c:132: error: dereferencing pointer to incomplete type
ltmodem.c: In function `GetBase_addressFromDev':
ltmodem.c:137: error: dereferencing pointer to incomplete type
ltmodem.c: In function `lt_add_timer':
ltmodem.c:142: error: invalid use of undefined type `struct timer_list'
ltmodem.c:142: error: `jiffies' undeclared (first use in this function)
ltmodem.c:142: error: (Each undeclared identifier is reported only once
ltmodem.c:142: error: for each function it appears in.)
ltmodem.c:143: error: invalid use of undefined type `struct timer_list'
ltmodem.c:144: error: invalid use of undefined type `struct timer_list'
ltmodem.c: In function `VMODEM_Get_System_Time':
ltmodem.c:150: error: storage size of 'time' isn't known
ltmodem.c: At top level:
ltmodem.c:252: error: syntax error before "config_must_be_included_before_module"
ltmodem.c:264: error: syntax error before "config_must_be_included_before_module"
ltmodem.c: In function `init_module':
ltmodem.c:269: error: `KERN_INFO' undeclared (first use in this function)
ltmodem.c:269: error: syntax error before string constant
ltmodem.c: In function `cleanup_module':
ltmodem.c:280: error: `KERN_INFO' undeclared (first use in this function)
ltmodem.c:280: error: syntax error before string constant
ltmodem.c: At top level:
ltmodem.c:52: error: storage size of `timerList' isn't known
make[1]: *** [ltmodem.a] Error 1
make[1]: Leaving directory `/usr/src/ltmodem595lus'
make: *** [install] Error 2 |
|