编译 psmisc 时遇到这个错误,搜索了一下 rpl_malloc,
grep -irwn rpl_malloc
config.status:877:D["malloc"]=" rpl_malloc"
Binary file src/killall.o matches
autom4te.cache/traces.1:979:m4trace:configure.ac:205: -1- AH_OUTPUT([malloc], [/* Define to rpl_malloc if the replacement function should be used. */
autom4te.cache/output.0:9496:$as_echo "@%:@define malloc rpl_malloc" >>confdefs.h
autom4te.cache/output.1:9496:$as_echo "@%:@define malloc rpl_malloc" >>confdefs.h
config.log:3863:#define malloc rpl_malloc
config.h.in:329:/* Define to rpl_malloc if the replacement function should be used. */
configure:9496:$as_echo "#define malloc rpl_malloc" >>confdefs.h
config.h:330:/* Define to rpl_malloc if the replacement function should be used. */
config.h:331:#define malloc rpl_malloc
发现在config.h和config.h.in文件中有涉及,把这两个文件中有 malloc 和 rpl_malloc 的地方都注释掉,不要重新 configure, 直接 make 即可。