title: c - initialization makes integer from pointer without a cast and 2 more compiler errors
body: <p>so I'm getting this warning:</p>
  
  <pre><code>initialization makes integer from pointer without a cast
  </code></pre>
  
  <p>in the following piece of code:</p>
  
  <pre><code>void receive(u_char *args, const struct pcap_pkthdr *pkthdr, const u_char *buffer)
  
  {
  
  const int one = 1;
  
  int LEN = args;      /* THIS IS THE LINE */
  
  struct ipheader *ip;
  
  struct tcpheader *tcp;
  </code></pre>
  
  <p>and to be honest little newbie me is not sure what to do as almost all searches return <code>makes pointer from integer</code>.</p>
  
  <p>I'm also getting these compiler messages:</p>
  
  <pre><code>/tmp/cci6u7NH.o: In function `main':
  ChannelBunny.c:(.text+0x448): undefined reference to `pthread_create'
  ChannelBunny.c:(.text+0x4b7): undefined reference to `pthread_join'
  /tmp/cci6u7NH.o: In function `receive':
  ChannelBunny.c:(.text+0xcb6): undefined reference to `nthol'
  ChannelBunny.c:(.text+0xcdf): undefined reference to `nthol'
  collect2: ld returned 1 exit status
  </code></pre>
  
  <p>got rid of a similar pcap problem by using <code>-l pcap</code> but that didn't work for the other two. It just returned:</p>
  
  <pre><code>gcc: pthread: No such file or directory
  gcc: nthol: No such file or director
  </code></pre>
  
  <p>I'm guessing I have to download something? or is there another command I have to use. (I'm using Backtrack5 if that's of any use to you).</p>