JumpingYang / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

Error compiling memcached-1.4.13 with Dtrace support #254

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The touch command probe, used in memcached.c, isn't defined in 
memcached_dtrace.d

What steps will reproduce the problem?
1. configure --enable-dtrace
2. make

The output is:
yur@is1os:~/memcached/memcached-1.4.13$ make
/usr/sbin/dtrace -h -s memcached_dtrace.d
sed -e 's,void \*,const void \*,g' memcached_dtrace.h | \
            sed -e 's,char \*,const char \*,g' | tr '\t' ' ' > mmc_dtrace.tmp
mv mmc_dtrace.tmp memcached_dtrace.h
make  all-recursive
Making all in doc
make  all-am
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -Wall -Werror 
-pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT 
memcached-memcached.o -MD -MP -MF .deps/memcached-memcached.Tpo -c -o 
memcached-memcached.o `test -f 'memcached.c' || echo './'`memcached.c
cc1: warnings being treated as errors
memcached.c: In function ‘process_bin_touch’:
memcached.c:1226: error: implicit declaration of function 
‘MEMCACHED_COMMAND_TOUCH’
*** Error code 1
make: Fatal error: Command failed for target `memcached-memcached.o'

The system is Solaris 11.

The small attached patch fixes the compilation error. 

Original issue reported on code.google.com by yur...@gmail.com on 24 Feb 2012 at 3:59

Attachments:

GoogleCodeExporter commented 9 years ago
fixed in 1.4.14, thanks for the patch!

Original comment by dorma...@rydia.net on 30 Jul 2012 at 9:21