|
在打完补丁的实时核linux-2.4.20-rtl3.2-pre2核上装了一块板卡 现在编了一个小的实时
采集数出程序。可是通过自配置文件生成Makefile文件 make 后出错
但是不用实时核的头文件 生成Makefile 文件就能编译
出错如下
source='controll.c' object='controll.o' libtool=no \
depfile='.deps/controll.Po' tmpdepfile='.deps/controll.TPo' \
depmode=gcc3 /bin/sh ./depcomp \
gcc -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRI
NG="" -DPACKAGE_BUGREPORT="" -DPACKAGE="controll" -DVERSION="0.18.0" -DSTDC_HE
ADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRI
NG_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_
H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_UNISTD_H=1
-DHAVE_TIME_H=1 -DHAVE_PTHREAD_H=1 -D_GNU_SOURCE=1 -I. -I. -I. -I../../includ
e -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasin
g -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVER
SIONS -include /usr/src/rtlinux/linux-2.4.20/include/linux/modversions.h -g -D
__RTL__ -D_LOOSE_KERNEL_NAMES -O2 -I/usr/src/rtlinux/rtlinux-3.2-pre2/linux/in
clude -I/usr/src/rtlinux/rtlinux-3.2-pre2/include -I/usr/src/rtlinux/rtlinux-3
.2-pre2/include/compat -I/usr/src/rtlinux/rtlinux-3.2-pre2/include/posix -c `t
est -f 'controll.c' || echo './'`controll.c
In file included from controll.c:7:
/usr/src/rtlinux/rtlinux-3.2-pre2/include/posix/unistd.h:25: conflicting types
for `ioctl'
/usr/include/sys/ioctl.h:42: previous declaration of `ioctl'
In file included from /usr/src/rtlinux/rtlinux-3.2-pre2/linux/include/linux/te
rmios.h:5,
from /usr/src/rtlinux/rtlinux-3.2-pre2/linux/include/linux/tt
y.h:22,
from /usr/src/rtlinux/rtlinux-3.2-pre2/linux/include/linux/sc
hed.h:24,
from /usr/src/rtlinux/rtlinux-3.2-pre2/include/rtl_sched.h:39
,
from /usr/src/rtlinux/rtlinux-3.2-pre2/include/posix/time.h:1
3,
from controll.c:9:
/usr/src/rtlinux/rtlinux-3.2-pre2/linux/include/asm/termios.h:7: redefinition
of `struct winsize'
/usr/src/rtlinux/rtlinux-3.2-pre2/linux/include/asm/termios.h:15: redefinition
of `struct termio'
controll.c:30: warning: function declaration isn't a prototype
controll.c:31: warning: function declaration isn't a prototype
controll.c: In function `init_module':
controll.c:112: warning: unused variable `port1' //这个是自己留着下面写程序用的
controll.c:112: warning: unused variable `port2'
make [error1]
请大哥大姐指教。
QQ8503928 |
|