Jdesk / memcached

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

Solaris 10 compilation fails #179

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Problem:

Compilation fails on Solaris 10 U7 and below.

Error:

cc -DHAVE_CONFIG_H -I.   -I/usr/local/include -xprofile=tcov -mt -g 
-errfmt=error -errwarn -errshort=tags -c -o memcached_debug-memcached.o `test 
-f 'memcached.c' || echo './'`memcached.c
cc: libxprof.so is missing from your system, consult documentation for how to 
obtain it
*** Error code 1
make: Fatal error: Command failed for target `memcached_debug-memcached.o'
Current working directory /usr/distrib/memcached-1.4.5
*** Error code 1

Why it happens:

libxprof.so is not included in Solaris 10 U7 + Solaris Studio 12.2 and below. 
It can be installed only with kernel patch, which can be obtained via Oracle 
paid subscription only.

Solution:

Set "PROFILER_FLAGS" to be empty for Solaris by default, or any other 
workaround solution.

How to reproduce:

Last memcached version on Solaris 10 u6/u7:

1. tar xfv memcached-1.4.5 && cd memcache-1.4.5/
2. ./configure
3. make

Original issue reported on code.google.com by mifatech...@gmail.com on 21 Dec 2010 at 2:51

GoogleCodeExporter commented 9 years ago
Trond, can you verify and fix or close the Solaris issues?

Original comment by dsalli...@gmail.com on 13 Jul 2011 at 1:57

GoogleCodeExporter commented 9 years ago
configure checks for the "tcov" binary during configure, and tries to add 
coverage support if you've got it installed. You should add --disable-coverage 
to disable coverage support (we should probably flip the default value, but 
that should be a separate bug report)

Original comment by trond.no...@gmail.com on 13 Jul 2011 at 12:44