Problem in installing Memcache in linux( RHEL)

15 views
Skip to first unread message

rajiv

unread,
Sep 4, 2009, 6:45:52 AM9/4/09
to memcached
Hi All,
I am facing problem in installing memcache on RHEL. It is
giving error in Make command. I am pasting the error of the command
below. Please help me out.

mcached_debug-stats.o memcached_debug-util.o memcached_debug-cache.o -
lgcov -levent
/usr/bin/ld: cannot find -lgcov
collect2: ld returned 1 exit status
make[2]: *** [memcached-debug] Error 1
make[2]: Leaving directory `/root/memcached-1.4.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/memcached-1.4.1'
make: *** [all] Error 2


Regards
Rajiv

Trond Norbye

unread,
Sep 4, 2009, 7:23:54 AM9/4/09
to memc...@googlegroups.com
Please file an issue at http://code.google.com/p/memcached/issues/list

We don't have a builder running RHEL, so we cannot detect such
problems before releasing. If you would like us to test on RHEL during
development, please consider hosting a builder for us. For more
information about builders, check out: http://code.google.com/p/memcached/wiki/BuildFarm

To fix the build you are doing, pass --disable-coverage to configure.

Cheers,

Trond

Vladimir

unread,
Sep 4, 2009, 9:54:34 AM9/4/09
to memc...@googlegroups.com
Building either 1.4.0 on 1.4.1 on Centos 5 i386 yields following error

memcached.c:3845:1: error: embedding a directive within macro arguments is
not portable
memcached.c:3851:1: error: embedding a directive within macro arguments is
not portable
make[2]: *** [memcached-memcached.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/memcached-slabs.Tpo .deps/memcached-slabs.Po
make[2]: Leaving directory `/usr/src/redhat/BUILD/memcached-1.4.1'


make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/usr/src/redhat/BUILD/memcached-1.4.1'


make: *** [all] Error 2

error: Bad exit status from /var/tmp/rpm-tmp.92037 (%build)

Doing the same on Centos 5 x86_64 works fine. Fix is relatively simple.
Move out the #if defined out of printf e.g.

--- memcached.c 2009-08-29 19:00:58.000000000 -0400
+++ memcached.c.fix 2009-09-04 09:51:43.000000000 -0400
@@ -3840,16 +3840,15 @@
"-i print memcached and libevent license\n"
"-P <file> save PID in <file>, only used with -d option\n"
"-f <factor> chunk size growth factor (default: 1.25)\n"
- "-n <bytes> minimum space allocated for key+value+flags
(default: 48)\n"
+ "-n <bytes> minimum space allocated for key+value+flags
(default: 48)\n");

#if defined(HAVE_GETPAGESIZES) && defined(HAVE_MEMCNTL)
- "-L Try to use large memory pages (if available).
Increasing\n"
+ printf("-L Try to use large memory pages (if available).
Increasing\n"
" the memory page size could reduce the number of
TLB misses\n"
" and improve the performance. In order to get
large pages\n"
" from the OS, memcached will allocate the total
item-cache\n"
- " in one large chunk.\n"
+ " in one large chunk.\n");
#endif
- );

printf("-D <char> Use <char> as the delimiter between key
prefixes and IDs.\n"
" This is used for per-prefix stats reporting.
The default is\n"

Dustin

unread,
Sep 4, 2009, 12:23:05 PM9/4/09
to memcached

This looks helpful (though we don't have any builders that reproduce
it).

Please file a bug.

And in general, please don't use the reply button to start a new
topic. It's kind of rude to hijack someone else's thread for
something unrelated.

Vladimir Vuksan

unread,
Sep 4, 2009, 12:34:25 PM9/4/09
to memcached
My mistake. I should have started a new message. Forgot about References.

Vladimir

Reply all
Reply to author
Forward
0 new messages