remotestorage/rs-serve

"error: ‘EVENT_LOG_DEBUG’ undeclared" while making

mraerino opened this issue · 2 comments

There are 4 errors thrown when I try to compile rs-serve.
I installed all of the dependencies that were given in the readme.

Here is the complete make log when issuing make for the second time:

~/rs-serve$ make
[SUBMODULE] lib/evhtp/
Submodule 'lib/evhtp' () registered for path 'lib/evhtp'
[DEPS] libevhtp
Build Type: Release
Std CFLAGS:  -Wall -fno-strict-aliasing -DPROJECT_VERSION="1.2.5" -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112
Dbg CFLAGS: -g -Wall -fno-strict-aliasing -ggdb
Rel CFLAGS: -O3 -DNDEBUG -Wall -fno-strict-aliasing
-- Configuring done
-- Generating done
-- Build files have been written to: /home/marcus/rs-serve/lib/evhtp/build
make[1]: Entering directory `/home/marcus/rs-serve/lib/evhtp/build'
make[2]: Entering directory `/home/marcus/rs-serve/lib/evhtp/build'
make[3]: Entering directory `/home/marcus/rs-serve/lib/evhtp/build'
make[3]: Leaving directory `/home/marcus/rs-serve/lib/evhtp/build'
[100%] Built target libevhtp
make[2]: Leaving directory `/home/marcus/rs-serve/lib/evhtp/build'
make[1]: Leaving directory `/home/marcus/rs-serve/lib/evhtp/build'
[CC] process/main
src/process/main.c: In function ‘log_event_base_message’:
src/process/main.c:71:8: error: ‘EVENT_LOG_DEBUG’ undeclared (first use in this function)
src/process/main.c:71:8: note: each undeclared identifier is reported only once for each function it appears in
src/process/main.c:74:8: error: ‘EVENT_LOG_MSG’ undeclared (first use in this function)
src/process/main.c:77:8: error: ‘EVENT_LOG_ERR’ undeclared (first use in this function)
src/process/main.c:80:8: error: ‘EVENT_LOG_WARN’ undeclared (first use in this function)
make: *** [src/process/main.o] Error 1

Just tried to reproduce yours and ran into a different one on my box: #9

After I manually defined those missing statics, I ran into the error described in #9