|
发表于 2010-3-15 18:45:48
|
显示全部楼层
Post by viogus;2075524
应该是你的linux-header版本太高的原因,试试降级到.32版本甚至更早,然后重新emerge试试
降到32也不行
daniel@T41 ~ $ sudo emerge ipset
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) net-firewall/ipset-4.2
* ipset-4.2.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* CPV: net-firewall/ipset-4.2
* REPO: gentoo
* USE: elibc_glibc kernel_linux modules userland_GNU x86
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/2.6.33-gentoo/build
* Found sources for kernel version:
* 2.6.33-gentoo
* Modular kernel detected, will build kernel modules
* Checking for suitable kernel configuration options... [ ok ]
>>> Unpacking source...
>>> Unpacking ipset-4.2.tar.bz2 to /var/tmp/portage/net-firewall/ipset-4.2/work
>>> Source unpacked in /var/tmp/portage/net-firewall/ipset-4.2/work
>>> Preparing source in /var/tmp/portage/net-firewall/ipset-4.2/work/ipset-4.2 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-firewall/ipset-4.2/work/ipset-4.2 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-firewall/ipset-4.2/work/ipset-4.2 ...
* Building userspace
make -j2 CC=i686-pc-linux-gnu-gcc 'COPT_FLAGS=-O2 -march=pentium-m -pipe -fomit-frame-pointer' PREFIX= LIBDIR=/lib BINDIR=/sbin MANDIR=/usr/share/man INCDIR=/usr/include NO_EXTRA_WARN_FLAGS=yes binaries
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -pipe -fomit-frame-pointer -Wall -Ikernel/include -I. -DIPSET_VERSION=\"4.2\" -DIPSET_LIB_DIR=\"/lib/ipset\" -c -o ipset.o ipset.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -pipe -fomit-frame-pointer -Wall -Ikernel/include -I. -fPIC -o ipset_ipmap.o -c ipset_ipmap.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -pipe -fomit-frame-pointer -Wall -Ikernel/include -I. -fPIC -o ipset_portmap.o -c ipset_portmap.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -pipe -fomit-frame-pointer -Wall -Ikernel/include -I. -fPIC -o ipset_macipmap.o -c ipset_macipmap.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -pipe -fomit-frame-pointer -Wall -Ikernel/include -I. -fPIC -o ipset_iptree.o -c ipset_iptree.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -pipe -fomit-frame-pointer -Wall -Ikernel/include -I. -fPIC -o ipset_iptreemap.o -c ipset_iptreemap.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -pipe -fomit-frame-pointer -Wall -Ikernel/include -I. -fPIC -o ipset_iphash.o -c ipset_iphash.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -pipe -fomit-frame-pointer -Wall -Ikernel/include -I. -fPIC -o ipset_nethash.o -c ipset_nethash.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -pipe -fomit-frame-pointer -Wall -Ikernel/include -I. -fPIC -o ipset_ipporthash.o -c ipset_ipporthash.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -pipe -fomit-frame-pointer -Wall -Ikernel/include -I. -fPIC -o ipset_ipportiphash.o -c ipset_ipportiphash.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -pipe -fomit-frame-pointer -Wall -Ikernel/include -I. -fPIC -o ipset_ipportnethash.o -c ipset_ipportnethash.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -pipe -fomit-frame-pointer -Wall -Ikernel/include -I. -fPIC -o ipset_setlist.o -c ipset_setlist.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -pipe -fomit-frame-pointer -Wall -Ikernel/include -I. -rdynamic -o ipset ipset.o -ldl
i686-pc-linux-gnu-gcc -shared -o libipset_ipmap.so ipset_ipmap.o
i686-pc-linux-gnu-gcc -shared -o libipset_portmap.so ipset_portmap.o
i686-pc-linux-gnu-gcc -shared -o libipset_macipmap.so ipset_macipmap.o
i686-pc-linux-gnu-gcc -shared -o libipset_iptree.so ipset_iptree.o
i686-pc-linux-gnu-gcc -shared -o libipset_iptreemap.so ipset_iptreemap.o
i686-pc-linux-gnu-gcc -shared -o libipset_iphash.so ipset_iphash.o
i686-pc-linux-gnu-gcc -shared -o libipset_nethash.so ipset_nethash.o
i686-pc-linux-gnu-gcc -shared -o libipset_ipporthash.so ipset_ipporthash.o
i686-pc-linux-gnu-gcc -shared -o libipset_ipportiphash.so ipset_ipportiphash.o
i686-pc-linux-gnu-gcc -shared -o libipset_ipportnethash.so ipset_ipportnethash.o
i686-pc-linux-gnu-gcc -shared -o libipset_setlist.so ipset_setlist.o
rm ipset_iptreemap.o ipset_macipmap.o ipset_ipmap.o ipset_iphash.o ipset_portmap.o ipset_iptree.o ipset_setlist.o ipset_ipporthash.o ipset_ipportnethash.o ipset_nethash.o ipset_ipportiphash.o
* Building kernel modules
* Preparing ip_set module
make -j2 HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= IP_NF_SET_MAX=256 IP_NF_SET_HASHSIZE=1024 all
make -C /usr/src/linux M=`pwd` V=0 KBUILD_OUTPUT= modules
make[1]: Entering directory `/usr/src/linux-2.6.33-gentoo'
CC [M] /var/tmp/portage/net-firewall/ipset-4.2/work/ipset-4.2/kernel/ip_set.o
CC [M] /var/tmp/portage/net-firewall/ipset-4.2/work/ipset-4.2/kernel/ipt_set.o
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-4.2/work/ipset-4.2/kernel/ip_set.c:16:
include/linux/mmzone.h:18:30: error: generated/bounds.h: No such file or directory
include/linux/mmzone.h:258:5: warning: "MAX_NR_ZONES" is not defined
include/linux/mmzone.h:260:7: warning: "MAX_NR_ZONES" is not defined
include/linux/mmzone.h:262:7: 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-4.2/work/ipset-4.2/kernel/ip_set.c:16:
include/linux/mmzone.h:300: error: ‘MAX_NR_ZONES’ undeclared here (not in a function)
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-4.2/work/ipset-4.2/kernel/ipt_set.c:13:
include/linux/mmzone.h:18:30: error: generated/bounds.h: No such file or directory
include/linux/mmzone.h:258:5: warning: "MAX_NR_ZONES" is not defined
include/linux/mmzone.h:260:7: warning: "MAX_NR_ZONES" is not defined
include/linux/mmzone.h:262:7: 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-4.2/work/ipset-4.2/kernel/ipt_set.c:13:
include/linux/mmzone.h:300: error: ‘MAX_NR_ZONES’ undeclared here (not in a function)
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-4.2/work/ipset-4.2/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-4.2/work/ipset-4.2/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-4.2/work/ipset-4.2/kernel/ip_set.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [/var/tmp/portage/net-firewall/ipset-4.2/work/ipset-4.2/kernel/ipt_set.o] Error 1
make[1]: *** [_module_/var/tmp/portage/net-firewall/ipset-4.2/work/ipset-4.2/kernel] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.33-gentoo'
make: *** [all] Error 2
* ERROR: net-firewall/ipset-4.2 failed:
* Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-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 3517: Called linux-mod_src_compile
* environment, line 2704: 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-4.2',
* the complete build log and the output of 'emerge -pqv =net-firewall/ipset-4.2'.
* The complete build log is located at '/var/tmp/portage/net-firewall/ipset-4.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-firewall/ipset-4.2/temp/environment'.
* S: '/var/tmp/portage/net-firewall/ipset-4.2/work/ipset-4.2'
>>> Failed to emerge net-firewall/ipset-4.2, Log file:
>>> '/var/tmp/portage/net-firewall/ipset-4.2/temp/build.log'
* Messages for package net-firewall/ipset-4.2:
* ERROR: net-firewall/ipset-4.2 failed:
* Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-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 3517: Called linux-mod_src_compile
* environment, line 2704: 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-4.2',
* the complete build log and the output of 'emerge -pqv =net-firewall/ipset-4.2'.
* The complete build log is located at '/var/tmp/portage/net-firewall/ipset-4.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-firewall/ipset-4.2/temp/environment'.
* S: '/var/tmp/portage/net-firewall/ipset-4.2/work/ipset-4.2
emerge --info =net-firewall/ipset-4.2
Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.4.3, glibc-2.11-r1, 2.6.32-gentoo-r6 i686)
=================================================================
System Settings
=================================================================
System uname: Linux-2.6.32-gentoo-r6-i686-Intel-R-_Pentium-R-_M_processor_1700MHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 14 Mar 2010 23:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash: 4.1_p2
dev-java/java-config: 2.1.10
dev-lang/python: 2.6.4-r1, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/ccache: 2.4-r8
dev-util/cmake: 2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc: 0.6.0-r1
sys-apps/sandbox: 2.2
sys-devel/autoconf: 2.13, 2.65
sys-devel/automake: 1.10.3, 1.11.1
sys-devel/binutils: 2.20.1
sys-devel/gcc: 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6b
virtual/os-headers: 2.6.33
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.163.com/gentoo "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en zh_CN"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gentoo-china /usr/local/portage"
SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"
USE="X acl alsa apache2 autoipd avahi berkdb bzip2 cairo cdr cjk cleartype cli consolekit corefonts cracklib crypt ctype cups cxx dbus deskbar dri dvdr dynamic exif extras faac ffmpeg filter firefox flac fortran ftp garmin gd gdbm gdm gif gimp glib gnome gnome-keyring gnutls google gphoto2 gpm gsm gtk hal http httpd icon iconv ipv6 jadetex java jpeg jpeg2k math mdnsresponder-compat midi mikmod mjpeg modules mp3 mpeg msn mudflap mysql mythtv nautilus ncurses net nls nptl nptlonly nsplugin ogg opengl openmp openssl pam pathbar pcre pdf perl pic png policykit pop portaudio pppd python qt3support raw readline reflection rtf secure-delete session smtp sound spl sqlite ssl subversion suid svg svgz sysfs tcpd text threads tiff toolbar truetype type1 unicode vorbis wav wifi wma x264 x86 xcb xft xorg xterm xulrunner xvid zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authz_host dir log_config mime rewrite mime_magic dav" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en zh_CN" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa fbdev" XTABLES_ADDONS="cui gfw zhang ipset"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS |
|