-
Notifications
You must be signed in to change notification settings - Fork 76
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
Memcached::setSalsAuthData() not found #25
Comments
While I don't currently use SASL for memcached, I suspect the following might bring us a clue on why it isn't working:
I suspect that SASL headers/libraries were missing during compile-time and run-time. What do you think? |
After I created the issue if found the following lines in the log file ./configure creates: configure:21368: result: no
configure:21407: checking sasl/sasl.h usability
configure:21407: gcc -c -g -O2 conftest.c >&5
conftest.c:175:23: error: sasl/sasl.h: No such file or directory I looked in the libmemcached source files and there are 2 sasl.h file present. Another point: the php memcached documentation (http://www.php.net/manual/en/memcached.installation.php) says the following: "This requires that libsasl2 has been installed and that libmemcached has been built with SASL support enabled." But I don't now how to check if libsasl2 is precent on a Heroku dyno. |
Within your application source directory, run This way, you get a shell and can dig into the lib and include directories to see if libsasl2 exists. |
I searched for sasl.h (find / -iname sasl), but I no results. But isn't it strange that sasl.h is present in the source files and that it can't be found by the compiler? |
Here's what I found on a
From what I can see here. The SASL libraries are installed, but they are missing headers (which should live in /usr/include/sasl/sasl.h). It looks like a solution would be to bundle the SASL libraries and headers before compiling libmemcached. That being said, I noticed that both libmemcached and memcached are due to be updated. However, as I have no testing infrastructure for memcache, I'm hesitant. |
I got this error and tried to solve it by enabling memcache sasl (memcached.use_sasl = On). That didn't work. I tried to compile memcached with --enable-memcached-sasl, but that didn't work to. On support/vulcan-build-php.sh line 106 (sed -i -e '21 s/no, no/yes, yes/' ./config.m4) config.m4 is modified and that seems to enable sasl during the memcached compilation.
I also tried to compile libmemcached with --with-memcached_sasl, but that didn't work to. Does somebody use this buildpack with a memcache service authenticated by sasl?
The text was updated successfully, but these errors were encountered: