当前位置: 技术问答>linux和unix
安装 modutils-2.4.27 时的一个问题
来源: 互联网 发布时间:2016-05-06
本文导语: 这个总装不上,不知道是什么原因,我的是rhel5 64位 [root@localhost modutils-2.4.27]# ./configure checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknow...
这个总装不上,不知道是什么原因,我的是rhel5 64位
[root@localhost modutils-2.4.27]# ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 ANSI C... none needed
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for wordexp... yes
checking for glob... yes
checking whether R_X86_64_NONE is declared... yes
checking for query_module in -lc... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Makefile.common
config.status: creating depmod/Makefile
config.status: creating genksyms/Makefile
config.status: creating insmod/Makefile
config.status: creating obj/Makefile
config.status: creating util/Makefile
config.status: creating man/Makefile
[root@localhost modutils-2.4.27]#
[root@localhost modutils-2.4.27]#
[root@localhost modutils-2.4.27]#
[root@localhost modutils-2.4.27]#
[root@localhost modutils-2.4.27]#
[root@localhost modutils-2.4.27]#
[root@localhost modutils-2.4.27]#
[root@localhost modutils-2.4.27]#
[root@localhost modutils-2.4.27]# make
make[1]: Entering directory `/home/shiluqi/Desktop/modutils-2.4.27/util'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/shiluqi/Desktop/modutils-2.4.27/util'
make[1]: Entering directory `/home/shiluqi/Desktop/modutils-2.4.27/obj'
gcc -O2 -Wall -I./../include -D_GNU_SOURCE -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DCONFIG_ROOT_CHECK_OFF=0 -DCOMMON_3264 -DELF_MACHINE_H='"elf_i386.h"' -DARCH_i386 -DONLY_32 -c -o obj_kallsyms.o obj_kallsyms.c
In file included from obj_kallsyms.c:26:
./../include/util.h:42: 警告:内建函数 ‘log’ 未被声明为函数
obj_kallsyms.c: 在函数 ‘obj32_kallsyms’ 中:
obj_kallsyms.c:204: 错误:赋值运算中的左值无效
obj_kallsyms.c:279: 错误:赋值运算中的左值无效
make[1]: *** [obj_kallsyms.o] 错误 1
make[1]: Leaving directory `/home/shiluqi/Desktop/modutils-2.4.27/obj'
make: *** [all] 错误 2
[root@localhost modutils-2.4.27]#
[root@localhost modutils-2.4.27]# ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 ANSI C... none needed
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for wordexp... yes
checking for glob... yes
checking whether R_X86_64_NONE is declared... yes
checking for query_module in -lc... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Makefile.common
config.status: creating depmod/Makefile
config.status: creating genksyms/Makefile
config.status: creating insmod/Makefile
config.status: creating obj/Makefile
config.status: creating util/Makefile
config.status: creating man/Makefile
[root@localhost modutils-2.4.27]#
[root@localhost modutils-2.4.27]#
[root@localhost modutils-2.4.27]#
[root@localhost modutils-2.4.27]#
[root@localhost modutils-2.4.27]#
[root@localhost modutils-2.4.27]#
[root@localhost modutils-2.4.27]#
[root@localhost modutils-2.4.27]#
[root@localhost modutils-2.4.27]# make
make[1]: Entering directory `/home/shiluqi/Desktop/modutils-2.4.27/util'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/shiluqi/Desktop/modutils-2.4.27/util'
make[1]: Entering directory `/home/shiluqi/Desktop/modutils-2.4.27/obj'
gcc -O2 -Wall -I./../include -D_GNU_SOURCE -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DCONFIG_ROOT_CHECK_OFF=0 -DCOMMON_3264 -DELF_MACHINE_H='"elf_i386.h"' -DARCH_i386 -DONLY_32 -c -o obj_kallsyms.o obj_kallsyms.c
In file included from obj_kallsyms.c:26:
./../include/util.h:42: 警告:内建函数 ‘log’ 未被声明为函数
obj_kallsyms.c: 在函数 ‘obj32_kallsyms’ 中:
obj_kallsyms.c:204: 错误:赋值运算中的左值无效
obj_kallsyms.c:279: 错误:赋值运算中的左值无效
make[1]: *** [obj_kallsyms.o] 错误 1
make[1]: Leaving directory `/home/shiluqi/Desktop/modutils-2.4.27/obj'
make: *** [all] 错误 2
[root@localhost modutils-2.4.27]#
|
rhel5 64位用的是 2.6 系列的内核,lz 的 modutils 是 2.4 系列的。
得找 2.6 版本的 modutils 来编绎才行。
得找 2.6 版本的 modutils 来编绎才行。