|
发表于 2010-3-12 20:53:08
|
显示全部楼层
sudo FEATURES="-sandbox" emerge west-chamber -av
结果也不行:
[32;01m* [0m CPV: net-firewall/west-chamber-0.0.1
[32;01m* [0m REPO: gentoo-china
[32;01m* [0m USE: elibc_glibc kernel_linux userland_GNU x86 xtables_addons_cui xtables_addons_gfw xtables_addons_ipset xtables_addons_zhang
[32;01m* [0m Determining the location of the kernel source code
[32;01m* [0m Found kernel source directory:
[32;01m* [0m /usr/src/linux
[32;01m* [0m Found kernel object directory:
[32;01m* [0m /lib/modules/2.6.33-gentoo/build
[32;01m* [0m Found sources for kernel version:
[32;01m* [0m 2.6.33-gentoo
[32;01m* [0m Checking for suitable kernel configuration options...
[A [149C [34;01m[ [32;01mok [34;01m ] [0m
>>> Unpacking source...
>>> Unpacking west-chamber-0.0.1.tar.gz to /var/tmp/portage/net-firewall/west-chamber-0.0.1/work
>>> Source unpacked in /var/tmp/portage/net-firewall/west-chamber-0.0.1/work
>>> Preparing source in /var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1 ...
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
configure.ac:8: installing `./compile'
configure.ac:10: installing `./config.guess'
configure.ac:10: installing `./config.sub'
configure.ac:5: installing `./install-sh'
configure.ac:6: installing `./missing'
extensions/ipset/Makefile.am: installing `./depcomp'
* econf: updating west-chamber-0.0.1/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating west-chamber-0.0.1/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --prefix=/ --libexecdir=/lib/ --with-kbuild=/usr/src/linux
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of i686-pc-linux-gnu-gcc... gcc3
checking whether i686-pc-linux-gnu-gcc and cc understand -c and -o together... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by i686-pc-linux-gnu-gcc... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r
checking for i686-pc-linux-gnu-objdump... i686-pc-linux-gnu-objdump
checking how to recognize dependent libraries... pass_all
checking for i686-pc-linux-gnu-ar... i686-pc-linux-gnu-ar
checking for i686-pc-linux-gnu-strip... i686-pc-linux-gnu-strip
checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib
checking command to parse /usr/bin/nm -B output from i686-pc-linux-gnu-gcc object... ok
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if i686-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for i686-pc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if i686-pc-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if i686-pc-linux-gnu-gcc static flag -static works... yes
checking if i686-pc-linux-gnu-gcc supports -c -o file.o... yes
checking if i686-pc-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the i686-pc-linux-gnu-gcc linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for i686-pc-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libxtables... yes
checking linux/netfilter/x_tables.h usability... yes
checking linux/netfilter/x_tables.h presence... yes
checking for linux/netfilter/x_tables.h... yes
Found kernel version 2.6.33.0 in /usr/src/linux
WARNING: You are trying a newer kernel. Results may vary. :-)
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Makefile.iptrules
config.status: creating Makefile.mans
config.status: creating extensions/Makefile
config.status: creating extensions/ipset/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1 ...
make -j2 'CFLAGS=-O2 -march=pentium-m -pipe -fomit-frame-pointer' CC=i686-pc-linux-gnu-gcc
make all-recursive
make[1]: Entering directory `/var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1'
Making all in extensions
make[2]: Entering directory `/var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1/extensions'
make -f ../Makefile.iptrules all;
make[3]: Entering directory `/var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1/extensions'
CC libxt_ZHANG.oo
CC libxt_CUI.oo
CC libxt_gfw.oo
CCLD libxt_CUI.so
CCLD libxt_gfw.so
CCLD libxt_ZHANG.so
make[4]: Entering directory `/var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1/extensions/ipset'
depbase=`echo ipset.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -DXTABLES_LIBDIR=\"/lib/xtables\" -DIPSET_LIB_DIR=\"/lib/xtables\" -O2 -march=pentium-m -pipe -fomit-frame-pointer -MT ipset.o -MD -MP -MF $depbase.Tpo -c -o ipset.o ipset.c &&\
mv -f $depbase.Tpo $depbase.Po
make -f ../../Makefile.iptrules all;
make[5]: Entering directory `/var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1/extensions/ipset'
CC libipset_iphash.oo
CC libipset_ipmap.oo
/bin/sh ../../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -DXTABLES_LIBDIR=\"/lib/xtables\" -DIPSET_LIB_DIR=\"/lib/xtables\" -O2 -march=pentium-m -pipe -fomit-frame-pointer -rdynamic -Wl,-O1 -o ipset ipset.o -ldl
CC libipset_ipporthash.oo
CC libipset_ipportiphash.oo
CC libipset_ipportnethash.oo
libtool: link: i686-pc-linux-gnu-gcc -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -DXTABLES_LIBDIR=\"/lib/xtables\" -DIPSET_LIB_DIR=\"/lib/xtables\" -O2 -march=pentium-m -pipe -fomit-frame-pointer -rdynamic -Wl,-O1 -o ipset ipset.o -ldl
CC libipset_iptree.oo
CC libipset_iptreemap.oo
CC libipset_macipmap.oo
CC libipset_nethash.oo
CC libipset_portmap.oo
CC libipset_setlist.oo
CCLD libipset_iphash.so
CCLD libipset_ipmap.so
CCLD libipset_ipporthash.so
CCLD libipset_ipportiphash.so
CCLD libipset_ipportnethash.so
CCLD libipset_iptree.so
CCLD libipset_iptreemap.so
CCLD libipset_macipmap.so
CCLD libipset_nethash.so
CCLD libipset_portmap.so
CCLD libipset_setlist.so
make[5]: Leaving directory `/var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1/extensions/ipset'
make[4]: Leaving directory `/var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1/extensions/ipset'
make[3]: Leaving directory `/var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1/extensions'
make[2]: Leaving directory `/var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1/extensions'
make[2]: Entering directory `/var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1'
make -f Makefile.mans all;
make[3]: Entering directory `/var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1'
for ext in ./extensions/libxt_gfw.man; do name="${ext%.man}"; name="${name##*/libxt_}"; if [ -f "$ext" ]; then echo ".SS $name"; cat "$ext"; continue; fi; done >matches.man;
for ext in ./extensions/libxt_CUI.man ./extensions/libxt_ZHANG.man; do name="${ext%.man}"; name="${name##*/libxt_}"; if [ -f "$ext" ]; then echo ".SS $name"; cat "$ext"; continue; fi; done >targets.man;
sed -e '/@MATCHES@/ r matches.man' -e '/@TARGET@/ r targets.man' xtables-addons.8.in >xtables-addons.8;
make[3]: Leaving directory `/var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1'
make[2]: Leaving directory `/var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1'
make[1]: Leaving directory `/var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1'
[32;01m* [0m Preparing compat_xtables module
make -j2 HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= modules
if [ -n "/usr/src/linux" ]; then make -C /usr/src/linux M=/var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1/extensions modules; fi;
make[1]: Entering directory `/usr/src/linux-2.6.33-gentoo'
CC [M] /var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1/extensions/compat_xtables.o
CC [M] /var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1/extensions/xt_CUI.o
In file included from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from include/linux/textsearch.h:7,
from include/linux/skbuff.h:27,
from include/linux/ip.h:108,
from /var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1/extensions/compat_xtables.c:9:
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 include/linux/textsearch.h:7,
from include/linux/skbuff.h:27,
from include/linux/ip.h:108,
from /var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1/extensions/compat_xtables.c:9:
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/west-chamber-0.0.1/work/west-chamber-0.0.1/extensions/xt_CUI.c:15:
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/west-chamber-0.0.1/work/west-chamber-0.0.1/extensions/xt_CUI.c:15:
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/west-chamber-0.0.1/work/west-chamber-0.0.1/extensions/compat_xtables.c:9:
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 /var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1/extensions/xt_CUI.c:16:
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/west-chamber-0.0.1/work/west-chamber-0.0.1/extensions/compat_xtables.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [/var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1/extensions/xt_CUI.o] Error 1
make[1]: *** [_module_/var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1/extensions] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.33-gentoo'
make: *** [modules] Error 2
[31;01m* [0m ERROR: net-firewall/west-chamber-0.0.1 failed:
[31;01m* [0m Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= modules
[31;01m* [0m
[31;01m* [0m Call stack:
[31;01m* [0m ebuild.sh, line 54: Called src_compile
[31;01m* [0m environment, line 3530: Called linux-mod_src_compile
[31;01m* [0m environment, line 2740: Called die
[31;01m* [0m The specific snippet of code:
[31;01m* [0m 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}";
[31;01m* [0m
[31;01m* [0m If you need support, post the output of 'emerge --info =net-firewall/west-chamber-0.0.1',
[31;01m* [0m the complete build log and the output of 'emerge -pqv =net-firewall/west-chamber-0.0.1'.
[31;01m* [0m This ebuild is from an overlay named 'gentoo-china': '/var/lib/layman/gentoo-china/'
[31;01m* [0m The complete build log is located at '/var/tmp/portage/net-firewall/west-chamber-0.0.1/temp/build.log'.
[31;01m* [0m The ebuild environment file is located at '/var/tmp/portage/net-firewall/west-chamber-0.0.1/temp/environment'.
[31;01m* [0m S: '/var/tmp/portage/net-firewall/west-chamber-0.0.1/work/west-chamber-0.0.1' |
|