VPS侦探论坛

 找回密码
 注册
查看: 1154|回复: 7

Memcached 安装失败

[复制链接]
发表于 2023-7-20 17:07:31 | 显示全部楼层 |阅读模式

军哥,安装memcached失败,php7.4, Debian12,是什么原因呢?怎么解决



libhashkit/jenkins.cc: In function 'uint32_t hashkit_jenkins(const char*, size_t, void*)':
libhashkit/jenkins.cc:230:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  230 |     case 12: c+=((uint32_t)k[11])<<24;
      |              ~^~~~~~~~~~~~~~~~~~~~~~~
libhashkit/jenkins.cc:231:5: note: here
  231 |     case 11: c+=((uint32_t)k[10])<<16;
      |     ^~~~
libhashkit/jenkins.cc:231:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  231 |     case 11: c+=((uint32_t)k[10])<<16;
      |              ~^~~~~~~~~~~~~~~~~~~~~~~
libhashkit/jenkins.cc:232:5: note: here
  232 |     case 10: c+=((uint32_t)k[9])<<8;
      |     ^~~~
libhashkit/jenkins.cc:232:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  232 |     case 10: c+=((uint32_t)k[9])<<8;
      |              ~^~~~~~~~~~~~~~~~~~~~~
libhashkit/jenkins.cc:233:5: note: here
  233 |     case 9 : c+=k[8];
      |     ^~~~
libhashkit/jenkins.cc:233:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  233 |     case 9 : c+=k[8];
      |              ~^~~~~~
libhashkit/jenkins.cc:234:5: note: here
  234 |     case 8 : b+=((uint32_t)k[7])<<24;
      |     ^~~~
libhashkit/jenkins.cc:234:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  234 |     case 8 : b+=((uint32_t)k[7])<<24;
      |              ~^~~~~~~~~~~~~~~~~~~~~~
libhashkit/jenkins.cc:235:5: note: here
  235 |     case 7 : b+=((uint32_t)k[6])<<16;
      |     ^~~~
libhashkit/jenkins.cc:235:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  235 |     case 7 : b+=((uint32_t)k[6])<<16;
      |              ~^~~~~~~~~~~~~~~~~~~~~~
libhashkit/jenkins.cc:236:5: note: here
  236 |     case 6 : b+=((uint32_t)k[5])<<8;
      |     ^~~~
libhashkit/jenkins.cc:236:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  236 |     case 6 : b+=((uint32_t)k[5])<<8;
      |              ~^~~~~~~~~~~~~~~~~~~~~
libhashkit/jenkins.cc:237:5: note: here
  237 |     case 5 : b+=k[4];
      |     ^~~~
libhashkit/jenkins.cc:237:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  237 |     case 5 : b+=k[4];
      |              ~^~~~~~
libhashkit/jenkins.cc:238:5: note: here
  238 |     case 4 : a+=((uint32_t)k[3])<<24;
      |     ^~~~
libhashkit/jenkins.cc:238:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  238 |     case 4 : a+=((uint32_t)k[3])<<24;
      |              ~^~~~~~~~~~~~~~~~~~~~~~
libhashkit/jenkins.cc:239:5: note: here
  239 |     case 3 : a+=((uint32_t)k[2])<<16;
      |     ^~~~
libhashkit/jenkins.cc:239:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  239 |     case 3 : a+=((uint32_t)k[2])<<16;
      |              ~^~~~~~~~~~~~~~~~~~~~~~
libhashkit/jenkins.cc:240:5: note: here
  240 |     case 2 : a+=((uint32_t)k[1])<<8;
      |     ^~~~
libhashkit/jenkins.cc:240:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  240 |     case 2 : a+=((uint32_t)k[1])<<8;
      |              ~^~~~~~~~~~~~~~~~~~~~~
libhashkit/jenkins.cc:241:5: note: here
  241 |     case 1 : a+=k[0];
      |     ^~~~
  CXX      libhashkit/libmemcachedinternal_libmemcachedinternal_la-ketama.lo
  CXX      libhashkit/libmemcachedinternal_libmemcachedinternal_la-md5.lo
  CXX      libhashkit/libmemcachedinternal_libmemcachedinternal_la-murmur.lo
libhashkit/murmur.cc: In function 'uint32_t hashkit_murmur(const char*, size_t, void*)':
libhashkit/murmur.cc:99:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  



补充内容 (2023-7-20 17:25):
configure.ac:161: the top level
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin...
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2023-7-20 17:08:15 | 显示全部楼层


99 |   case 3: h ^= ((uint32_t)data[2]) << 16;
      |           ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
libhashkit/murmur.cc:100:3: note: here
  100 |   case 2: h ^= ((uint32_t)data[1]) << 8;
      |   ^~~~
libhashkit/murmur.cc:100:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  100 |   case 2: h ^= ((uint32_t)data[1]) << 8;
      |           ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
libhashkit/murmur.cc:101:3: note: here
  101 |   case 1: h ^= data[0];
      |   ^~~~
  CXX      libhashkit/libmemcachedinternal_libmemcachedinternal_la-murmur3.lo
libhashkit/murmur3.cc: In function 'void MurmurHash3_x86_32(const void*, int, uint32_t, void*)':
libhashkit/murmur3.cc:112:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
  112 |   case 3: k1 ^= tail[2] << 16;
      |           ~~~^~~~~~~~~~~~~~~~
libhashkit/murmur3.cc:113:3: note: here
  113 |   case 2: k1 ^= tail[1] << 8;
      |   ^~~~
libhashkit/murmur3.cc:113:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
  113 |   case 2: k1 ^= tail[1] << 8;
      |           ~~~^~~~~~~~~~~~~~~
libhashkit/murmur3.cc:114:3: note: here
  114 |   case 1: k1 ^= tail[0];
      |   ^~~~
libhashkit/murmur3.cc: In function 'void MurmurHash3_x86_128(const void*, int, uint32_t, void*)':
libhashkit/murmur3.cc:188:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  188 |   case 15: k4 ^= tail[14] << 16;
      |            ~~~^~~~~~~~~~~~~~~~~
libhashkit/murmur3.cc:189:3: note: here
  189 |   case 14: k4 ^= tail[13] << 8;
      |   ^~~~
libhashkit/murmur3.cc:189:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  189 |   case 14: k4 ^= tail[13] << 8;
      |            ~~~^~~~~~~~~~~~~~~~
libhashkit/murmur3.cc:190:3: note: here
  190 |   case 13: k4 ^= tail[12] << 0;
      |   ^~~~
libhashkit/murmur3.cc:191:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
  191 |            k4 *= c4; k4  = ROTL32(k4,18); k4 *= c1; h4 ^= k4;
      |                                                     ~~~^~~~~
libhashkit/murmur3.cc:193:3: note: here
  193 |   case 12: k3 ^= tail[11] << 24;
      |   ^~~~
libhashkit/murmur3.cc:193:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  193 |   case 12: k3 ^= tail[11] << 24;
      |            ~~~^~~~~~~~~~~~~~~~~
libhashkit/murmur3.cc:194:3: note: here
  194 |   case 11: k3 ^= tail[10] << 16;
      |   ^~~~
libhashkit/murmur3.cc:194:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  194 |   case 11: k3 ^= tail[10] << 16;
      |            ~~~^~~~~~~~~~~~~~~~~
libhashkit/murmur3.cc:195:3: note: here
  195 |   case 10: k3 ^= tail[ 9] << 8;
      |   ^~~~
libhashkit/murmur3.cc:195:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  195 |   case 10: k3 ^= tail[ 9] << 8;
      |            ~~~^~~~~~~~~~~~~~~~
libhashkit/murmur3.cc:196:3: note: here
  196 |   case  9: k3 ^= tail[ 8] << 0;
      |   ^~~~
libhashkit/murmur3.cc:197:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
  197 |            k3 *= c3; k3  = ROTL32(k3,17); k3 *= c4; h3 ^= k3;
      |                                                     ~~~^~~~~
libhashkit/murmur3.cc:199:3: note: here
  199 |   case  8: k2 ^= tail[ 7] << 24;
      |   ^~~~
libhashkit/murmur3.cc:199:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  199 |   case  8: k2 ^= tail[ 7] << 24;
      |            ~~~^~~~~~~~~~~~~~~~~
libhashkit/murmur3.cc:200:3: note: here
  200 |   case  7: k2 ^= tail[ 6] << 16;
      |   ^~~~
libhashkit/murmur3.cc:200:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  200 |   case  7: k2 ^= tail[ 6] << 16;
      |            ~~~^~~~~~~~~~~~~~~~~
libhashkit/murmur3.cc:201:3: note: here
  201 |   case  6: k2 ^= tail[ 5] << 8;
      |   ^~~~
libhashkit/murmur3.cc:201:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  201 |   case  6: k2 ^= tail[ 5] << 8;
      |            ~~~^~~~~~~~~~~~~~~~
libhashkit/murmur3.cc:202:3: note: here
  202 |   case  5: k2 ^= tail[ 4] << 0;
      |   ^~~~
libhashkit/murmur3.cc:203:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
  203 |            k2 *= c2; k2  = ROTL32(k2,16); k2 *= c3; h2 ^= k2;
      |                                                     ~~~^~~~~
libhashkit/murmur3.cc:205:3: note: here
  205 |   case  4: k1 ^= tail[ 3] << 24;
      |   ^~~~
libhashkit/murmur3.cc:205:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  205 |   case  4: k1 ^= tail[ 3] << 24;
      |            ~~~^~~~~~~~~~~~~~~~~
libhashkit/murmur3.cc:206:3: note: here
  206 |   case  3: k1 ^= tail[ 2] << 16;
      |   ^~~~
libhashkit/murmur3.cc:206:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  206 |   case  3: k1 ^= tail[ 2] << 16;
      |            ~~~^~~~~~~~~~~~~~~~~
libhashkit/murmur3.cc:207:3: note: here
  207 |   case  2: k1 ^= tail[ 1] << 8;
      |   ^~~~
libhashkit/murmur3.cc:207:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  207 |   case  2: k1 ^= tail[ 1] << 8;
      |            ~~~^~~~~~~~~~~~~~~~
libhashkit/murmur3.cc:208:3: note: here
  208 |   case  1: k1 ^= tail[ 0] << 0;
      |   ^~~~
libhashkit/murmur3.cc: In function 'void MurmurHash3_x64_128(const void*, int, uint32_t, void*)':
libhashkit/murmur3.cc:278:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  278 |   case 15: k2 ^= (uint64_t)(tail[14]) << 48;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libhashkit/murmur3.cc:279:3: note: here
  279 |   case 14: k2 ^= (uint64_t)(tail[13]) << 40;
      |   ^~~~
libhashkit/murmur3.cc:279:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  279 |   case 14: k2 ^= (uint64_t)(tail[13]) << 40;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libhashkit/murmur3.cc:280:3: note: here
  280 |   case 13: k2 ^= (uint64_t)(tail[12]) << 32;
      |   ^~~~
libhashkit/murmur3.cc:280:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  280 |   case 13: k2 ^= (uint64_t)(tail[12]) << 32;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2023-7-20 17:10:35 | 显示全部楼层

libhashkit/murmur3.cc:281:3: note: here
  281 |   case 12: k2 ^= (uint64_t)(tail[11]) << 24;
      |   ^~~~
libhashkit/murmur3.cc:281:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  281 |   case 12: k2 ^= (uint64_t)(tail[11]) << 24;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libhashkit/murmur3.cc:282:3: note: here
  282 |   case 11: k2 ^= (uint64_t)(tail[10]) << 16;
      |   ^~~~
libhashkit/murmur3.cc:282:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  282 |   case 11: k2 ^= (uint64_t)(tail[10]) << 16;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libhashkit/murmur3.cc:283:3: note: here
  283 |   case 10: k2 ^= (uint64_t)(tail[ 9]) << 8;
      |   ^~~~
libhashkit/murmur3.cc:283:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  283 |   case 10: k2 ^= (uint64_t)(tail[ 9]) << 8;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
libhashkit/murmur3.cc:284:3: note: here
  284 |   case  9: k2 ^= (uint64_t)(tail[ 8]) << 0;
      |   ^~~~
libhashkit/murmur3.cc:285:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
  285 |            k2 *= c2; k2  = ROTL64(k2,33); k2 *= c1; h2 ^= k2;
      |                                                     ~~~^~~~~
libhashkit/murmur3.cc:287:3: note: here
  287 |   case  8: k1 ^= (uint64_t)(tail[ 7]) << 56;
      |   ^~~~
libhashkit/murmur3.cc:287:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  287 |   case  8: k1 ^= (uint64_t)(tail[ 7]) << 56;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libhashkit/murmur3.cc:288:3: note: here
  288 |   case  7: k1 ^= (uint64_t)(tail[ 6]) << 48;
      |   ^~~~
libhashkit/murmur3.cc:288:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  288 |   case  7: k1 ^= (uint64_t)(tail[ 6]) << 48;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libhashkit/murmur3.cc:289:3: note: here
  289 |   case  6: k1 ^= (uint64_t)(tail[ 5]) << 40;
      |   ^~~~
libhashkit/murmur3.cc:289:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  289 |   case  6: k1 ^= (uint64_t)(tail[ 5]) << 40;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libhashkit/murmur3.cc:290:3: note: here
  290 |   case  5: k1 ^= (uint64_t)(tail[ 4]) << 32;
      |   ^~~~
libhashkit/murmur3.cc:290:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  290 |   case  5: k1 ^= (uint64_t)(tail[ 4]) << 32;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libhashkit/murmur3.cc:291:3: note: here
  291 |   case  4: k1 ^= (uint64_t)(tail[ 3]) << 24;
      |   ^~~~
libhashkit/murmur3.cc:291:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  291 |   case  4: k1 ^= (uint64_t)(tail[ 3]) << 24;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libhashkit/murmur3.cc:292:3: note: here
  292 |   case  3: k1 ^= (uint64_t)(tail[ 2]) << 16;
      |   ^~~~
libhashkit/murmur3.cc:292:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  292 |   case  3: k1 ^= (uint64_t)(tail[ 2]) << 16;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libhashkit/murmur3.cc:293:3: note: here
  293 |   case  2: k1 ^= (uint64_t)(tail[ 1]) << 8;
      |   ^~~~
libhashkit/murmur3.cc:293:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  293 |   case  2: k1 ^= (uint64_t)(tail[ 1]) << 8;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
libhashkit/murmur3.cc:294:3: note: here
  294 |   case  1: k1 ^= (uint64_t)(tail[ 0]) << 0;
      |   ^~~~
  CXX      libhashkit/libmemcachedinternal_libmemcachedinternal_la-murmur3_api.lo
  CXX      libhashkit/libmemcachedinternal_libmemcachedinternal_la-one_at_a_time.lo
  CXX      libhashkit/libmemcachedinternal_libmemcachedinternal_la-rijndael.lo
  CXX      libhashkit/libmemcachedinternal_libmemcachedinternal_la-str_algorithm.lo
  CXX      libhashkit/libmemcachedinternal_libmemcachedinternal_la-strerror.lo
  CXX      libhashkit/libmemcachedinternal_libmemcachedinternal_la-string.lo
  CXX      libhashkit/libmemcachedinternal_libmemcachedinternal_la-nohsieh.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-allocators.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-analyze.lo
  CC       libmemcached/libmemcachedinternal_libmemcachedinternal_la-array.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-auto.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-backtrace.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-behavior.lo
libmemcached/behavior.cc: In function 'memcached_return_t memcached_behavior_set(memcached_st*, memcached_behavior_t, uint64_t)':
libmemcached/behavior.cc:108:32: warning: this statement may fall through [-Wimplicit-fallthrough=]
  108 |     ptr->flags.auto_eject_hosts= bool(data);
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
libmemcached/behavior.cc:110:3: note: here
  110 |   case MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT:
      |   ^~~~
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-byteorder.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-callback.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-connect.lo
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2023-7-20 17:13:27 | 显示全部楼层



In function 'memcached_return_t unix_socket_connect(memcached_instance_st*)',
    inlined from 'memcached_return_t _memcached_connect(memcached_instance_st*, bool)' at libmemcached/connect.cc:781:28:
libmemcached/connect.cc:469:12: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 108 bytes from a string of length 1024 [-Wstringop-truncation]
  469 |     strncpy(servAddr.sun_path, server->hostname(), sizeof(servAddr.sun_path)); /* Copy filename */
      |     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-delete.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-do.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-dump.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-error.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-exist.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-fetch.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-flag.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-flush.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-flush_buffers.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-get.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-hash.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-hosts.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-initialize_query.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-io.lo
libmemcached/io.cc: In function 'memcached_return_t io_wait(memcached_instance_st*, short int)':
libmemcached/io.cc:275:26: warning: this statement may fall through [-Wimplicit-fallthrough=]
  275 |       memcached_set_error(*instance, MEMCACHED_MEMORY_ALLOCATION_FAILURE, MEMCACHED_AT);
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libmemcached/io.cc:277:5: note: here
  277 |     case EINVAL:
      |     ^~~~
libmemcached/io.cc:278:26: warning: this statement may fall through [-Wimplicit-fallthrough=]
  278 |       memcached_set_error(*instance, MEMCACHED_MEMORY_ALLOCATION_FAILURE, MEMCACHED_AT, memcached_literal_param("RLIMIT_NOFILE exceeded, or if OSX the timeout value was invalid"));
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libmemcached/io.cc:280:5: note: here
  280 |     default:
      |     ^~~~~~~
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-key.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-memcached.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-encoding_key.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-namespace.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-options.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-parse.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-poll.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-purge.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-quit.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-response.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-result.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-sasl.lo
libmemcached/sasl.cc: In function 'memcached_return_t memcached_set_sasl_auth_data(memcached_st*, const char*, const char*)':
libmemcached/sasl.cc:365:22: warning: cast between incompatible function types from 'int (*)(void*, int, const char**, unsigned int*)' to 'int (*)()' [-Wcast-function-type]
  365 |   callbacks[0].proc= (int (*)())get_username;
      |                      ^~~~~~~~~~~~~~~~~~~~~~~
libmemcached/sasl.cc:368:22: warning: cast between incompatible function types from 'int (*)(void*, int, const char**, unsigned int*)' to 'int (*)()' [-Wcast-function-type]
  368 |   callbacks[1].proc= (int (*)())get_username;
      |                      ^~~~~~~~~~~~~~~~~~~~~~~
libmemcached/sasl.cc:371:22: warning: cast between incompatible function types from 'int (*)(sasl_conn_t*, void*, int, sasl_secret_t**)' {aka 'int (*)(sasl_conn*, void*, int, sasl_secret**)'} to 'int (*)()' [-Wcast-function-type]
  371 |   callbacks[2].proc= (int (*)())get_password;
      |                      ^~~~~~~~~~~~~~~~~~~~~~~
libmemcached/sasl.cc: In function 'memcached_return_t memcached_clone_sasl(memcached_st*, const memcached_st*)':
libmemcached/sasl.cc:431:42: warning: cast between incompatible function types from 'int (*)(void*, int, const char**, unsigned int*)' to 'int (*)()' [-Wcast-function-type]
  431 |       source->sasl.callbacks[0].proc ==  (int (*)())get_username &&
      |                                          ^~~~~~~~~~~~~~~~~~~~~~~
libmemcached/sasl.cc:433:42: warning: cast between incompatible function types from 'int (*)(void*, int, const char**, unsigned int*)' to 'int (*)()' [-Wcast-function-type]
  433 |       source->sasl.callbacks[1].proc ==  (int (*)())get_username &&
      |                                          ^~~~~~~~~~~~~~~~~~~~~~~
libmemcached/sasl.cc:435:42: warning: cast between incompatible function types from 'int (*)(sasl_conn_t*, void*, int, sasl_secret_t**)' {aka 'int (*)(sasl_conn*, void*, int, sasl_secret**)'} to 'int (*)()' [-Wcast-function-type]
  435 |       source->sasl.callbacks[2].proc ==  (int (*)())get_password &&
      |                                          ^~~~~~~~~~~~~~~~~~~~~~~
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2023-7-20 17:14:49 | 显示全部楼层



  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-server.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-server_list.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-stats.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-storage.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-strerror.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-string.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-touch.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-udp.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-verbosity.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-version.lo
  CC       libmemcached/libmemcachedinternal_libmemcachedinternal_la-virtual_bucket.lo
  CXXLD    libmemcachedinternal/libmemcachedinternal.la
copying selected object files to avoid basename conflicts...
ar: `u' modifier ignored since `D' is the default (see `U')
  CXX      libmemcached/libmemcachedinternal_libmemcachedutilinternal_la-backtrace.lo
  CXX      libmemcachedutil/libmemcachedinternal_libmemcachedutilinternal_la-flush.lo
  CXX      libmemcachedutil/libmemcachedinternal_libmemcachedutilinternal_la-pid.lo
  CXX      libmemcachedutil/libmemcachedinternal_libmemcachedutilinternal_la-ping.lo
  CXX      libmemcachedutil/libmemcachedinternal_libmemcachedutilinternal_la-pool.lo
  CXX      libmemcachedutil/libmemcachedinternal_libmemcachedutilinternal_la-version.lo
  CXXLD    libmemcachedinternal/libmemcachedutilinternal.la
ar: `u' modifier ignored since `D' is the default (see `U')
  CXX      clients/clients_memcapable-memcapable.o
clients/memcapable.cc: In function ‘int main(int, char**)’:
clients/memcapable.cc:2234:48: warning: ‘%s’ directive argument is null [-Wformat-overflow=]
2234 |         fprintf(stderr, "Failed to connect to <%s:%s>: %s\n", hostname, port, strerror(get_socket_errno()));
      |                                                ^~
clients/memcapable.cc:2161:44: warning: ‘%s’ directive argument is null [-Wformat-overflow=]
2161 |     fprintf(stderr, "Failed to connect to <%s:%s>: %s\n",
      |                                            ^~
  CXX      libmemcached/clients_memcapable-byteorder.o
  CXXLD    clients/memcapable
  CXX      clients/memcat.o
  CXXLD    clients/memcat
  CXX      clients/memcp.o
  CXXLD    clients/memcp
  CXX      clients/memdump.o
  CXXLD    clients/memdump
  CXX      clients/memerror.o
  CXXLD    clients/memerror
  CXX      clients/memexist.o
  CXXLD    clients/memexist
  CXX      clients/memtouch.o
  CXXLD    clients/memtouch
  CXX      clients/memflush.o

clients/memflush.cc: In function ‘int main(int, char**)’:
clients/memflush.cc:42:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   42 |   if (opt_servers == false)
      |       ~~~~~~~~~~~~^~~~~~~~
clients/memflush.cc:51:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   51 |     if (opt_servers == false)
      |         ~~~~~~~~~~~~^~~~~~~~
make[1]: *** [Makefile:5832: clients/memflush.o] Error 1
make[1]: Leaving directory '/root/lnmp2.0/src/libmemcached-1.0.18'
make: *** [Makefile:3700: all] Error 2
make -j2  all-am
make[1]: Entering directory '/root/lnmp2.0/src/libmemcached-1.0.18'
  CXX      clients/memflush.o
clients/memflush.cc: In function ‘int main(int, char**)’:
clients/memflush.cc:42:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   42 |   if (opt_servers == false)
      |       ~~~~~~~~~~~~^~~~~~~~
clients/memflush.cc:51:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   51 |     if (opt_servers == false)
      |         ~~~~~~~~~~~~^~~~~~~~
make[1]: *** [Makefile:5832: clients/memflush.o] Error 1
make[1]: Leaving directory '/root/lnmp2.0/src/libmemcached-1.0.18'
make: *** [Makefile:3700: all] Error 2
make -j2  install-am
make[1]: Entering directory '/root/lnmp2.0/src/libmemcached-1.0.18'
  CXX      clients/memflush.o
clients/memflush.cc: In function ‘int main(int, char**)’:
clients/memflush.cc:42:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   42 |   if (opt_servers == false)
      |       ~~~~~~~~~~~~^~~~~~~~
clients/memflush.cc:51:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   51 |     if (opt_servers == false)
      |         ~~~~~~~~~~~~^~~~~~~~

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2023-7-20 17:15:32 | 显示全部楼层



  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-server.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-server_list.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-stats.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-storage.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-strerror.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-string.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-touch.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-udp.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-verbosity.lo
  CXX      libmemcached/libmemcachedinternal_libmemcachedinternal_la-version.lo
  CC       libmemcached/libmemcachedinternal_libmemcachedinternal_la-virtual_bucket.lo
  CXXLD    libmemcachedinternal/libmemcachedinternal.la
copying selected object files to avoid basename conflicts...
ar: `u' modifier ignored since `D' is the default (see `U')
  CXX      libmemcached/libmemcachedinternal_libmemcachedutilinternal_la-backtrace.lo
  CXX      libmemcachedutil/libmemcachedinternal_libmemcachedutilinternal_la-flush.lo
  CXX      libmemcachedutil/libmemcachedinternal_libmemcachedutilinternal_la-pid.lo
  CXX      libmemcachedutil/libmemcachedinternal_libmemcachedutilinternal_la-ping.lo
  CXX      libmemcachedutil/libmemcachedinternal_libmemcachedutilinternal_la-pool.lo
  CXX      libmemcachedutil/libmemcachedinternal_libmemcachedutilinternal_la-version.lo
  CXXLD    libmemcachedinternal/libmemcachedutilinternal.la
ar: `u' modifier ignored since `D' is the default (see `U')
  CXX      clients/clients_memcapable-memcapable.o
clients/memcapable.cc: In function ‘int main(int, char**)’:
clients/memcapable.cc:2234:48: warning: ‘%s’ directive argument is null [-Wformat-overflow=]
2234 |         fprintf(stderr, "Failed to connect to <%s:%s>: %s\n", hostname, port, strerror(get_socket_errno()));
      |                                                ^~
clients/memcapable.cc:2161:44: warning: ‘%s’ directive argument is null [-Wformat-overflow=]
2161 |     fprintf(stderr, "Failed to connect to <%s:%s>: %s\n",
      |                                            ^~
  CXX      libmemcached/clients_memcapable-byteorder.o
  CXXLD    clients/memcapable
  CXX      clients/memcat.o
  CXXLD    clients/memcat
  CXX      clients/memcp.o
  CXXLD    clients/memcp
  CXX      clients/memdump.o
  CXXLD    clients/memdump
  CXX      clients/memerror.o
  CXXLD    clients/memerror
  CXX      clients/memexist.o
  CXXLD    clients/memexist
  CXX      clients/memtouch.o
  CXXLD    clients/memtouch
  CXX      clients/memflush.o

clients/memflush.cc: In function ‘int main(int, char**)’:
clients/memflush.cc:42:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   42 |   if (opt_servers == false)
      |       ~~~~~~~~~~~~^~~~~~~~
clients/memflush.cc:51:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   51 |     if (opt_servers == false)
      |         ~~~~~~~~~~~~^~~~~~~~
make[1]: *** [Makefile:5832: clients/memflush.o] Error 1
make[1]: Leaving directory '/root/lnmp2.0/src/libmemcached-1.0.18'
make: *** [Makefile:3700: all] Error 2
make -j2  all-am
make[1]: Entering directory '/root/lnmp2.0/src/libmemcached-1.0.18'
  CXX      clients/memflush.o
clients/memflush.cc: In function ‘int main(int, char**)’:
clients/memflush.cc:42:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   42 |   if (opt_servers == false)
      |       ~~~~~~~~~~~~^~~~~~~~
clients/memflush.cc:51:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   51 |     if (opt_servers == false)
      |         ~~~~~~~~~~~~^~~~~~~~
make[1]: *** [Makefile:5832: clients/memflush.o] Error 1
make[1]: Leaving directory '/root/lnmp2.0/src/libmemcached-1.0.18'
make: *** [Makefile:3700: all] Error 2
make -j2  install-am
make[1]: Entering directory '/root/lnmp2.0/src/libmemcached-1.0.18'
  CXX      clients/memflush.o
clients/memflush.cc: In function ‘int main(int, char**)’:
clients/memflush.cc:42:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   42 |   if (opt_servers == false)
      |       ~~~~~~~~~~~~^~~~~~~~
clients/memflush.cc:51:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   51 |     if (opt_servers == false)
      |         ~~~~~~~~~~~~^~~~~~~~
make[1]: *** [Makefile:5832: clients/memflush.o] Error 1
make[1]: Leaving directory '/root/lnmp2.0/src/libmemcached-1.0.18'
make: *** [Makefile:9973: install] Error 2
memcached-3.1.5.tgz [found]
Uncompress memcached-3.1.5.tgz...
cd memcached-3.1.5...
Configuring for:
PHP Api Version:         20190902
Zend Module Api No:      20190902
Zend Extension Api No:   320190902
configure.ac:18: warning: $as_echo is obsolete; use AS_ECHO(["message"]) instead
build/php.m4:2110: PHP_CONFIG_NICE is expanded from...
configure.ac:18: the top level
configure.ac:161: warning: The macro `AC_LANG_C' is obsolete.
configure.ac:161: You should run autoupdate.
./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
build/libtool.m4:2727: _LT_AC_LANG_C_CONFIG is expanded from...
build/libtool.m4:2726: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
configure.ac:161: the top level
configure.ac:161: warning: The macro `AC_LANG_C' is obsolete.
configure.ac:161: You should run autoupdate.
./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
build/libtool.m4:561: _LT_AC_LOCK is expanded from...
build/libtool.m4:1184: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
build/libtool.m4:2727: _LT_AC_LANG_C_CONFIG is expanded from...
build/libtool.m4:2726: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
configure.ac:161: the top level
configure.ac:161: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:161: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
build/libtool.m4:561: _LT_AC_LOCK is expanded from...
build/libtool.m4:1184: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
build/libtool.m4:2727: _LT_AC_LANG_C_CONFIG is expanded from...
build/libtool.m4:2726: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
发表于 2023-7-21 08:54:53 | 显示全部楼层

编辑 include/memcached.sh 查找 if gcc -dumpversion|grep -Eq "^[7-9]|1[01]"; then 替换为: if gcc -dumpversion|grep -Eq "^[7-9]|1[0-2]"; then 保存
然后再重新安装
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2023-7-21 11:56:46 | 显示全部楼层

修改后重新安装成功了!
灰常谢谢!!
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-4 01:20 , Processed in 0.028310 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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