[Hardware] CP-114
Aleksey P. Karelin
karelin-ap на mail.ru
Чт Мар 31 10:18:24 MSD 2005
Всем добрый день!
Пытаюсь установить драйвера для платы расширения COM-портов MOXA CP-114.
Драйвера поставлются в виде исходников. При выполнении команды make
install получаю:
cd utility;\
make install
make[1]: Entering directory `/home/root/Soft/mxser/utility'
cd diag;\
make install
make[2]: Entering directory `/home/root/Soft/mxser/utility/diag'
cp -p msdiag /usr/bin
make[2]: Leaving directory `/home/root/Soft/mxser/utility/diag'
cd mon;\
make install
make[2]: Entering directory `/home/root/Soft/mxser/utility/mon'
cp -p msmon /usr/bin
make[2]: Leaving directory `/home/root/Soft/mxser/utility/mon'
cd term;\
make install
make[2]: Entering directory `/home/root/Soft/mxser/utility/term'
cp -p msterm /usr/bin
make[2]: Leaving directory `/home/root/Soft/mxser/utility/term'
make[1]: Leaving directory `/home/root/Soft/mxser/utility'
cd driver;\
make install
make[1]: Entering directory `/home/root/Soft/mxser/driver'
gcc -c -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -I/usr/src/linux-2.4/include
-I/usr/src/linux/include -DMODVERSIONS mxser.c
In file included from /usr/include/linux/config.h:4,
from mxser.c:40:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included
in userspace
In file included from mxser.c:42:
/usr/include/linux/modversions.h:1:2: #error Invalid kernel header
included in userspace
In file included from /usr/include/linux/prefetch.h:13,
from /usr/include/linux/list.h:6,
from /usr/include/linux/module.h:12,
from mxser.c:44:
/usr/include/asm/processor.h:56: `CONFIG_X86_L1_CACHE_SHIFT' undeclared
here (not in a function)
/usr/include/asm/processor.h:56: requested alignment is not a constant
In file included from mxser.c:50:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included
in userspace
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:46,
from mxser.c:55:
/usr/include/linux/irq.h:65: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here
(not in a function)
/usr/include/linux/irq.h:65: requested alignment is not a constant
In file included from /usr/include/linux/interrupt.h:46,
from mxser.c:55:
/usr/include/asm/hardirq.h:16: `CONFIG_X86_L1_CACHE_SHIFT' undeclared
here (not in a function)
/usr/include/asm/hardirq.h:16: requested alignment is not a constant
In file included from mxser.c:55:
/usr/include/linux/interrupt.h:129: `CONFIG_X86_L1_CACHE_SHIFT'
undeclared here (not in a function)
/usr/include/linux/interrupt.h:129: requested alignment is not a constant
mxser.c: In function `cleanup_module':
mxser.c:779: warning: implicit declaration of function `pci_resource_start'
mxser.c:779: warning: implicit declaration of function `pci_resource_len'
/usr/include/asm/uaccess.h: At top level:
mxser.c:695: warning: `CheckIsMoxaMust' defined but not used
make[1]: *** [module] Error 1
make[1]: Leaving directory `/home/root/Soft/mxser/driver'
make: *** [driver_install] Error 2
Понятно, что файл mxser.c использует usr/include/linux/autoconf в
котором почему-то прописано
#error Invalid kernel header included in userspace
Это особенность дистрибутива, или я чего-то недоставил?
Использую дистрибутив ALTLinux 2.3 Compact.
С уважением, Карелин А.
Подробная информация о списке рассылки Hardware