2

我试图在 ubuntu 10.04 上安装来自 FTDI (http://www.ftdichip.com/Drivers/VCP/Linux/ftdi_sio.tar.gz) 的虚拟 COM 驱动程序。

我下载了文件并尝试编译它。但它显示如下错误:

谁能告诉我原因?我安装了linux内核开发包

下面是make的输出。由于尺寸限制,我删除了一些部分

须藤制作
gcc -Wall -D__KERNEL__ -DMODULE -I/lib/modules/2.6.32-41-generic/build/include -D__SMP__ -DSMP -DMODVERSIONS -include /lib/modules/2.6.32-41-generic/build/include/ linux/modversions.h -I/usr/src/linux-2.6.32-41-generic/drivers/usb/serial/ -O -c -o ftdi_sio.o ftdi_sio.c
在 /lib/modules/2.6.32-41-generic/build/include/linux/kernel.h:11 包含的文件中,
                 来自 ftdi_sio.c:251:
/lib/modules/2.6.32-41-generic/build/include/linux/linkage.h:5:25:错误:asm/linkage.h:没有这样的文件或目录
在 /lib/modules/2.6.32-41-generic/build/include/linux/kernel.h:15 包含的文件中,
                 来自 ftdi_sio.c:251:
/lib/modules/2.6.32-41-generic/build/include/linux/bitops.h:17:24:错误:asm/bitops.h:没有这样的文件或目录
在 /lib/modules/2.6.32-41-generic/build/include/linux/kernel.h:15 包含的文件中,
                 来自 ftdi_sio.c:251:
/lib/modules/2.6.32-41-generic/build/include/linux/bitops.h:在函数“get_bitmask_order”中:
/lib/modules/2.6.32-41-generic/build/include/linux/bitops.h:29:警告:函数“fls”的隐式声明
/lib/modules/2.6.32-41-generic/build/include/linux/bitops.h:在函数“hweight_long”中:
/lib/modules/2.6.32-41-generic/build/include/linux/bitops.h:45:警告:函数“hweight32”的隐式声明
/lib/modules/2.6.32-41-generic/build/include/linux/bitops.h:45:警告:函数“hweight64”的隐式声明
/lib/modules/2.6.32-41-generic/build/include/linux/bitops.h:在函数“fls_long”中:
/lib/modules/2.6.32-41-generic/build/include/linux/bitops.h:132:警告:函数“fls64”的隐式声明
/lib/modules/2.6.32-41-generic/build/include/linux/bitops.h:在函数'__ffs64'中:
/lib/modules/2.6.32-41-generic/build/include/linux/bitops.h:147:警告:函数'__ffs'的隐式声明
在 ftdi_sio.c:251 包含的文件中:
/lib/modules/2.6.32-41-generic/build/include/linux/kernel.h:21:21:错误:asm/bug.h:没有这样的文件或目录
在 /lib/modules/2.6.32-41-generic/build/include/linux/preempt.h:9 包含的文件中,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/spinlock.h:50,
                 来自/lib/modules/2.6.32-41-generic/build/include/linux/mmzone.h:7,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:4,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:12,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:56:29:错误:asm/thread_info.h:没有这样的文件或目录
在 /lib/modules/2.6.32-41-generic/build/include/linux/preempt.h:9 包含的文件中,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/spinlock.h:50,
                 来自/lib/modules/2.6.32-41-generic/build/include/linux/mmzone.h:7,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:4,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:12,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:在顶层:
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:65:警告:在参数列表中声明了“struct thread_info”
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:65: 警告:它的范围只是这个定义或声明,这可能不是你想要的
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:在函数'set_ti_thread_flag'中:
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:67:警告:函数“set_bit”的隐式声明
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:67:错误:取消引用指向不完整类型的指针
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:在顶层:
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:70:警告:在参数列表中声明了“struct thread_info”
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:在函数'clear_ti_thread_flag'中:
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:72:警告:函数“clear_bit”的隐式声明
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:72:错误:取消引用指向不完整类型的指针
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:在顶层:
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:75:警告:在参数列表中声明了“struct thread_info”
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:在函数'test_and_set_ti_thread_flag'中:
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:77:警告:函数“test_and_set_bit”的隐式声明
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:77:错误:取消引用指向不完整类型的指针
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:在顶层:
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:80:警告:在参数列表中声明了“struct thread_info”
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:在函数'test_and_clear_ti_thread_flag'中:
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:82:警告:函数“test_and_clear_bit”的隐式声明
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:82:错误:取消引用指向不完整类型的指针
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:在顶层:
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:85:警告:在参数列表中声明了“struct thread_info”
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:在函数'test_ti_thread_flag'中:
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:87:警告:函数“test_bit”的隐式声明
/lib/modules/2.6.32-41-generic/build/include/linux/thread_info.h:87:错误:取消引用指向不完整类型的指针
在 /lib/modules/2.6.32-41-generic/build/include/linux/list.h:6 包含的文件中,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/preempt.h:11,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/spinlock.h:50,
                 来自/lib/modules/2.6.32-41-generic/build/include/linux/mmzone.h:7,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:4,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:12,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/prefetch.h:14:27:错误:asm/processor.h:没有这样的文件或目录
/lib/modules/2.6.32-41-generic/build/include/linux/prefetch.h:15:23:错误:asm/cache.h:没有这样的文件或目录
在 /lib/modules/2.6.32-41-generic/build/include/linux/preempt.h:11 包含的文件中,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/spinlock.h:50,
                 来自/lib/modules/2.6.32-41-generic/build/include/linux/mmzone.h:7,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:4,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:12,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/list.h:7:24:错误:asm/system.h:没有这样的文件或目录
在 /lib/modules/2.6.32-41-generic/build/include/linux/mmzone.h:7 包含的文件中,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:4,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:12,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/spinlock.h:在函数'smp_mb__after_lock'中:
/lib/modules/2.6.32-41-generic/build/include/linux/spinlock.h:137:警告:函数“smp_mb”的隐式声明
在 /lib/modules/2.6.32-41-generic/build/include/linux/mmzone.h:7 包含的文件中,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:4,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:12,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/spinlock.h:321:24:错误:asm/atomic.h:没有这样的文件或目录
在 /lib/modules/2.6.32-41-generic/build/include/linux/mmzone.h:9 包含的文件中,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:4,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:12,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/wait.h:26:25:错误:asm/current.h:没有这样的文件或目录
在 /lib/modules/2.6.32-41-generic/build/include/linux/mmzone.h:15 包含的文件中,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:4,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:12,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/seqlock.h:在函数'write_seqlock'中:
/lib/modules/2.6.32-41-generic/build/include/linux/seqlock.h:64:警告:函数“smp_wmb”的隐式声明
/lib/modules/2.6.32-41-generic/build/include/linux/seqlock.h:在函数“read_seqbegin”中:
/lib/modules/2.6.32-41-generic/build/include/linux/seqlock.h:93:警告:函数“cpu_relax”的隐式声明
/lib/modules/2.6.32-41-generic/build/include/linux/seqlock.h:96:警告:函数“smp_rmb”的隐式声明
在 /lib/modules/2.6.32-41-generic/build/include/linux/bitmap.h:8 包含的文件中,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/nodemask.h:95,
                 来自/lib/modules/2.6.32-41-generic/build/include/linux/mmzone.h:16,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:4,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:12,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/string.h:21:24:错误:asm/string.h:没有这样的文件或目录
在 /lib/modules/2.6.32-41-generic/build/include/linux/mmzone.h:16 包含的文件中,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:4,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:12,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/nodemask.h:在函数'__first_node'中:
/lib/modules/2.6.32-41-generic/build/include/linux/nodemask.h:239:警告:函数“find_first_bit”的隐式声明
/lib/modules/2.6.32-41-generic/build/include/linux/nodemask.h:在函数'__next_node'中:
/lib/modules/2.6.32-41-generic/build/include/linux/nodemask.h:245:警告:函数“find_next_bit”的隐式声明
/lib/modules/2.6.32-41-generic/build/include/linux/nodemask.h:在函数'__first_unset_node'中:
/lib/modules/2.6.32-41-generic/build/include/linux/nodemask.h:263:警告:函数“find_first_zero_bit”的隐式声明
在 /lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:4 包含的文件中,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:12,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/mmzone.h:20:22:错误:asm/page.h:没有这样的文件或目录
在 /lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:4 包含的文件中,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:12,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/mmzone.h:在顶层:
/lib/modules/2.6.32-41-generic/build/include/linux/mmzone.h:353:错误:'atomic_long_t'之前的预期说明符限定符列表
在 /lib/modules/2.6.32-41-generic/build/include/linux/notifier.h:13 包含的文件中,
                 从 /lib/modules/2.6.32-41-generic/build/include/linux/memory_hotplug.h:6,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/mmzone.h:666,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:4,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:12,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/mutex.h:在函数“mutex_is_locked”中:
/lib/modules/2.6.32-41-generic/build/include/linux/mutex.h:118:警告:函数“atomic_read”的隐式声明
在 /lib/modules/2.6.32-41-generic/build/include/linux/notifier.h:14 包含的文件中,
                 从 /lib/modules/2.6.32-41-generic/build/include/linux/memory_hotplug.h:6,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/mmzone.h:666,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:4,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:12,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/rwsem.h:22:65:错误:asm/rwsem.h:没有这样的文件或目录
在 /lib/modules/2.6.32-41-generic/build/include/linux/memory_hotplug.h:6 包含的文件中,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/mmzone.h:666,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:4,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:12,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/notifier.h:在顶层:
/lib/modules/2.6.32-41-generic/build/include/linux/notifier.h:62:错误:字段“rwsem”的类型不完整
在 /lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:4 包含的文件中,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:12,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/mmzone.h:在函数“populated_zone”中:
/lib/modules/2.6.32-41-generic/build/include/linux/mmzone.h:699:错误:“struct zone”没有名为“present_pages”的成员
/lib/modules/2.6.32-41-generic/build/include/linux/mmzone.h:在函数“is_normal”中:
/lib/modules/2.6.32-41-generic/build/include/linux/mmzone.h:748:错误:“struct zone”没有名为“zone_pgdat”的成员
在 /lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:7 包含的文件中,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:12,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/topology.h:34:26:错误:asm/topology.h:没有这样的文件或目录
在 /lib/modules/2.6.32-41-generic/build/include/linux/mmdebug.h:4 包含的文件中,
                 来自/lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:8,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:12,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/autoconf.h:991:1:警告:“CONFIG_NR_CPUS”重新定义
在 /lib/modules/2.6.32-41-generic/build/include/linux/mmzone.h:12 包含的文件中,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:4,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:12,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/threads.h:16:1: 警告:这是之前定义的位置
在 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:12 包含的文件中,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:在函数'allocflags_to_migratetype'中:
/lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:121:警告:函数“WARN_ON”的隐式声明
/lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:在函数“gfp_zone”中:
/lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:219: error: 'ZONE_DMA' undeclared (首先在这个函数中使用)
/lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:219: 错误:(每个未声明的标识符只报告一次
/lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:219:错误:对于它出现的每个函数。)
/lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:219: error: 'ZONE_HIGHMEM' undeclared (首先在这个函数中使用)
/lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:在函数'alloc_pages_node'中:
/lib/modules/2.6.32-41-generic/build/include/linux/gfp.h:284:警告:函数“cpu_to_node”的隐式声明
在 /lib/modules/2.6.32-41-generic/build/include/linux/time.h:9 包含的文件中,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/ktime.h:24,
                 来自/lib/modules/2.6.32-41-generic/build/include/linux/timer.h:5,
                 来自/lib/modules/2.6.32-41-generic/build/include/linux/workqueue.h:8,
                 来自/lib/modules/2.6.32-41-generic/build/include/linux/slub_def.h:11,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:162,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/math64.h:5:23:错误:asm/div64.h:没有这样的文件或目录
在 /lib/modules/2.6.32-41-generic/build/include/linux/time.h:9 包含的文件中,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/ktime.h:24,
                 来自/lib/modules/2.6.32-41-generic/build/include/linux/timer.h:5,
                 来自/lib/modules/2.6.32-41-generic/build/include/linux/workqueue.h:8,
                 来自/lib/modules/2.6.32-41-generic/build/include/linux/slub_def.h:11,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:162,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/math64.h:在函数“div_u64_rem”中:
/lib/modules/2.6.32-41-generic/build/include/linux/math64.h:43:警告:函数“do_div”的隐式声明
在 /lib/modules/2.6.32-41-generic/build/include/linux/jiffies.h:8 包含的文件中,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/ktime.h:25,
                 来自/lib/modules/2.6.32-41-generic/build/include/linux/timer.h:5,
                 来自/lib/modules/2.6.32-41-generic/build/include/linux/workqueue.h:8,
                 来自/lib/modules/2.6.32-41-generic/build/include/linux/slub_def.h:11,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:162,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/timex.h:170:23:错误:asm/timex.h:没有这样的文件或目录
在 /lib/modules/2.6.32-41-generic/build/include/linux/ktime.h:25 包含的文件中,
                 来自/lib/modules/2.6.32-41-generic/build/include/linux/timer.h:5,
                 来自/lib/modules/2.6.32-41-generic/build/include/linux/workqueue.h:8,
                 来自/lib/modules/2.6.32-41-generic/build/include/linux/slub_def.h:11,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:162,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/jiffies.h:257:31:错误:#if 中除以零
/lib/modules/2.6.32-41-generic/build/include/linux/jiffies.h:257:31:错误:#if 中除以零
/lib/modules/2.6.32-41-generic/build/include/linux/jiffies.h:257:31:错误:#if 中除以零
/lib/modules/2.6.32-41-generic/build/include/linux/jiffies.h:257:31:错误:#if 中除以零
/lib/modules/2.6.32-41-generic/build/include/linux/jiffies.h:257:31:错误:#if 中除以零
/lib/modules/2.6.32-41-generic/build/include/linux/jiffies.h:257:31:错误:#if 中除以零
/lib/modules/2.6.32-41-generic/build/include/linux/jiffies.h:257:31:错误:#if 中除以零
/lib/modules/2.6.32-41-generic/build/include/linux/jiffies.h:257:31:错误:#if 中除以零
/lib/modules/2.6.32-41-generic/build/include/linux/jiffies.h:257:31:错误:#if 中除以零
/lib/modules/2.6.32-41-generic/build/include/linux/jiffies.h:257:31:错误:#if 中除以零
/lib/modules/2.6.32-41-generic/build/include/linux/jiffies.h:257:31:错误:#if 中除以零
/lib/modules/2.6.32-41-generic/build/include/linux/jiffies.h:257:31:错误:#if 中除以零
/lib/modules/2.6.32-41-generic/build/include/linux/jiffies.h:257:31:错误:#if 中除以零
/lib/modules/2.6.32-41-generic/build/include/linux/jiffies.h:257:31:错误:#if 中除以零
/lib/modules/2.6.32-41-generic/build/include/linux/jiffies.h:257:31:错误:#if 中除以零
在 /lib/modules/2.6.32-41-generic/build/include/linux/slub_def.h:11 包含的文件中,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:162,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/workqueue.h:在顶层:
/lib/modules/2.6.32-41-generic/build/include/linux/workqueue.h:26:错误:'atomic_long_t'之前的预期说明符限定符列表
/lib/modules/2.6.32-41-generic/build/include/linux/workqueue.h:在函数“cancel_delayed_work”中:
/lib/modules/2.6.32-41-generic/build/include/linux/workqueue.h:240:错误:“struct work_struct”没有名为“data”的成员
/lib/modules/2.6.32-41-generic/build/include/linux/workqueue.h:在函数'__cancel_delayed_work'中:
/lib/modules/2.6.32-41-generic/build/include/linux/workqueue.h:255:错误:'struct work_struct'没有名为'data'的成员
在 /lib/modules/2.6.32-41-generic/build/include/linux/kmemtrace.h:12 包含的文件中,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slub_def.h:13,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:162,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/trace/events/kmem.h:在函数“trace_kmalloc”中:
/lib/modules/2.6.32-41-generic/build/include/trace/events/kmem.h:47:警告:函数“smp_read_barrier_depends”的隐式声明
在 /lib/modules/2.6.32-41-generic/build/include/linux/slab.h:162 包含的文件中,
                 来自 ftdi_sio.c:254:
/lib/modules/2.6.32-41-generic/build/include/linux/slub_def.h:在顶层:
/lib/modules/2.6.32-41-generic/build/include/linux/slub_def.h:53:错误:'atomic_long_t'之前的预期说明符限定符列表
/lib/modules/2.6.32-41-generic/build/include/linux/slub_def.h:142:错误:此处未声明“PAGE_SHIFT”(不在函数中)
/lib/modules/2.6.32-41-generic/build/include/linux/slub_def.h:在函数“kmalloc_large”中:
/lib/modules/2.6.32-41-generic/build/include/linux/slub_def.h:232:警告:函数“get_order”的隐式声明
/lib/modules/2.6.32-41-generic/build/include/linux/slub_def.h:236: error: 'PAGE_SIZE' undeclared (第一次在这个函数中使用)
/lib/modules/2.6.32-41-generic/build/include/linux/slub_def.h:在函数“kmalloc”中:
/lib/modules/2.6.32-41-generic/build/include/linux/slub_def.h:246: error: 'PAGE_SIZE' undeclared (第一次在这个函数中使用)
在 /lib/modules/2.6.32-41-generic/build/include/linux/fs.h:369 包含的文件中,
                 来自/lib/modules/2.6.32-41-generic/build/include/linux/tty.h:9,
                 来自 ftdi_sio.c:255:
/lib/modules/2.6.32-41-generic/build/include/linux/dcache.h:在函数“dget”中:
/lib/modules/2.6.32-41-generic/build/include/linux/dcache.h:336:警告:函数“BUG_ON”的隐式声明
/lib/modules/2.6.32-41-generic/build/include/linux/dcache.h:337:警告:函数“atomic_inc”的隐式声明
在 /lib/modules/2.6.32-41-generic/build/include/linux/fs.h:470 包含的文件中,
                 来自/lib/modules/2.6.32-41-generic/build/include/linux/tty.h:9,
                 来自 ftdi_sio.c:255:
/lib/modules/2.6.32-41-generic/build/include/linux/quota.h:在顶层:
/lib/modules/2.6.32-41-generic/build/include/linux/quota.h:384:错误:字段“dqptr_sem”的类型不完整
在 /lib/modules/2.6.32-41-generic/build/include/linux/tty.h:9 包含的文件中,
                 来自 ftdi_sio.c:255:
/lib/modules/2.6.32-41-generic/build/include/linux/fs.h:748:错误:字段“i_alloc_sem”的类型不完整
/lib/modules/2.6.32-41-generic/build/include/linux/fs.h:926:错误:'atomic_long_t'之前的预期说明符限定符列表
在 /lib/modules/2.6.32-41-generic/build/include/linux/tty.h:9 包含的文件中,
                 来自 ftdi_sio.c:255:
/lib/modules/2.6.32-41-generic/build/include/linux/fs.h:1337:错误:字段“s_umount”的类型不完整
/lib/modules/2.6.32-41-generic/build/include/linux/fs.h:在函数“file_accessed”中:
/lib/modules/2.6.32-41-generic/build/include/linux/fs.h:1738:错误:“结构文件”没有名为“f_flags”的成员
/lib/modules/2.6.32-41-generic/build/include/linux/fs.h:在函数“put_write_access”中:
/lib/modules/2.6.32-41-generic/build/include/linux/fs.h:2130:警告:函数“atomic_dec”的隐式声明
在 /usr/include/asm/termios.h:1 包含的文件中,
                 来自/lib/modules/2.6.32-41-generic/build/include/linux/termios.h:5,
                 来自 /lib/modules/2.6.32-41-generic/build/include/linux/tty.h:11,
                 来自 ftdi_sio.c:255:
/lib/modules/2.6.32-41-generic/build/include/asm-generic/termios.h:51:25:错误:asm/uaccess.h:没有这样的文件或目录
在 /lib/modules/2.6.32-41-generic/build/include/linux/module.h:14 包含的文件中,
                 来自 ftdi_sio.c:258:
/lib/modules/2.6.32-41-generic/build/include/linux/elf.h:7:21:错误:asm/elf.h:没有这样的文件或目录
在 ftdi_sio.c:258 包含的文件中:
/lib/modules/2.6.32-41-generic/build/include/linux/module.h:20:23:错误:asm/local.h:没有这样的文件或目录
/lib/modules/2.6.32-41-generic/build/include/linux/module.h:21:24:错误:asm/module.h:没有这样的文件或目录
在 ftdi_sio.c:258 包含的文件中:
/lib/modules/2.6.32-41-generic/build/include/linux/module.h:在顶层:
/lib/modules/2.6.32-41-generic/build/include/linux/module.h:302:错误:字段“arch”的类型不完整
/lib/modules/2.6.32-41-generic/build/include/linux/module.h:319:错误:“Elf_Sym”之前的预期说明符限定符列表
/lib/modules/2.6.32-41-generic/build/include/linux/module.h:455:错误:在 '* ' 令牌
/lib/modules/2.6.32-41-generic/build/include/linux/module.h:在函数'__module_get'中:
/lib/modules/2.6.32-41-generic/build/include/linux/module.h:470:警告:函数“local_inc”的隐式声明
/lib/modules/2.6.32-41-generic/build/include/linux/module.h:470:警告:函数“__module_ref_addr”的隐式声明
/lib/modules/2.6.32-41-generic/build/include/linux/module.h:472:警告:函数“local_read”的隐式声明
在 ftdi_sio.c:258 包含的文件中:
/lib/modules/2.6.32-41-generic/build/include/linux/module.h:在顶层:
/lib/modules/2.6.32-41-generic/build/include/linux/module.h:712:警告:在“Elf_Ehdr”的声明中,类型默认为“int”
/lib/modules/2.6.32-41-generic/build/include/linux/module.h:712: 错误:在 '*' 标记之前需要 ';'、',' 或 ')'
在 /lib/modules/2.6.32-41-generic/build/include/linux/usb.h:14 包含的文件中,
                 来自 ftdi_sio.c:261:
/lib/modules/2.6.32-41-generic/build/include/linux/delay.h:14:23:错误:asm/delay.h:没有这样的文件或目录
在 /lib/modules/2.6.32-41-generic/build/include/linux/usb.h:14 包含的文件中,
                 来自 ftdi_sio.c:261:
/lib/modules/2.6.32-41-generic/build/include/linux/delay.h:在函数'ndelay'中:
/lib/modules/2.6.32-41-generic/build/include/linux/delay.h:39:警告:函数“udelay”的隐式声明
在 /lib/modules/2.6.32-41-generic/build/include/linux/interrupt.h:12 包含的文件中,
                 来自/lib/modules/2.6.32-41-generic/build/include/linux/usb.h:15,
                 来自 ftdi_sio.c:261:
/lib/modules/2.6.32-41-generic/build/include/linux/hardirq.h:10:25:错误:asm/hardirq.h:没有这样的文件或目录
在 /lib/modules/2.6.32-41-generic/build/include/linux/interrupt.h:13 包含的文件中,
                 来自/lib/modules/2.6.32-41-generic/build/include/linux/usb.h:15,
                 来自 ftdi_sio.c:261:
/lib/modules/2.6.32-41-generic/build/include/linux/irqflags.h:57:26:错误:asm/irqflags.h:没有这样的文件或目录
4

1 回答 1

0

我在想你错过了 asm 符号链接。我没有经历所有事情,但是很多这些错误都缺少“asm/XXXX.h”。

我们来看看第一个错误。检查内核中的包含目录:

#/usr/src/linux/include> ls

在这个目录中你应该有一个“linux”目录,它应该包含linkage.h。打开这个我们看到:

#include <asm/linkage.h>

所以它在/usr/src/linux/include 中寻找一个“asm”目录。你那里有吗?它是否指向您系统的正确架构?这是我的 linux/include 的顶部

mike@linux-4puc:/usr/src/linux/include> ls -l
total 120
drwxr-xr-x  3 root root  4096 Aug  1 10:51 acpi
lrwxrwxrwx  1 root root    47 Aug  1 12:08 asm -> /usr/src/linux-3.1.10-1.16/arch/x86/include/asm

我的系统最初没有这个符号链接,所以我必须在开始时添加它:

mike@linux-4puc:/usr/src/linux/include> ln -s /usr/src/linux-3.1.10-1.16/arch/x86/include/asm asm
于 2012-08-22T14:58:19.077 回答