memcached icon indicating copy to clipboard operation
memcached copied to clipboard

libmemcached doesn't build on Ubuntu 22.04.1 LTS

Open LeonidVas opened this issue 2 years ago • 4 comments

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

LeonidVas avatar Dec 05 '22 10:12 LeonidVas

[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

ligurio avatar Dec 05 '22 10:12 ligurio

[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

LeonidVas avatar Dec 05 '22 12:12 LeonidVas

Ah, it is not about memcached itself, but about building third-party in cmake/BuildLibmemcached.cmake

ligurio avatar Dec 05 '22 12:12 ligurio

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.

m6w6 avatar Feb 28 '23 14:02 m6w6