Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 216 by [email protected]: Compile errors in variables
http://code.google.com/p/memcached/issues/detail?id=216
What steps will reproduce the problem?
1. Open config_static.h
2. Add #define FUTURE at line 132 to enable FUTURE features
3. Run ./config/autorun.sh && ./configure && make
What is the expected output? What do you see instead?
I suspected the system to compile successfully. However due to missing
variables I get following compile error:
engines/default_engine/items.c: In function ‘do_item_cachedump’:
engines/default_engine/items.c:369:19: error: ‘KEY_MAX_LENGTH’ undeclared
(first use in this function)
engines/default_engine/items.c:369:19: note: each undeclared identifier is
reported only once for each function it appears in
engines/default_engine/items.c:372:10: error: ‘engine’ undeclared (first
use in this function)
engines/default_engine/items.c:386:53: error: ‘process_started’ undeclared
(first use in this function)
cc1: warnings being treated as errors
engines/default_engine/items.c:369:10: error: unused variable ‘key_temp’
What version of the product are you using? On what operating system?
memcached 1.6.0_beta1_27_gcb6290c OS: ubuntu 11.04
Please provide any additional information below.
There seems to be some missing variables and functions that do not comply
with there prototype and the way they are called. Example
engines/default_engine/items.c
941 char *item_cachedump(struct default_engine *engine,
942 unsigned int slabs_clsid,
943 unsigned int limit,
944 unsigned int *bytes) {
this when called from daemon/memcached.c it says:
3933 #ifdef FUTURE
3934 buf = item_cachedump(id, limit, &bytes);
3935 #endif
The parameters don't match.