title: Solaris make error - ld: fatal: library -luutil: not found
body: <p>Hi guys hoping some of you solaris wizards might be able to point me in the right direction...</p>
  <p>Background:
  I'm compiling a program that makes use of some of the zfs CLI code. (found here: <a href="https://github.com/illumos/illumos-gate/tree/master/usr/src/cmd/zfs" rel="nofollow noreferrer">https://github.com/illumos/illumos-gate/tree/master/usr/src/cmd/zfs</a>)</p>
  <p>Problem:
  <code>libuutil.so.1</code> is present in <code>/usr/lib</code> but if I try to compile like so...</p>
  <blockquote>
  <p>$ gcc -lzfs -L/usr/lib -luutil -lnvpair</p>
  <p>ld: fatal: library -luutil: not found</p>
  </blockquote>
  <p>Can anyone suggest a fix? Or a reason that the lib is not being found?</p>
  <p>Thanks guys!</p>