Пытаюсь установить драйвера pentanet на Mandrake 10.1 ядро 2.6.8.1-12. При компиляции вылетает куча ошибок:# ./configure
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether ln -s works... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for fcntl.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for working const... (cached) yes
checking for size_t... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking whether gcc needs -traditional... (cached) no
checking return type of signal handlers... (cached) void
checking for gettimeofday... (cached) yes
checking for socket... (cached) yes
checking for strtol... (cached) yes
checking your running kernel version is... 2.6.8.1-12mdk
checking /usr/src/linux... found
creating ./config.status
creating Makefile
creating tools/Makefile
creating driver/Makefile
creating apps/Makefile
creating apps/libif/Makefile
creating apps/libapp/Makefile
creating apps/monitor/Makefile
creating apps/textapp/Makefile
creating config.h
config.h is unchanged# make
cd . && autoheader
make all-recursive
make[1]: Entering directory `/usr/local/src/pentanet-RHx-2.3.1'
Making all in driver
make[2]: Entering directory `/usr/local/src/pentanet-RHx-2.3.1/driver'
gcc -march=i486 -DCPU=486 -D__SMP__ -DMODVERSIONS -DMODULE -D__KERNEL__ -O2 -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -pipe -falign-loops=2 -falign-jumps=2 -falign-functions=2 -I/usr/src/linux/include -c pentaif.c
In file included from pentaif.c:9:
/usr/include/linux/modversions.h:1:2: #error "======================================================="
/usr/include/linux/modversions.h:2:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/modversions.h:3:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/modversions.h:4:2: #error ""
/usr/include/linux/modversions.h:5:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/modversions.h:6:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/modversions.h:7:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/modversions.h:8:2: #error "currently running kernel. They should only be"
/usr/include/linux/modversions.h:9:2: #error "included via other system header files - user space"
/usr/include/linux/modversions.h:10:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/modversions.h:11:2: #error "<asm/*.h> as well."
/usr/include/linux/modversions.h:12:2: #error ""
/usr/include/linux/modversions.h:13:2: #error "To build kernel modules please do the following:"
/usr/include/linux/modversions.h:14:2: #error ""
/usr/include/linux/modversions.h:15:2: #error " o Have the kernel sources installed"
/usr/include/linux/modversions.h:16:2: #error ""
/usr/include/linux/modversions.h:17:2: #error " o Make sure that the symbolic link"
/usr/include/linux/modversions.h:18:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/modversions.h:19:2: #error " the matching kernel source directory"
/usr/include/linux/modversions.h:20:2: #error ""
/usr/include/linux/modversions.h:21:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/modversions.h:22:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/modversions.h:23:2: #error ""
/usr/include/linux/modversions.h:24:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/modversions.h:25:2: #error " compiler option to use the correct include files:"
/usr/include/linux/modversions.h:26:2: #error ""
/usr/include/linux/modversions.h:27:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/modversions.h:28:2: #error ""
/usr/include/linux/modversions.h:29:2: #error " instead of"
/usr/include/linux/modversions.h:30:2: #error ""
/usr/include/linux/modversions.h:31:2: #error " -I/usr/include/linux"
/usr/include/linux/modversions.h:32:2: #error ""
/usr/include/linux/modversions.h:33:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/modversions.h:34:2: #error "======================================================="
In file included from /usr/src/linux/include/asm/processor.h:18,
from /usr/src/linux/include/asm/thread_info.h:16,
from /usr/src/linux/include/linux/thread_info.h:21,
from /usr/src/linux/include/linux/spinlock.h:12,
from /usr/src/linux/include/linux/capability.h:45,
from /usr/src/linux/include/linux/sched.h:7,
from /usr/src/linux/include/linux/module.h:10,
from pentaif.c:10:
/usr/src/linux/include/asm/system.h: In function `__set_64bit_var':
/usr/src/linux/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[2]: *** [pentaif.o] Ошибка 1
make[2]: Leaving directory `/usr/local/src/pentanet-RHx-2.3.1/driver'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/usr/local/src/pentanet-RHx-2.3.1'
make: *** [all-recursive-am] Ошибка 2Подскажите в чем причина. Заранее благодарен за ответ.
Приветствую!pentanet собирается только под ядра 2.4.х ветки
>Приветствую!
>
>pentanet собирается только под ядра 2.4.х ветки
А можно ли как-нибудь всё же под 2.6 собрать? в чём причина ошибок?
>[оверквотинг удален]
>/usr/src/linux/include/asm/system.h: In function `__set_64bit_var':
>/usr/src/linux/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
>/usr/src/linux/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
>make[2]: *** [pentaif.o] Ошибка 1
>make[2]: Leaving directory `/usr/local/src/pentanet-RHx-2.3.1/driver'
>make[1]: *** [all-recursive] Ошибка 1
>make[1]: Leaving directory `/usr/local/src/pentanet-RHx-2.3.1'
>make: *** [all-recursive-am] Ошибка 2
>
>Подскажите в чем причина. Заранее благодарен за ответ.У меня тоже почти такие же ошибки только конфигуре ругается на GTK, а Всё остальное
также, если решили проблему напишите как? Плз.