kr/beanstalkd — Issue #80: issue installing beanstalkd 
Author: kjtech
Created: 2011-10-20 20:30:39+00:00
State: open

Please reference: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=632490

> Trying to build beanstalkd, I get:
>
> | gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -Werror -I/usr/include -c -o tube.o tube.c
> | In file included from /usr/include/event2/event.h:48:0,
> | from /usr/include/event.h:192,
> | from conn.h:23,
> | from prot.h:22,
> | from tube.c:25:
> | /usr/include/stdio.h:417:12: error: expected identifier or ‘(’ before ‘void’
> | /usr/include/stdio.h:417:12: error: expected ‘)’ before numeric constant
> | make[2]: *** [tube.o] Error 1

It's an issue with the function "dprintf" used within beanstalkd. As a temporary workaround I just changed all references to dprintf in util.h and prot.c to an alternate name (I used ddprintf because I lack imagination, but anything that doesn't clash with event should work).