想安装一个moxa的Nport5110,结果安装的时候出现如下错误::请高手帮忙看看,安装文件见附件!
In file included from /home/lxf/tmp/moxa/npreal2.c:57:0:
include/linux/tty_flip.h:17:19: note: expected ‘struct tty_port *’ but argument is of type ‘struct tty_struct *’
static inline int tty_insert_flip_char(struct tty_port *port,
^
/home/lxf/tmp/moxa/npreal2.c: In function ‘npreal_do_session_recovery’:
/home/lxf/tmp/moxa/npreal2.c:4571:22: error: incompatible types when assigning to type ‘struct ktermios *’ from type ‘struct ktermios’
if (!(termio = info->tty->termios))
^
cc1: some warnings being treated as errors
make[2]: *** [/home/lxf/tmp/moxa/npreal2.o] 错误 1
make[1]: *** [_module_/home/lxf/tmp/moxa] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-3.13.0-49-generic'
make: *** [module] 错误 2
Check Driver...
FAILED !!!
In file included from /home/lxf/tmp/moxa/npreal2.c:57:0:
include/linux/tty_flip.h:17:19: note: expected ‘struct tty_port *’ but argument is of type ‘struct tty_struct *’
static inline int tty_insert_flip_char(struct tty_port *port,
^
/home/lxf/tmp/moxa/npreal2.c: In function ‘npreal_do_session_recovery’:
/home/lxf/tmp/moxa/npreal2.c:4571:22: error: incompatible types when assigning to type ‘struct ktermios *’ from type ‘struct ktermios’
if (!(termio = info->tty->termios))
^
cc1: some warnings being treated as errors
make[2]: *** [/home/lxf/tmp/moxa/npreal2.o] 错误 1
make[1]: *** [_module_/home/lxf/tmp/moxa] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-3.13.0-49-generic'
make: *** [module] 错误 2
Check Driver...
FAILED !!!
Install Not Completed !