title: "undefined reference to `strnstr'" when installing cminpack
body: <p>I am installing <a href="http://devernay.free.fr/hacks/cminpack/cminpack.html" rel="nofollow">cminpack</a> 1.1.2 on a clean install of Ubuntu 10.10.</p>
  
  <p>When running <code>sudo make</code> in the cminpack folder, the folloing error occurs at 52%:</p>
  
  <pre>
  [ 52%] Building C object examples/CMakeFiles/genf77tests.dir/genf77tests.c.o
  /usr/lib/cminpack-1.1.2/examples/genf77tests.c: In function ‘main’:
  /usr/lib/cminpack-1.1.2/examples/genf77tests.c:44: warning: assignment makes pointer from integer without a cast
  /usr/lib/cminpack-1.1.2/examples/genf77tests.c:86: warning: comparison between pointer and integer
  Linking C executable genf77tests
  CMakeFiles/genf77tests.dir/genf77tests.c.o: In function `main':
  genf77tests.c:(.text+0xb5): undefined reference to `strnstr'
  genf77tests.c:(.text+0x2a9): undefined reference to `strnstr'
  collect2: ld returned 1 exit status
  make[2]: *** [examples/genf77tests] Error 1
  make[1]: *** [examples/CMakeFiles/genf77tests.dir/all] Error 2
  make: *** [all] Error 2
  </pre>
  
  <p>I have looked inside <code>genf77tests.c</code>, and <code>#include &lt;string.h&gt;</code> is present, so I don't see why there is a problem finding <code>strnstr</code>.</p>
  
  <p>Is there anything I can do to fix this issue?</p>