title: MemCache-repcached compile error
body: <p>I'm trying to install <a href="http://sourceforge.net/projects/repcached/" rel="nofollow">repcached - memcached which implemented multi master asynchronous replication feature</a> in it's version memcached-1.2.8-repcached-2.2.1 <a href="http://sourceforge.net/projects/repcached/files/latest/download?source=files" rel="nofollow"><sup><em>Download</em></sup></a>.</p>
  
  <p>I have the following error after running <code>make</code>:</p>
  
  <blockquote>
    <p>make  all-recursive</p>
    
    <p>make<a href="http://sourceforge.net/projects/repcached/files/latest/download?source=files" rel="nofollow">1</a>: Entering directory `/usr/local/src/pro/memcached-1.2.8-repcached-2.2.1'</p>
    
    <p>Making all in doc</p>
    
    <p>make[2]: Entering directory `/usr/local/src/pro/memcached-1.2.8-repcached-2.2.1/doc'</p>
    
    <p>make[2]: Nothing to be done for `all'.</p>
    
    <p>make[2]: Leaving directory `/usr/local/src/pro/memcached-1.2.8-repcached-2.2.1/doc'</p>
    
    <p>make[2]: Entering directory `/usr/local/src/pro/memcached-1.2.8-repcached-2.2.1'</p>
    
    <p>gcc -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -MT memcached-memcached.o -MD -MP -MF 
    .d> eps/memcached-memcached.Tpo -c -o memcached-memcached.o <code>test -f 'memcached.c' || echo 
    './'</code>memcached.c</p>
    
    <p>memcached.c: In function ‘add_iov’:</p>
    
    <p>memcached.c:697: error: ‘IOV_MAX’ undeclared (first use in this function)</p>
    
    <p>memcached.c:697: error: (Each undeclared identifier is reported only once</p>
    
    <p>memcached.c:697: error: for each function it appears in.)</p>
    
    <p>make[2]: <em>*</em> [memcached-memcached.o] Error 1</p>
    
    <p>make[2]: Leaving directory `/usr/local/src/pro/memcached-1.2.8-repcached-2.2.1'</p>
    
    <p>make<a href="http://sourceforge.net/projects/repcached/files/latest/download?source=files" rel="nofollow">1</a>: <em>*</em> [all-recursive] Error 1</p>
    
    <p>make<a href="http://sourceforge.net/projects/repcached/files/latest/download?source=files" rel="nofollow">1</a>: Leaving directory `/usr/local/src/pro/memcached-1.2.8-repcached-2.2.1'</p>
    
    <p>make: <em>*</em> [all] Error 2</p>
  </blockquote>
  
  <p>OS : Centos5.7 64bit</p>
  
  <p>gcc-4.1.2-51.el5</p>
  
  <p>gcc-c++-4.1.2-51.el5</p>
  
  <p>libgcc-4.1.2-51.el5</p>
  
  <p>Note : Memcached and memcache extension for php are already installed</p>
  
  <blockquote>
    <p>root@server[~]# memcached -h</p>
    
    <p>memcached 1.4.5</p>
  </blockquote>
  
  <p>php ext <a href="http://pecl.php.net/get/memcache-2.2.6.tgz" rel="nofollow">http://pecl.php.net/get/memcache-2.2.6.tgz</a></p>