memcached
memcached copied to clipboard
libmemcached doesn't build on Ubuntu 22.04.1 LTS
libmemcached builds correctly with gcc <= 10 (https://github.com/awesomized/libmemcached#testing), but not with gcc 12 (default in Ubuntu 22.04.1 LTS). Because of this, the "memcached-capable" tests fail. logs_722.zip
[0] ~/sources/MRG/memcached$ cmake --build build
Consolidate compiler generated dependencies of target msgpuck
[ 6%] Built target msgpuck
[ 10%] Built target generate_proto_txt_parser_c
Consolidate compiler generated dependencies of target small
[ 51%] Built target small
Consolidate compiler generated dependencies of target internalso
[ 55%] Building C object memcached/CMakeFiles/internalso.dir/internal/mc_sasl.c.o
[ 58%] Building C object memcached/CMakeFiles/internalso.dir/__/third_party/memcached_ibuf.c.o
[ 62%] Linking C shared library internal.so
[100%] Built target internalso
[0] ~/sources/MRG/memcached$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
Version: 5783cd24273b0766546b7666479f9f2dabe268ff
[0] ~/sources/MRG/memcached$ cmake --build build Consolidate compiler generated dependencies of target msgpuck [ 6%] Built target msgpuck [ 10%] Built target generate_proto_txt_parser_c Consolidate compiler generated dependencies of target small [ 51%] Built target small Consolidate compiler generated dependencies of target internalso [ 55%] Building C object memcached/CMakeFiles/internalso.dir/internal/mc_sasl.c.o [ 58%] Building C object memcached/CMakeFiles/internalso.dir/__/third_party/memcached_ibuf.c.o [ 62%] Linking C shared library internal.so [100%] Built target internalso [0] ~/sources/MRG/memcached$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.1 LTS Release: 22.04 Codename: jammy
Version: 5783cd2
It looks like you don't build libmemcached here.
Try make test-memcached-capable
Ah, it is not about memcached itself, but about building third-party in cmake/BuildLibmemcached.cmake
Just a heads up: this is not about https://github.com/awesomized/libmemcached (though, you're referencing it in your OP).
You should consider switching to https://github.com/awesomized/libmemcached, though.