Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Centos Install fastsocket Error #15

Open
ghost opened this issue Nov 17, 2014 · 4 comments
Open

Centos Install fastsocket Error #15

ghost opened this issue Nov 17, 2014 · 4 comments

Comments

@ghost
Copy link

ghost commented Nov 17, 2014

我在centos 6.5 x_86下面编译安装fastsocket时报了一下错误 请问是什么问题??
[root@bogon kernel]# make defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
*** Default configuration is based on 'i386_defconfig'

configuration written to .config

[root@bogon kernel]# make
scripts/kconfig/conf -s arch/x86/Kconfig
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
CC kernel/bounds.s
GEN include/linux/bounds.h
CC arch/x86/kernel/asm-offsets.s
GEN include/asm/asm-offsets.h
CALL scripts/checksyscalls.sh
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
scripts/mod/file2alias.c:797: 警告:‘do_x86cpu_entry’定义后未使用
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/mod/mod-extract
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/kallsyms
HOSTCC scripts/pnmtologo
HOSTCC scripts/conmakehash
CC init/main.o
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
CC init/do_mounts.o
CC init/do_mounts_rd.o
cc1: warnings being treated as errors
In file included from include/linux/kmemtrace.h:12,
from include/linux/slub_def.h:13,
from include/linux/slab.h:162,
from include/linux/percpu.h:5,
from include/linux/percpu_counter.h:13,
from include/linux/fs.h:433,
from init/do_mounts_rd.c:3:
include/trace/events/kmem.h:528: 错误:‘struct address_space’在形参表内部声明
include/trace/events/kmem.h:528: 错误:它的作用域仅限于此定义或声明,这可能并不是您想要的
include/trace/events/kmem.h:528: 错误:‘struct address_space’在形参表内部声明
include/trace/events/kmem.h:528: 错误:‘struct address_space’在形参表内部声明
make[1]: *** [init/do_mounts_rd.o] 错误 1
make: *** [init] 错误 2
[root@bogon kernel]# uname -a
Linux bogon 2.6.32-504.1.3.el6.i686 #1 SMP Tue Nov 11 16:30:09 UTC 2014 i686 i686 i386 GNU/Linux

@breezewoods
Copy link
Member

现有Fastsocket是base在64位的CentOS-6.5内核上,在32位系统上,我们并没有做过测试。

@gfreewind
Copy link
Contributor

你的gcc版本号是多少?

@ghost
Copy link
Author

ghost commented Nov 20, 2014

[root@localhost kernel]$ gcc -v
使用内建 specs。
目标:i686-redhat-linux
配置为:../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch=i686 --build=i686-redhat-linux
线程模型:posix
gcc 版本 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)

@gfreewind
Copy link
Contributor

你可以自己生成一个32位的config,目前fastsocket提供的默认config是基于64位的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants