From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <424B9630.80005@mail.ru> Date: Thu, 31 Mar 2005 10:18:24 +0400 From: "Aleksey P. Karelin" User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru-RU; rv:1.6) Gecko/20040310 X-Accept-Language: ru-ru, ru MIME-Version: 1.0 To: hardware@altlinux.ru Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit X-Spam: Not detected Subject: [Hardware] CP-114 X-BeenThere: hardware@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hardware@altlinux.ru List-Id: ALT Linux hardware support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Mar 2005 06:18:25 -0000 Archived-At: List-Archive: Всем добрый день! Пытаюсь установить драйвера для платы расширения 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. С уважением, Карелин А.