title: Missing header files on Mac 10.6.8 stop compilation (SNAP software installation)
body: <p>I'm trying to install <a href="http://snap.stanford.edu/" rel="nofollow">Stanford Network Analysis Project</a>.</p>
  
  <p>I work on MacOS 10.6.8. Yesterday I've downloaded the latest compatible version of Xcode (3.1.4) in order to get the GCC package with a C++ compiler.</p>
  
  <p>When I run the "make" command in my Unix Terminal I get hundreds line of errors.</p>
  
  <p>The first one is about a missing file named "poll.h".</p>
  
  <pre><code>make -C snap-core 
  g++ -c -std=c++98 -Wall  -O3 -I/Xcode3.1.4/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/sys -I/Xcode3.1.4/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers Snap.cpp -I../glib-core
  In file included from Snap.h:8,
                   from Snap.cpp:4:
  ../glib-core/base.h:68:24: error: sys/poll.h: No such file or directory
  ../glib-core/base.h:75:21: error: netdb.h: No such file or directory
  ../glib-core/base.h:76:25: error: arpa/inet.h: No such file or directory
  </code></pre>
  
  <p>I've searched on my hard drive where this "poll.h" file was. I can't find it. I can't find netdb.h or inet.h and a few others either.</p>
  
  <p>These files are not the first ones to be included. I'm saying this to make clear that some files are found but some others are missing. This is what actually happen before I encouter the error:</p>
  
  <pre><code>  #include &lt;stdint.h&gt;
    #include &lt;stdarg.h&gt;
    #include &lt;errno.h&gt;
    #include &lt;fcntl.h&gt;
    #include &lt;dirent.h&gt;
    #include &lt;unistd.h&gt;
    #include &lt;signal.h&gt;
    #include &lt;sys/poll.h&gt;
  </code></pre>
  
  <p>As several files are missing I believe I'm missing something big in this issue. Nonethelless I've found out a way to download "poll.h" <a href="http://www.opensource.apple.com/source/xnu/xnu-1456.1.26/bsd/sys/poll.h" rel="nofollow">here</a>. I don't feel comfortable using it... How can I be sure it's the proper file ? What about the other missing files ?</p>
  
  <p>Any suggestion would be really appreciated.</p>
  
  <p>Thanks a lot. Nicolas.</p>