VPS侦探论坛

 找回密码
 注册
查看: 143|回复: 1

请教编译memcached扩展过程报错,但是正常编译通有影响吗?

[复制链接]
发表于 2020-8-12 09:26:32 | 显示全部楼层 |阅读模式



非lnmp.org安装,来这里请教一下

安装了gcc7和g++7,编译memcached扩展报warning和fatal,另一台机器试了下gcc g++ 4.8编译通过无警告

fatal都是在libtest,请问这个可以不理它吗?还是说会产生其他影响?

  1. libhashkit/jenkins.cc:230:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  2.      case 12: c+=((uint32_t)k[11])<<24;
  3.               ~^~~~~~~~~~~~~~~~~~~~~~~
  4. ......
  5. libmemcached/io.cc:278:26: warning: this statement may fall through [-Wimplicit-fallthrough=]
  6.        memcached_set_error(*instance, MEMCACHED_MEMORY_ALLOCATION_FAILURE, MEMCACHED_AT, memcached_literal_param("RLIMIT_NOFILE exceeded, or if OSX the timeout value was invalid"));
  7. ......
复制代码

  1. ./libtest/thread.hpp: In destructor 'libtest::thread::Mutex::~Mutex()':
  2. ./libtest/thread.hpp:59:93: warning: throw will always call terminate() [-Wterminate]
  3.        throw libtest::fatal(LIBYATL_DEFAULT_PARAM, "pthread_cond_destroy: %s", strerror(_err));
  4.                                                                                              ^
  5. ./libtest/thread.hpp:59:93: note: in C++11 destructors default to noexcept
  6. ./libtest/thread.hpp: In destructor 'libtest::thread::ScopedLock::~ScopedLock()':
  7. ./libtest/thread.hpp:92:92: warning: throw will always call terminate() [-Wterminate]
  8.        throw libtest::fatal(LIBYATL_DEFAULT_PARAM, "pthread_mutex_unlock: %s", strerror(err));
  9.                                                                                             ^
  10. ./libtest/thread.hpp:92:92: note: in C++11 destructors default to noexcept
  11. ./libtest/thread.hpp: In destructor 'libtest::thread::Condition::~Condition()':
  12. ./libtest/thread.hpp:132:92: warning: throw will always call terminate() [-Wterminate]
  13.        throw libtest::fatal(LIBYATL_DEFAULT_PARAM, "pthread_cond_destroy: %s", strerror(err));
  14. ......
复制代码


这是lnmp包的memcached2.php测试结果:
  1. Use PHP Memcached extension.<br />Memcached Server version:  1.6.6<br />Get key1 value: This is first value<br />Get key1 value: This is replace value<br />Get key2 value: Array
  2. (
  3.     [0] => aaa
  4.     [1] => bbb
  5.     [2] => ccc
  6.     [3] => ddd
  7. )
  8. <br />Get key1 value: <br />Get key2 value: <br />Memcached Test tools for <a href="https://lnmp.org" target="_blank">LNMP一键安装包</a> <a href="https://bbs.vpser.net/forum-25-1.html" target="_blank">LNMP支持论坛</a>
复制代码

美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2020-8-12 10:49:05 | 显示全部楼层


只要是编译成功了就是成功了,过程中的警告之类的信息无影响
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2020-9-27 15:13 , Processed in 0.056693 second(s), 26 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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