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

error while installing: ‘MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS’ undeclared here #88

Open
carlosm opened this issue May 18, 2012 · 0 comments

Comments

@carlosm
Copy link

carlosm commented May 18, 2012

Found an issue trying to run the installer...

Ubuntu oneiric, python-2.6.7,
Versions:
libmemcached-dev 0.44-1.1build1
libmemcached6 0.44-1.1build1

I have libsasl2 and zlib installed too

running install
running build
running build_py
creating build/lib.linux-i686-2.6
creating build/lib.linux-i686-2.6/pylibmc
copying pylibmc/**main**.py -> build/lib.linux-i686-2.6/pylibmc
copying pylibmc/test.py -> build/lib.linux-i686-2.6/pylibmc
copying pylibmc/client.py -> build/lib.linux-i686-2.6/pylibmc
copying pylibmc/**init**.py -> build/lib.linux-i686-2.6/pylibmc
copying pylibmc/pools.py -> build/lib.linux-i686-2.6/pylibmc
copying pylibmc/consts.py -> build/lib.linux-i686-2.6/pylibmc
running build_ext
building '_pylibmc' extension
creating build/temp.linux-i686-2.6
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DUSE_ZLIB -I/usr/include/python2.6 -c _pylibmcmodule.c -o build/temp.linux-i686-2.6/_pylibmcmodule.o -fno-strict-aliasing
In file included from _pylibmcmodule.c:34:0:
_pylibmcmodule.h:190:7: error: ‘MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS’ undeclared here (not in a function)
_pylibmcmodule.c: In function ‘PylibMC_Client_gets’:
_pylibmcmodule.c:505:5: warning: passing argument 2 of ‘memcached_mget’ from incompatible pointer type [enabled by default]
/usr/local/include/libmemcached/memcached_get.h:23:18: note: expected ‘char *_’ but argument is of type ‘const char *_’
_pylibmcmodule.c: In function ‘pylibmc_memcached_fetch_multi’:
_pylibmcmodule.c:1239:5: warning: passing argument 2 of ‘memcached_mget’ from incompatible pointer type [enabled by default]
/usr/local/include/libmemcached/memcached_get.h:23:18: note: expected ‘char *_’ but argument is of type ‘const char *_’
error: command 'gcc' failed with exit status 1

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

1 participant