编译redis2.6.7报zmalloc.c:223: undefined reference to__sync_add_and_fetch_4'解决方法
2012-12-11 09:55
567 查看
部分转载于http://blog.csdn.net/hmc20071120015/article/details/8142454,以变日后查阅。
zmalloc.o: In function `zmalloc_used_memory':
/root/redis-2.6.7/src/zmalloc.c:223: undefined reference to `__sync_add_and_fetch_4'
collect2: ld returned 1 exit status
make[1]: *** [redis-server] Error 1
make[1]: Leaving directory `/root/redis-2.6.7/src'
make: *** [all] Error 2
编辑了下src/.make_settings里的OPT,改为OPT=-O2 -march=i686。
make test
You need 'tclsh8.5' in order to run the Redis test
make: *** [test] Error 1
安装最新的tcl8.5.12解决。
安装过程:
./configure --prefix=/root/tcl --enable-shared
make
sed -e "s@^\(TCL_SRC_DIR='\).*@\1/usr/include'@" \ -e "/TCL_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \ -i tclConfig.sh
make install
cp /root/tcl/lib/libtcl8.5.so /usr/lib/
cp /root/tcl/bin/tclsh8.5 /usr/bin/
chmod -v 755 /usr/lib/libtcl8.5.so
ldconfig
ldconfig -p | grep tcl
libtcl8.5.so (libc6) => /usr/lib/libtcl8.5.so
libtcl8.4.so (libc6) => /usr/lib/libtcl8.4.so
zmalloc.o: In function `zmalloc_used_memory':
/root/redis-2.6.7/src/zmalloc.c:223: undefined reference to `__sync_add_and_fetch_4'
collect2: ld returned 1 exit status
make[1]: *** [redis-server] Error 1
make[1]: Leaving directory `/root/redis-2.6.7/src'
make: *** [all] Error 2
编辑了下src/.make_settings里的OPT,改为OPT=-O2 -march=i686。
make test
You need 'tclsh8.5' in order to run the Redis test
make: *** [test] Error 1
安装最新的tcl8.5.12解决。
安装过程:
./configure --prefix=/root/tcl --enable-shared
make
sed -e "s@^\(TCL_SRC_DIR='\).*@\1/usr/include'@" \ -e "/TCL_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \ -i tclConfig.sh
make install
cp /root/tcl/lib/libtcl8.5.so /usr/lib/
cp /root/tcl/bin/tclsh8.5 /usr/bin/
chmod -v 755 /usr/lib/libtcl8.5.so
ldconfig
ldconfig -p | grep tcl
libtcl8.5.so (libc6) => /usr/lib/libtcl8.5.so
libtcl8.4.so (libc6) => /usr/lib/libtcl8.4.so
相关文章推荐
- 编译redis2.6.2报zmalloc.c:223: undefined reference to__sync_add_and_fetch_4'解决方法
- 32位Linux编译redis失败解决方法:zmalloc.c:223: undefined reference to `__sync_add_and_fetch_4`
- 编译redis2.6.2报zmalloc.c:223: undefined reference to__sync_add_and_fetch_4′解决方法
- 移植Qt-4.8.5出现undefined reference to '__sync_sub_and_fetch_4'解决方法
- 安装Redis报错:undefined reference to `__sync_add_and_fetch_4'
- 移植Qt-4.8.5出现undefined reference to '__sync_sub_and_fetch_4'解决方法--转载
- mingw编译x264 出错undefined reference to `__sync_add_and_fetch_4
- Linux-Linux下安装redis报错"undefined reference to__sync_add_and_fetch_4"解决办法
- Bug 28671 - [4.2 regression] undefined reference to `__sync_fetch_and_add_4'
- FFmpeg编译出错undefined reference to `img_convert’的解决方法
- 编译3.10内核 出现错误 “undefined reference to...." 解决方法
- FFmpeg编译出错undefined reference to `img_convert’的解决方法
- 编译3.10内核 出现错误 “undefined reference to...." 解决方法
- gcc编译出现undefined reference to 'pthread_create'的解决方法
- FFmpeg编译出错undefined reference to `img_convert’的解决方法
- ffmpeg libx264编译出现error: undefined reference to 'x264_picture_init'等问题的解决方法
- 编译静态expect现undefined reference to `openpty' 错误解决方法
- GCC编译uboot出现(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'错误的解决的方法
- Linux 编译报错 -- undefined reference to 问题解决方法 (具体'pthread_create'和opencv看文章最后两条)
- 编译WU FTPD出现"undefined reference to crypt"错误解决方法