LinuxSir.cn,穿越时空的Linuxsir!

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

gentoo 下valgrind的错误.....

[复制链接]
发表于 2012-1-31 16:41:55 | 显示全部楼层 |阅读模式
==25131== Memcheck, a memory error detector
==25131== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==25131== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==25131== Command: ./DataServer V2_WHITEBOARD
==25131==

valgrind:  Fatal error at startup: a function redirection
valgrind:  which is mandatory for this platform-tool combination
valgrind:  cannot be set up.  Details of the redirection are:
valgrind:  
valgrind:  A must-be-redirected function
valgrind:  whose name matches the pattern:      strlen
valgrind:  in an object with soname matching:   ld-linux.so.2
valgrind:  was not found whilst processing
valgrind:  symbols from the object with soname: ld-linux.so.2
valgrind:  
valgrind:  Possible fixes: (1, short term): install glibc's debuginfo
valgrind:  package on this machine.  (2, longer term): ask the packagers
valgrind:  for your Linux distribution to please in future ship a non-
valgrind:  stripped ld.so (or whatever the dynamic linker .so is called)
valgrind:  that exports the above-named function using the standard
valgrind:  calling conventions for this platform.  The package you need
valgrind:  to install for fix (1) is called
valgrind:  
valgrind:    On Debian, Ubuntu:                 libc6-dbg
valgrind:    On SuSE, openSuSE, Fedora, RHEL:   glibc-debuginfo
valgrind:  
valgrind:  Cannot continue -- exiting now.  Sorry.


重启编译过revdep-rebuild 也不行, 是哪个包出了问题...多谢各位....
发表于 2012-1-31 18:41:55 | 显示全部楼层
为什么emerge valgrind时的ewarn信息被您无视了...

valgrind需要在编译glibc时在make.conf的FEATURES变量中加入splitdebug才能正常工作。

另外,如果您的CFLAGS中有-O2的话,valgrind-3.7*需要额外对glibc进行一个修改,请参考:
https://bugs.gentoo.org/show_bug.cgi?id=390323#c14
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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