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

Can't disable sasl to build php-memcached #471

Open
janemba opened this issue Dec 23, 2020 · 1 comment
Open

Can't disable sasl to build php-memcached #471

janemba opened this issue Dec 23, 2020 · 1 comment

Comments

@janemba
Copy link

janemba commented Dec 23, 2020

Hello,

I would like to disable sasl while building php-memcached-3.1.5. I build it using the following command:

# pecl install memcached

And I set the following switches:

libmemcached directory [no] : no --disable-memcached-sasl
zlib directory [no] :  no --disable-memcached-sasl
use system fastlz [no] : 
enable igbinary serializer [no] : 
enable msgpack serializer [no] : 
enable json serializer [no] : 
enable server protocol [no] : 
enable sasl [yes] : 
enable sessions [yes] : 
building in /tmp/pear/temp/pear-build-root9x68N7/memcached-3.1.5
running: /tmp/pear/temp/memcached/configure --with-php-config=/usr/bin/php-config --with-libmemcached-dir=no --disable-memcached-sasl --with-zlib-dir=no --disable-memcached-sasl --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
[...]

but it ends up with the following error:

[...]
/bin/sh /tmp/pear/temp/pear-build-root9x68N7/memcached-3.1.5/libtool --mode=link cc -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-root9x68N7/memcached-3.1.5/include -I/tmp/pear/temp/pear-build-root9x68N7/memcached-3.1.5/main -I/tmp/pear/temp/memcached -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib    -o memcached.la -export-dynamic -avoid-version -prefer-pic -module -rpath /tmp/pear/temp/pear-build-root9x68N7/memcached-3.1.5/modules  php_memcached.lo php_libmemcached_compat.lo g_fmt.lo fastlz/fastlz.lo php_memcached_session.lo -lz -lmemcached -lmemcachedutil -lsasl2
grep: /usr/lib64/libsasl2.la: No such file or directory
/usr/bin/sed: can't read /usr/lib64/libsasl2.la: No such file or directory
libtool: link: `/usr/lib64/libsasl2.la' is not a valid libtool archive
make: *** [Makefile:205: memcached.la] Error 1
ERROR: `make' failed

So there is two issues, the first one is the check for sasl library (which I disable) and the second is libsasl2.la. It seems latest version of cyrus-sasl2 doesn't ship .la files anymore. Better to use pkg-config.

Is there any workaround ?

@m6w6
Copy link
Contributor

m6w6 commented Apr 14, 2021

libmemcached directory [no] : no --disable-memcached-sasl
zlib directory [no] : no --disable-memcached-sasl

Is "no --disable-..." entered by you?

You should rather answer "no" to

enable sasl [yes] :

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

2 participants