Ethereal-dev: [jw@xxxxxxxx: Re: [ethereal-dev] compilation-error with ethereal 0.8.2]
Apparently the SuSE 6.3 pcap.h file uses a struct bpf_timeval...
--gilbert
----- Forwarded message from Jan Windischmann <jw@xxxxxxxx> -----
Received: from mail.intraregio.net (naumburg.intraregio.net [193.158.118.18]) by paat.pair.com (8.9.1/8.6.12) with SMTP id KAA14304 for <gram@xxxxxxxxxx>; Wed, 26 Jan 2000 10:58:18 -0500 (EST)
X-Envelope-To: <gram@xxxxxxxxxx>
Received: (qmail 4835 invoked from network); 26 Jan 2000 15:58:11 -0000
Received: from host-n34.take.net (HELO sleipnir.take.net) (193.158.118.162)
by naumburg.intraregio.net with SMTP; 26 Jan 2000 15:58:11 -0000
Received: from localhost (erwin@localhost)
by sleipnir.take.net (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id QAA22885
for <gram@xxxxxxxxxx>; Wed, 26 Jan 2000 16:57:11 +0100
Date: Wed, 26 Jan 2000 16:57:07 +0100 (CET)
From: Jan Windischmann <jw@xxxxxxxx>
X-Sender: erwin@xxxxxxxxxxxxxxxxx
To: Gilbert Ramirez <gram@xxxxxxxxxx>
Subject: Re: [ethereal-dev] compilation-error with ethereal 0.8.2
In-Reply-To: <20000126070138.A17455@xxxxxxxxxx>
Message-ID: <Pine.LNX.4.21.0001261636150.22817-100000@xxxxxxxxxxxxxxxxx>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=iso-8859-1
Content-Transfer-Encoding: QUOTED-PRINTABLE
On Wed, 26 Jan 2000, Gilbert Ramirez wrote:
Hello again!
> > capture.c: In function `capture_pcap_cb':
> > capture.c:856: incompatible types in assignment
> Can you show us the pcap_pkthdr in your pcap.h (/usr/include/pcap.h ???)
Thx a lot! That was the right tip.
> Mine is:
>=20
> struct pcap_pkthdr {
> struct timeval ts; /* time stamp */
> bpf_u_int32 caplen; /* length of portion present */
> bpf_u_int32 len; /* length this packet (off wire) */
> };
There are some differences between yours and the pcap.h, which
comes with SuSE6.3:
struct pcap_pkthdr {
struct bpf_timeval ts;/* time stamp */
bpf_u_int32 caplen;/* length of portion present */
bpf_u_int32 len;/* length this packet (off wire) */
#ifdef linux
int ifindex;
unsigned short protocol;
unsigned char pkt_type;
#ifndef NO_SMP_DEBUG
unsigned char cpu1, cpu2;
#endif
#endif
};
I solved the compilation-problem. The reason was my stupidity.
Some months ago, I patched and installed the libpcap, but I only
made a silly "make install" and forgot a "make install-incl" so
the SuSE pcap.h was still placed in /usr/include and wasn=B4t
overwritten. :-(
Now after copying the new pcap.h, the compilation of ethereal0.8.2
was successful and the program works fine. :)
Sorry for wasting your time and sorry for my horrible English too!
With best regards from Germany,
Jan!
----- End forwarded message -----