LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 985|回复: 0

西厢计划 ubuntu10.04 编译出错。急急急急急急急急急急急

[复制链接]
发表于 2011-1-4 10:43:05 | 显示全部楼层 |阅读模式
autogen和./configure都没问题
在make时出错
koskers@koskers-laptop:~/Desktop/west-chamber-20100405$ sudo autogen.sh
sudo: autogen.sh: command not found
koskers@koskers-laptop:~/Desktop/west-chamber-20100405$ sudo ./autogen.sh
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./config.guess'
libtoolize: copying file `./config.sub'
libtoolize: copying file `./install-sh'
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'
koskers@koskers-laptop:~/Desktop/west-chamber-20100405$ sudo ./configure
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 gcc... 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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-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 gcc... /usr/bin/ld
checking if the linker (/usr/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/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... 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 gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) 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 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.36.2 in /lib/modules/2.6.36.2koskers2536/build
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: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
koskers@koskers-laptop:~/Desktop/west-chamber-20100405$ sudo make
make  all-recursive
make[1]: Entering directory `/home/koskers/Desktop/west-chamber-20100405'
Making all in extensions
make[2]: Entering directory `/home/koskers/Desktop/west-chamber-20100405/extensions'
if [ -n "/lib/modules/2.6.36.2koskers2536/build" ]; then make -C /lib/modules/2.6.36.2koskers2536/build M=/home/koskers/Desktop/west-chamber-20100405/extensions modules; fi;
make[3]: Entering directory `/lib/modules/2.6.36.2koskers2536/linux-2.6.36.2'
  CC [M]  /home/koskers/Desktop/west-chamber-20100405/extensions/compat_xtables.o
In file included from /home/koskers/Desktop/west-chamber-20100405/extensions/compat_xtables.c:21:
/home/koskers/Desktop/west-chamber-20100405/extensions/compat_xtnu.h:87: warning: ‘struct xt_match_param’ declared inside parameter list
/home/koskers/Desktop/west-chamber-20100405/extensions/compat_xtnu.h:87: warning: its scope is only this definition or declaration, which is probably not what you want
/home/koskers/Desktop/west-chamber-20100405/extensions/compat_xtnu.h:103: warning: ‘struct xt_target_param’ declared inside parameter list
/home/koskers/Desktop/west-chamber-20100405/extensions/compat_xtables.c:193: warning: ‘struct xt_target_param’ declared inside parameter list
/home/koskers/Desktop/west-chamber-20100405/extensions/compat_xtables.c: In function ‘xtnu_target_run’:
/home/koskers/Desktop/west-chamber-20100405/extensions/compat_xtables.c:207: error: dereferencing pointer to incomplete type
/home/koskers/Desktop/west-chamber-20100405/extensions/compat_xtables.c:216: warning: passing argument 2 of ‘nt->target’ from incompatible pointer type
/home/koskers/Desktop/west-chamber-20100405/extensions/compat_xtables.c:216: note: expected ‘const struct xt_target_param *’ but argument is of type ‘const struct xt_target_param *’
/home/koskers/Desktop/west-chamber-20100405/extensions/compat_xtables.c: In function ‘xtnu_register_target’:
/home/koskers/Desktop/west-chamber-20100405/extensions/compat_xtables.c:294: warning: assignment from incompatible pointer type
/home/koskers/Desktop/west-chamber-20100405/extensions/compat_xtables.c:299: warning: assignment from incompatible pointer type
make[4]: *** [/home/koskers/Desktop/west-chamber-20100405/extensions/compat_xtables.o] Error 1
make[3]: *** [_module_/home/koskers/Desktop/west-chamber-20100405/extensions] Error 2
make[3]: Leaving directory `/lib/modules/2.6.36.2koskers2536/linux-2.6.36.2'
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/home/koskers/Desktop/west-chamber-20100405/extensions'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/koskers/Desktop/west-chamber-20100405'
make: *** [all] Error 2



内核是自己编的,会不会版本不兼容。。。。高手解答,,,谢谢大家
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表