Ethereal-users: Re: [ethereal-users] Trouble compling ethereal

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Jens Gerlach" <jge@xxxxxxxxxxx>
Date: 6 Oct 1998 07:34:50 -0000
Gerald Combs wrote:

>   I think I've been able to duplicate the problem.  Normally, ethereal
> compiles fine on the Solaris 2.5.1 and 2.6 systems where I work, but if I
> include packet.h before pcap.h in capture.c, I get the same errors.  When
> I include sys/types.h, everything starts working again.  Could you add
> "#include <sys/types.h>" to the beginning of packet.h, and let me know if
> it fixes the problem?  It looks like I've been a bit sloppy with headers. 
> 
>   BTW, you might want to make sure the output of "gcc -v" matches the
> version of Solaris you're running.  If it doesn't, compiler errors like
> this can sometimes crop up.


Thank you for the tip!! I've done the changes in packet.h and the compiler run's without error's and warnings. In the prexious state I had some warnings on different places in the source. 

But I had found another problem, sure it could be a problem of our installation. I' ve got a tip from Dennis Edmonds to check the version of libpcap. I searched a little bit in this direction and found out that on some machines of our pool the configure-program of libpcap uses flex and some lex. This is a main difference, because when I'm using flex the libpcap is even produced, but the following compile-runs of other programs are not clean of error's. In the last state of my test's I always used lex. 

Thank you for your help

Jens Gerlach


-----
See the original message at http://www.egroups.com/list/ethereal-users/?start=20
--
Free e-mail group hosting at http://www.eGroups.com/