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

compile error without libconflate #18

Open
liseen opened this issue Sep 7, 2011 · 1 comment
Open

compile error without libconflate #18

liseen opened this issue Sep 7, 2011 · 1 comment

Comments

@liseen
Copy link

liseen commented Sep 7, 2011

Hi,

compile error:
moxi-memcached.o: In function process_stats_proxy_command': memcached.c:(.text+0x7fe3): undefined reference toproxy_stats_dump_timings'

I temporarily solved it by:

diff --git a/memcached.c b/memcached.c
index d967bee..c67f4c4 100644
--- a/memcached.c
+++ b/memcached.c
@@ -2972,7 +2972,9 @@ void process_stats_proxy_command(conn *c, token_t *tokens, const size_t ntokens)
}

 if (ntokens == 4 && strcmp(tokens[2].value, "timings") == 0) {

+#ifdef HAVE_CONFLATE_H
proxy_stats_dump_timings(&append_stats, c);
+#endif
} else {
bool do_all = (ntokens == 3 || strcmp(tokens[2].value, "all") == 0);
struct proxy_stats_cmd_info psci = {

@lxnt
Copy link

lxnt commented Dec 7, 2011

should also #ifdef out #include <agent.h> in memcached.c if libconflate is not installed.

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