Subject: Re: tcpdump.org
To: Hubert Feyrer <hubert.feyrer@rz.uni-regensburg.de>
From: Ignatios Souvatzis <ignatios@cs.uni-bonn.de>
List: tech-net
Date: 10/08/1999 10:25:48
On Fri, Oct 08, 1999 at 04:37:08AM +0200, Hubert Feyrer wrote:
> On Thu, 7 Oct 1999, Michael Richardson wrote:
> >   In other news... I finally registered tcpdump.org and set things up.
> 
> on 1.4.1/sparc, I get for libpcap:
> 
> ...
> gcc -O2 -I. -DHAVE_MALLOC_H=1 -DHAVE_SYS_IOCCOM_H=1 -DHAVE_SYS_SOCKIO_H=1
> -DHAVE
> _ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_SOCKADDR_SA_LEN=1 -DLBL_ALIGN=1
> -c ./n
> ametoaddr.c
> ./nametoaddr.c:334: conflicting types for `ether_hostton'
> /usr/include/net/if_ether.h:190: previous declaration of `ether_hostton'
> *** Error code 1
> 
> tcpdump builds fine, but can't link with the libpcap not built. (it links
> fine against NetBSD's libpcap)

Well, you should diff this against NetBSD's, and find out what changed in
our code. E.g., if libpcap insists to declare standard functions itself, 
and differently (e.g., using "char" instead of "u_int8_t") it is going to
fail.

	-is

-- 
 * Progress (n.): The process through which Usenet has evolved from
   smart people in front of dumb terminals to dumb people in front of
   smart terminals.  -- obs@burnout.demon.co.uk (obscurity)