Closed
Description
Error compiling memcached extension even having sasl disabled in configure.
# pecl download redis memcached
# cd memcached-3.0.3/
# phpize
# ./configure --disable-memcached-sasl
...
checking for libmemcached... yes, shared
checking whether to enable memcached session handler support... yes
checking whether to enable memcached igbinary serializer support... no
checking whether to enable memcached json serializer support... no
checking whether to enable memcached msgpack serializer support... no
checking whether to enable memcached sasl support... no
checking whether to enable memcached protocol support... no
...
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
# make
...
cc -I/usr/local/include/php -I. -I/usr/local/memcached-3.0.3 -DPHP_ATOM_INC -I/usr/local/memcached-3.0.3/include -I/usr/local/memcached-3.0.3/main -I/usr/local/memcached-3.0.3 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -c /usr/local/memcached-3.0.3/php_memcached.c -fPIC -DPIC -o .libs/php_memcached.o
In file included from /usr/include/libmemcached-1.0/memcached.h:85:0,
from /usr/include/libmemcached/memcached.h:39,
from /usr/local/memcached-3.0.3/php_libmemcached_compat.h:21,
from /usr/local/memcached-3.0.3/php_memcached_private.h:28,
from /usr/local/memcached-3.0.3/php_memcached.c:25:
/usr/include/libmemcached-1.0/struct/sasl.h:39:23: fatal error: sasl/sasl.h: No such file or directory
compilation terminated.
Makefile:194: recipe for target 'php_memcached.lo' failed
make: *** [php_memcached.lo] Error 1
For some reason there is an unconditional #include <libmemcached-1.0/struct/sasl.h> in memcached.h
OS: Alpine linux 3.4.6
Metadata
Metadata
Assignees
Labels
No labels