memcached-1.4.5安装时候出现错误error: dereferencing type-punned pointer will break strict-aliasing

来源:互联网 发布:淘宝美国代购直邮 编辑:程序博客网 时间:2024/05/17 00:50


安装memcached1.4.5时出现错误error: dereferencing type-punned pointer will break strict-aliasing

 

安装memcached-1.4.5时候出现错误error: dereferencing type-punned pointer will break strict-aliasing rules

在issue中发现需要安装补丁包,下载该补丁

cd /opt/

wget http://johntech-resource.googlecode.com/files/fix-strict-aliasing.patch

打补丁,修复问题:

patch  ./memcached-1.4.5/memcached.h fix-strict-aliasing.patch

补丁打好后重新安装问题解决



http://code.google.com/p/memcached/issues/detail?id=60&can=1&q=strict-aliasing