title: ubuntu and libcap (capabilities) undefined reference
body: <p>I'm trying to compile the following minimal C code on ubuntu 10.10:</p>
  
  <pre><code>#include &lt;sys/capability.h&gt;
  
  void main(void)
  {
          cap_t cap;
          cap = cap_get_proc();
  }
  </code></pre>
  
  <p>with <code>gcc -lcap test.c</code> which gives me the following error:</p>
  
  <pre><code>/tmp/ccCQFyXS.o: In function `main':
  test.c:(.text+0x9): undefined reference to `cap_get_proc'
  collect2: ld a retourné 1 code d'état d'exécution
  </code></pre>
  
  <p>I have libcap2-dev and libcap2-bin installed, version 2.21</p>
  
  <pre><code>ls /lib/libcap.*
  /lib/libcap.a  /lib/libcap.so  /lib/libcap.so.2  /lib/libcap.so.2.21
  </code></pre>
  
  <p>The same code with same gcc command build successfully on arch and gentoo</p>
  
  <p>What should I do to get it build on ubuntu too?</p>