Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure: error: invalid feature name: memcached-sasl=no #416

Closed
Synchro opened this issue Dec 21, 2018 · 21 comments
Closed

configure: error: invalid feature name: memcached-sasl=no #416

Synchro opened this issue Dec 21, 2018 · 21 comments

Comments

@Synchro
Copy link

Synchro commented Dec 21, 2018

Attempting to build the new 3.1.0 release with PHP 7.3 on macOS 10.11, accepting all defaults I get this:

pecl install memcached                                                                                                                                           
pecl/memcached can optionally use PHP extension "igbinary" (version >= 2.0)
pecl/memcached can optionally use PHP extension "msgpack" (version >= 2.0)
downloading memcached-3.1.0.tgz ...
Starting to download memcached-3.1.0.tgz (82,407 bytes)
....................done: 82,407 bytes
15 source files, building
running: phpize
Configuring for:
PHP Api Version:         20180731
Zend Module Api No:      20180731
Zend Extension Api No:   320180731
libmemcached directory [no] :
zlib directory [no] :
use system fastlz [no] :
enable igbinary serializer [no] :
enable msgpack serializer [no] :
enable json serializer [no] :
enable server protocol [no] :
disable sasl [no] :
disable sessions [no] :
building in /private/tmp/pear/temp/pear-build-marcusNSCOrg/memcached-3.1.0
running: /private/tmp/pear/temp/memcached/configure --with-php-config=/usr/local/opt/php/bin/php-config --with-libmemcached-dir=no --with-zlib-dir=no --with-system-fastlz=no --enable-memcached-igbinary=no --enable-memcached-msgpack=no --enable-memcached-json=no --enable-memcached-protocol=no --disable-memcached-sasl=no --disable-memcached-session=no
configure: error: invalid feature name: memcached-sasl=no
ERROR: `/private/tmp/pear/temp/memcached/configure --with-php-config=/usr/local/opt/php/bin/php-config --with-libmemcached-dir=no --with-zlib-dir=no --with-system-fastlz=no --enable-memcached-igbinary=no --enable-memcached-msgpack=no --enable-memcached-json=no --enable-memcached-protocol=no --disable-memcached-sasl=no --disable-memcached-session=no' failed

This seems to be a new problem in 3.1.0 as while the previous versions also failed to build with PHP 7.3, it got past this point. Answering yes to the sasl question doesn't help.

@gouranga
Copy link

Same goes for Debian stable.

# pecl install memcached
pecl/memcached can optionally use PHP extension "igbinary" (version >= 2.0)
pecl/memcached can optionally use PHP extension "msgpack" (version >= 2.0)
downloading memcached-3.1.0.tgz ...
Starting to download memcached-3.1.0.tgz (82,407 bytes)
....................done: 82,407 bytes
15 source files, building
running: phpize
Configuring for:
PHP Api Version:         20180731
Zend Module Api No:      20180731
Zend Extension Api No:   320180731
libmemcached directory [no] :
zlib directory [no] :
use system fastlz [no] :
enable igbinary serializer [no] :
enable msgpack serializer [no] :
enable json serializer [no] :
enable server protocol [no] :
disable sasl [no] :
disable sessions [no] :
building in /tmp/pear/temp/pear-build-rootA6LvyM/memcached-3.1.0
running: /tmp/pear/temp/memcached/configure --with-php-config=/usr/bin/php-config --with-libmemcached-dir=no --with-zlib-dir=no --with-system-fastlz=no --enable-memcached-igbinary=no --enable-memcached-msgpack=no --enable-memcached-json=no --enable-memcached-protocol=no --disable-memcached-sasl=no --disable-memcached-session=no
configure: error: invalid feature name: memcached-sasl=no
ERROR: `/tmp/pear/temp/memcached/configure --with-php-config=/usr/bin/php-config --with-libmemcached-dir=no --with-zlib-dir=no --with-system-fastlz=no --enable-memcached-igbinary=no --enable-memcached-msgpack=no --enable-memcached-json=no --enable-memcached-protocol=no --disable-memcached-sasl=no --disable-memcached-session=no' failed

@sodabrew
Copy link
Contributor

Thanks for reporting so quickly following the release.

@sodabrew
Copy link
Contributor

Posted 3.1.1 to fix this. Please confirm.

@sodabrew sodabrew reopened this Dec 21, 2018
@tcurilla
Copy link

tcurilla commented Dec 21, 2018

it works ... perfect

@Synchro
Copy link
Author

Synchro commented Dec 21, 2018

It solves that problem, but I then get a different failure:

pecl install memcached                                                                                                                                            ✔  6024  14:07:07
pecl/memcached can optionally use PHP extension "igbinary" (version >= 2.0)
pecl/memcached can optionally use PHP extension "msgpack" (version >= 2.0)
downloading memcached-3.1.1.tgz ...
Starting to download memcached-3.1.1.tgz (82,472 bytes)
....................done: 82,472 bytes
15 source files, building
running: phpize
Configuring for:
PHP Api Version:         20180731
Zend Module Api No:      20180731
Zend Extension Api No:   320180731
libmemcached directory [no] :
zlib directory [no] :
use system fastlz [no] :
enable igbinary serializer [no] :
enable msgpack serializer [no] :
enable json serializer [no] :
enable server protocol [yes] :
enable sasl [yes] :
enable sessions [yes] :
building in /private/tmp/pear/temp/pear-build-marcusqDZkiL/memcached-3.1.1
running: /private/tmp/pear/temp/memcached/configure --with-php-config=/usr/local/opt/php/bin/php-config --with-libmemcached-dir=no --with-zlib-dir=no --with-system-fastlz=no --enable-memcached-igbinary=no --enable-memcached-msgpack=no --enable-memcached-json=no --enable-memcached-protocol=yes --enable-memcached-sasl=yes --enable-memcached-session=yes
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/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-apple-darwin15.6.0
checking host system type... x86_64-apple-darwin15.6.0
checking target system type... x86_64-apple-darwin15.6.0
checking for PHP prefix... /usr/local/Cellar/php/7.3.0
checking for PHP includes... -I/usr/local/Cellar/php/7.3.0/include/php -I/usr/local/Cellar/php/7.3.0/include/php/main -I/usr/local/Cellar/php/7.3.0/include/php/TSRM -I/usr/local/Cellar/php/7.3.0/include/php/Zend -I/usr/local/Cellar/php/7.3.0/include/php/ext -I/usr/local/Cellar/php/7.3.0/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/Cellar/php/7.3.0/pecl/20180731
checking for PHP installed headers prefix... /usr/local/Cellar/php/7.3.0/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 1.1.1 (ok)
checking for gawk... gawk
checking whether to enable memcached support... yes, shared
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... yes
checking whether to enable memcached protocol support... yes
checking whether to use system FastLZ library... no
checking for ZLIB... yes, shared
checking for pkg-config... /usr/local/bin/pkg-config
checking for zlib location... /usr
checking for session includes... /usr/local/Cellar/php/7.3.0/include/php
checking for memcached session support... enabled
checking for memcached igbinary support... disabled
checking for memcached msgpack support... disabled
checking for libmemcached location... found version 1.0.18, under /usr/local/Cellar/libmemcached/1.0.18_2
checking for libmemcached sasl.h requirement... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sasl/sasl.h usability... yes
checking sasl/sasl.h presence... yes
checking for sasl/sasl.h... yes
checking whether to enable sasl support... yes
checking for sasl_client_init in -lsasl2... yes
checking whether memcached_exist is defined... yes
checking whether memcached_set_encoding_key is defined... yes
checking for memcached protocol support... enabled
checking whether libmemcachedprotocol is usable... no
configure: error: Cannot enable libmemcached protocol
ERROR: `/private/tmp/pear/temp/memcached/configure --with-php-config=/usr/local/opt/php/bin/php-config --with-libmemcached-dir=no --with-zlib-dir=no --with-system-fastlz=no --enable-memcached-igbinary=no --enable-memcached-msgpack=no --enable-memcached-json=no --enable-memcached-protocol=yes --enable-memcached-sasl=yes --enable-memcached-session=yes' failed

I guess this may be an issue with the libmemcached I have installed from homebrew, though I think that's current.

@ruudk
Copy link
Contributor

ruudk commented Dec 21, 2018

My machine is still trying to download 3.1.0. Is there a way to clear a cache?

@Synchro
Copy link
Author

Synchro commented Dec 21, 2018

Try pecl update-channels.

@ruudk
Copy link
Contributor

ruudk commented Dec 21, 2018

Thanks, did that now but it doesn't select 3.1.1 but 3.1.0

@gouranga
Copy link

@ruudk use pecl clear-cache

Had the same error as @Synchro, just answered no when pecl asked about it
enable server protocol [yes] : no.

@Synchro
Copy link
Author

Synchro commented Dec 21, 2018

That worked for me too, but it would be better if it worked anyway!

@ruudk
Copy link
Contributor

ruudk commented Dec 21, 2018

Is it possible to disable the server protocol via an env var? Otherwise this is difficult to automatically install.

@J0WI
Copy link

J0WI commented Dec 21, 2018

I only have the issue in #416 (comment) with Debian, it works fine on Alpine Linux.

@gouranga
Copy link

@ruudk I don't no if it's possible, try echo "\n\n\n\n\n\nno\n\n\n" | pecl install memcached or wrap install in a bash script and use expect...

@sodabrew
Copy link
Contributor

sodabrew commented Dec 21, 2018 via email

@sodabrew
Copy link
Contributor

3.1.2 released, please confirm if resolved now!

@ruudk
Copy link
Contributor

ruudk commented Dec 22, 2018

Works!

@J0WI
Copy link

J0WI commented Dec 22, 2018

Works for me now, thank you!

@J0WI
Copy link

J0WI commented Dec 22, 2018

Would be great to have a test for this in the CI 😉

@sodabrew
Copy link
Contributor

Thanks everyone for confirming!

I'd like a CI test, too. The pecl and config options documentation for php extension authors are so limited, though. I have my limits on how much time I'll invest into it. Separate issue anyhow, closing this out now.

@bujardeari
Copy link

bujardeari commented Feb 6, 2019

When i try to build a docker image it fails with

/tmp/pear/temp/memcached/configure --with-php-config=/usr/local/bin/php-config --with-libmemcached-dir=no --with-zlib-dir=no --with-system-fastlz=no --enable-memcached-igbinary=no --enable-memcached-msgpack=no --enable-memcached-json=no --enable-memcached-protocol=no --enable-memcached-sasl=yes --enable-memcached-session=yes' failed

@sodabrew
Copy link
Contributor

sodabrew commented Feb 6, 2019

Open a new issue for a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants