编译驱动程序出现的问题

joe88   2007-6-14 18:47 楼主
/usr/local/arm/2.95.3/bin/arm-linux-gcc -D__KERNEL__ -DMOULE -I/home/linux2-24/linux-2.4.27/include -O -w  -g -c addrv.c
In file included from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/uaccess.h:7,
                 from addrv.c:14:
/home/linux2-24/linux-2.4.27/include/linux/sched.h:807: conflicting types for `kernel_thread'
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/processor.h:125: previous declaration of `kernel_thread'
In file included from /home/linux2-24/linux-2.4.27/include/asm-arm/arch-at91rm9200/hardware.h:20,
                 from addrv.c:19:
/home/linux2-24/linux-2.4.27/include/asm-arm/arch-at91rm9200/AT91RM9200_SYS.h:24: redefinition of `struct _AT91S_SYS'
make: *** [addrv.o] 错误 1

回复评论

暂无评论,赶紧抢沙发吧
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复