Skip to content

MEMCACHED_CALLBACK_PREFIX_KEY renaming breaks build on older libmemcached versions #120

Open
@ketralnis

Description

@ketralnis

At some point MEMCACHED_CALLBACK_PREFIX_KEY was renamed to MEMCACHED_CALLBACK_NAMESPACE, but libmemcached in 0.44 won't compile with that name. Should this be named conditionally? Or maybe the renaming can be smoothed on the pylibmc side for consistency

~/src/pylibmc (master)$ python ./setup.py build
running build
running build_py
running build_ext
building '_pylibmc' extension
gcc -fno-strict-aliasing -arch x86_64 -g -Os -pipe -no-cpp-precomp -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DUSE_ZLIB -I/usr/local/include/python2.7 -c src/_pylibmcmodule.c -o build/temp.macosx-10.4-x86_64-2.7/src/_pylibmcmodule.o -fno-strict-aliasing
In file included from src/_pylibmcmodule.c:34:
src/_pylibmcmodule.h:227: error: ‘MEMCACHED_CALLBACK_NAMESPACE’ undeclared here (not in a function)
src/_pylibmcmodule.c: In function ‘PylibMC_Client_touch’:
src/_pylibmcmodule.c:1074: warning: implicit declaration of function ‘memcached_touch’
error: command 'gcc' failed with exit status 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions