[2514] in linux-net channel archive

home help back first fref pref prev next nref lref last post

Re: Trying to compile tcpdump >>>

daemon@ATHENA.MIT.EDU (Tigran Aivazian)
Mon Apr 15 22:26:47 1996

Date: 	Sun, 14 Apr 1996 22:50:49 +0000 (GMT)
From: Tigran Aivazian <tigran@zetnet.co.uk>
To: Robert Anthony Nader <naderr@topaz.cqu.edu.au>
cc: linux-net <linux-net@vger.rutgers.edu>
In-Reply-To: <31662F63.5C0040DD@topaz.cqu.edu.au>

On Sat, 6 Apr 1996, Robert Anthony Nader wrote:

(some lines deleted and responce added below)
> 
> Hmm, so I looked around and found tcpdump-3.0.3
> 
>   ftp://ftp.funet.fi/pub/OS/Linux/PEOPLE/Linus/net-source/tools/tcpdump-3.0.3.tar.gz
> 
> 
> So, I unpacked it and did a "make tcpdump"
> 
> and got ...
> 
> n file included from /usr/include/linux/socket.h:6,
>                  from /usr/include/sys/socket.h:5,
>                  from print-egp.c:29:
> /usr/include/linux/uio.h:18: redefinition of `struct iovec'
> make[1]: *** [print-egp.o] Error 1
> make[1]: Leaving directory `/usr/src/tcpdump-3.0.3/tcpdump-3.0'
> cp tcpdump-3.0/tcpdump .
> cp: tcpdump-3.0/tcpdump: No such file or directory
> make: *** [tcpdump] Error 1
> [149][ root@linuxbox: /usr/src/tcpdump-3.0.3/
> #
> 
> 
> So, what's the go? 
> 
> If anyone out there has actually compiled it succesfully could you
> please give me some advice on what needs to be done?
> 
> TIA,
> 
> 
> 	Rob -
> 
> 
Hi Rob,

Yes, its a normal thing that some of print-*.c files will not compile.
Thing is, if you include <sys/socket.h> (and they do) then you have 
struct iovec declaration pulled in from <asm/uio.h> automatically so there
is no need to include <sys/uio.h> as in "conventional" Unices.
So, just coment <sys/uio.h> and it will all compile/work nicely.

Regards,
Tigran.

PS. Btw, thanks for the location of tcpdump-3.0.3 - I'll go and upgrade mine
in a minute.... :)


home help back first fref pref prev next nref lref last post