gpt4 book ai didi

linux - 在 Debian Wheezy 上使用 SASL 构建 libmemcached

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:32:12 24 4
gpt4 key购买 nike

我正在尝试在 Debian Wheezy 上使用 /usr/lib/x86_64-linux-gnu/libsasl2 中的 libsasl2 构建 libmemcached-1.0.18。所以memcached/usr/bin/memcached。当我运行 ./configure --with-memcached-sasl --prefix=/opt/libmemcached 时,我得到以下配置:

Configuration summary for libmemcached version 1.0.18

* Installation prefix: /opt/libmemcached
* System type: unknown-linux-gnu
* Host CPU: x86_64
* C Compiler: cc (Debian 4.7.2-5) 4.7.2
* C Flags: -g -O2 -Wno-unknown-pragmas -Wno-pragmas -Wall -Wextra -Wunsuffixed-float-constants -Wjump-misses-init -Wno-attributes -Waddress -Warray-bounds -Wbad-function-cast -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat-security -Wformat=2 -Wformat-y2k -Wlogical-op -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wnormalized=id -Woverride-init -Wpointer-arith -Wpointer-sign -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wtrampolines -Wundef -Wunsafe-loop-optimizations -funsafe-loop-optimizations -Wclobbered -Wunused -Wunused-result -Wunused-variable -Wunused-parameter -Wunused-local-typedefs -Wwrite-strings -fwrapv -pipe -fPIE -pie -Wpacked
* C++ Compiler: c++ (Debian 4.7.2-5) 4.7.2
* C++ Flags: -g -O2 -Wno-unknown-pragmas -Wno-pragmas -Wall -Wextra -Wno-attributes -Waddress -Warray-bounds -Wchar-subscripts -Wcomment -Wctor-dtor-privacy -Wfloat-equal -Wformat=2 -Wformat-y2k -Wmaybe-uninitialized -Wmissing-field-initializers -Wlogical-op -Wnon-virtual-dtor -Wnormalized=id -Woverloaded-virtual -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wtrampolines -Wundef -Wunsafe-loop-optimizations -funsafe-loop-optimizations -Wc++11-compat -Wclobbered -Wunused -Wunused-result -Wunused-variable -Wunused-parameter -Wunused-local-typedefs -Wwrite-strings -Wformat-security -fwrapv -pipe -fPIE -pie -Wpacked
* CPP Flags: -fvisibility=hidden
* LIB Flags:
* Assertions enabled: no
* Debug enabled: no
* Shared: yes
* Warnings as failure: no
* SASL support: yes
* make -j: 3
* VCS checkout: no

然而,当我使用 make && make install 构建时,生成的 libmemcached.so 缺少 sasl_* 符号定义。这会破坏 pylibmc。这是 nm -D/opt/libmemcached/lib/libmemcached.so 的输出:

...
U sasl_client_init
U sasl_client_new
U sasl_client_start
U sasl_client_step
U sasl_dispose
U sasl_done
U sasl_errstring
...

我应该在 ./configure 中使用哪些选项来构建支持 SASL 的 libmemcached

最佳答案

我使用“--enable-sasl”选项来做到这一点。这对我有用。

关于linux - 在 Debian Wheezy 上使用 SASL 构建 libmemcached,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25200501/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com