Первый раз работаю в линукс(REd Hat 9). Хотел установить мультипорт MOXA C320T/PCI. Но происходит ошибка во время установки :
make install
gcc -c -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer-pipe -m486 -I/usr/src/linux-2.4/include -I/usr/src/linux/include -DMODVERSIONSmoxa.c
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
In file included from moxa.c:36:
/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/module.h:10,
from moxa.c:38:
/usr/include/linux/config.h:5:2: #error Incorrectly using glibc headers for a kernel module
In file included from moxa.c:44:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
moxa.c:46:22: linux/mm.h: No such file or directory
In file included from /usr/include/linux/signal.h:4,
from moxa.c:49:
/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/sched.h:14,
from moxa.c:50:
/usr/include/linux/timex.h:148: error: field `time' has incomplete type
moxa.c:51:25: linux/timer.h: No such file or directory
In file included from /usr/include/linux/interrupt.h:9,
from moxa.c:52:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in userspace: atomicity not guaranteed
In file included from moxa.c:52:
/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
moxa.c:54:28: linux/tty_flip.h: No such file or directory
moxa.c:59:26: linux/string.h: No such file or directory
In file included from moxa.c:63:
/usr/include/linux/tty_driver.h:130: error: field `init_termios' has incompletetype
moxa.c:64:25: linux/delay.h: No such file or directory
In file included from moxa.c:67:
/usr/include/asm/io.h:4:2: warning: #warning <asm/io.h> is deprecated, use <sys/io.h> instead
moxa.c:94:25: asm/uaccess.h: No such file or directory
moxa.c:202: error: field `normal_termios' has incomplete type
moxa.c:203: error: field `callout_termios' has incomplete type
moxa.c:208: error: syntax error before "wait_queue_head_t"
moxa.c:208: warning: no semicolon at end of struct or union
moxa.c:209: warning: type defaults to `int' in declaration of `close_wait'
moxa.c:209: warning: data definition has no type or storage class
moxa.c:213: error: syntax error before '}' token
moxa.c:216: error: syntax error before "tcflag_t"
moxa.c:216: warning: no semicolon at end of struct or union
moxa.c:221: error: syntax error before '}' token
moxa.c:297: warning: "struct file" declared inside parameter list
moxa.c:298: warning: "struct file" declared inside parameter list
moxa.c:305: warning: "struct file" declared inside parameter list
moxa.c:315: warning: "struct file" declared inside parameter list
moxa.c: In function `init_module':
moxa.c:364: warning: implicit declaration of function `printk'
moxa.c: In function `cleanup_module':
moxa.c:379: warning: implicit declaration of function `del_timer'
moxa.c:383: error: invalid use of undefined type `struct timer_list'
moxa.c:385: warning: implicit declaration of function `tty_unregister_driver'
moxa.c: In function `moxa_init':
moxa.c:408: warning: implicit declaration of function `init_MUTEX'
moxa.c:411: warning: implicit declaration of function `memset'
moxa.c:420: error: `tty_std_termios' undeclared (first use in this function)
moxa.c:420: error: (Each undeclared identifier is reported only once
moxa.c:420: error: for each function it appears in.)
moxa.c:423: error: `B9600' undeclared (first use in this function)
moxa.c:423: error: `CS8' undeclared (first use in this function)
moxa.c:423: error: `CREAD' undeclared (first use in this function)
moxa.c:423: error: `CLOCAL' undeclared (first use in this function)
moxa.c:423: error: `HUPCL' undeclared (first use in this function)
moxa.c:431: warning: assignment from incompatible pointer type
moxa.c:432: warning: assignment from incompatible pointer type
moxa.c:439: warning: assignment from incompatible pointer type
moxa.c:458: error: increment of pointer to unknown structure
moxa.c:458: error: arithmetic on pointer to an incomplete type
moxa.c:459: error: dereferencing pointer to incomplete type
moxa.c:460: error: dereferencing pointer to incomplete type
moxa.c:461: error: dereferencing pointer to incomplete type
moxa.c:462: error: dereferencing pointer to incomplete type
moxa.c:463: error: dereferencing pointer to incomplete type
moxa.c:464: error: dereferencing pointer to incomplete type
Moxa C320t/pci мультипорт (Проблема с установкой.)
Модератор: Модераторы разделов