[SOLVED] Не собирается net-firewall/ipset-2.4.7

Сабж на x86_64. Kernel 2.6.32-gentoo-r7.
emerge --info тут

Логи

* CPV:  net-firewall/ipset-2.4.7
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux multilib userland_GNU
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.32-gentoo-r7/build
 * Found sources for kernel version:
 *     2.6.32-gentoo-r7
 * Modular kernel detected, will build kernel modules
 * Checking for suitable kernel configuration options...                  [ ok ]
>>> Unpacking source...
>>> Unpacking ipset-2.4.7.tar.bz2 to /var/tmp/portage/net-firewall/ipset-2.4.7/work
 * Applying ipset-2.4.7-LDFLAGS.patch ...                                 [ ok ]
>>> Source unpacked in /var/tmp/portage/net-firewall/ipset-2.4.7/work
>>> Compiling source in /var/tmp/portage/net-firewall/ipset-2.4.7/work/ipset-2.4.7 ...
 * Building userspace
make -j2 -s CC=x86_64-pc-linux-gnu-gcc 'COPT_FLAGS=-O2 -march=native  -mcx16 -m3dnow -mmmx -msse -msse2 -msse3 -pipe -ftree-vectorize -g0 -Wno-all ' PREFIX= LIBDIR=/lib64 BINDIR=/sbin MANDIR=/usr/share/man INCDIR=/usr/include binaries 
 * Building kernel modules
 * Preparing ip_set module
make -j2 -s HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= IP_NF_SET_MAX=256 IP_NF_SET_HASHSIZE=1024 all 
In file included from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /var/tmp/portage/net-firewall/ipset-2.4.7/work/ipset-2.4.7/kernel/ip_set.c:16:
include/linux/mmzone.h:18:26: error: linux/bounds.h: Нет такого файла или каталога
include/linux/mmzone.h:258:5: warning: "MAX_NR_ZONES" is not defined
In file included from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /var/tmp/portage/net-firewall/ipset-2.4.7/work/ipset-2.4.7/kernel/ip_set.c:16:
include/linux/mmzone.h:300: ошибка: ‘MAX_NR_ZONES’ не описан в этой области (не в функции)
In file included from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /var/tmp/portage/net-firewall/ipset-2.4.7/work/ipset-2.4.7/kernel/ipt_set.c:13:
include/linux/mmzone.h:18:26: error: linux/bounds.h: Нет такого файла или каталога
include/linux/mmzone.h:258:5: warning: "MAX_NR_ZONES" is not defined
In file included from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /var/tmp/portage/net-firewall/ipset-2.4.7/work/ipset-2.4.7/kernel/ipt_set.c:13:
include/linux/mmzone.h:300: ошибка: ‘MAX_NR_ZONES’ не описан в этой области (не в функции)
In file included from include/linux/scatterlist.h:6,
                 from include/linux/dma-mapping.h:7,
                 from include/linux/dmaengine.h:26,
                 from include/linux/skbuff.h:30,
                 from include/linux/ip.h:108,
                 from /var/tmp/portage/net-firewall/ipset-2.4.7/work/ipset-2.4.7/kernel/ip_set.c:19:
include/linux/mm.h:454:63: warning: "NR_PAGEFLAGS" is not defined
include/linux/mm.h:502:62: warning: "NR_PAGEFLAGS" is not defined
In file included from include/linux/scatterlist.h:6,
                 from include/linux/dma-mapping.h:7,
                 from include/linux/dmaengine.h:26,
                 from include/linux/skbuff.h:30,
                 from include/linux/ip.h:108,
                 from /var/tmp/portage/net-firewall/ipset-2.4.7/work/ipset-2.4.7/kernel/ipt_set.c:14:
include/linux/mm.h:454:63: warning: "NR_PAGEFLAGS" is not defined
include/linux/mm.h:502:62: warning: "NR_PAGEFLAGS" is not defined
make[2]: *** [/var/tmp/portage/net-firewall/ipset-2.4.7/work/ipset-2.4.7/kernel/ip_set.o] Ошибка 1
make[2]: *** Ожидание завершения заданий...
In file included from /usr/src/linux-2.6.32-gentoo-r7/arch/x86/include/asm/unistd.h:5,
                 from include/linux/unistd.h:7,
                 from /usr/src/linux-2.6.32-gentoo-r7/arch/x86/include/asm/seccomp_64.h:4,
                 from /usr/src/linux-2.6.32-gentoo-r7/arch/x86/include/asm/seccomp.h:4,
                 from include/linux/seccomp.h:8,
                 from include/linux/sched.h:80,
                 from /usr/src/linux-2.6.32-gentoo-r7/arch/x86/include/asm/compat.h:8,
                 from include/linux/compat.h:14,
                 from include/net/compat.h:9,
                 from include/linux/netfilter/x_tables.h:529,
                 from /var/tmp/portage/net-firewall/ipset-2.4.7/work/ipset-2.4.7/kernel/ipt_set.c:24:
/usr/src/linux-2.6.32-gentoo-r7/arch/x86/include/asm/unistd_64.h:693:29: error: asm/asm-offsets.h: Нет такого файла или каталога
make[2]: *** [/var/tmp/portage/net-firewall/ipset-2.4.7/work/ipset-2.4.7/kernel/ipt_set.o] Ошибка 1
make[1]: *** [_module_/var/tmp/portage/net-firewall/ipset-2.4.7/work/ipset-2.4.7/kernel] Ошибка 2
make: *** [all] Ошибка 2
 * ERROR: net-firewall/ipset-2.4.7 failed:
 *   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=  IP_NF_SET_MAX=256 IP_NF_SET_HASHSIZE=1024 all
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 3589:  Called linux-mod_src_compile
 *   environment, line 2768:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" 						CROSS_COMPILE=${CHOST}- 						LDFLAGS=\"$(get_abi_LDFLAGS)\" 						${BUILD_FIXES} 						${BUILD_PARAMS} 						${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 * 
 * If you need support, post the output of 'emerge --info =net-firewall/ipset-2.4.7',
 * the complete build log and the output of 'emerge -pqv =net-firewall/ipset-2.4.7'.
 * The complete build log is located at '/var/tmp/portage/net-firewall/ipset-2.4.7/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-firewall/ipset-2.4.7/temp/environment'.
 * S: '/var/tmp/portage/net-firewall/ipset-2.4.7/work/ipset-2.4.7'

Как пофиксить? Думалось, что дело в версии ядра, попробовал тоже самое с 2,6,27 - ошибки остались.

cd /usr/src/linux && make

cd /usr/src/linux && make prepare?

Не грусти, товарищ! Всё хорошо, beautiful good!

Сработало, спасибо!

Сработало, спасибо!

Настройки просмотра комментариев

Выберите нужный метод показа комментариев и нажмите "Сохранить установки".