Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 254 by [email protected]: Error compiling memcached-1.4.13 with Dtrace support
http://code.google.com/p/memcached/issues/detail?id=254

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.

Attachments:
        mc-dtrace.diff  833 bytes

Reply via email to