On 29 Sep 1998, Jens Gerlach wrote:
> We want to use ethereal under Solaris 2.6. But there are some problems compiling ethereal. We get the following message :
>
> In file included from packet.c:40:
> packet.h:328: parse error before `*'
> packet.h:338: parse error before `*'
> .... and so on.
>
> We tried to use other versions of ethereal (0.3.15) and gtk (1.0.6, 1.0.5. 1.0.0) in combination. There was no changing. The version of the ggc-Compiler is 2.7.2.
>
> Has anybody expierences compiling and using ethereal under Solaris 2.6.
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.
---------------------------------------------------------------------------
***** ***** Gerald Combs gerald@xxxxxxxxxx
*** *** Spam strangler http://www.unicom.net
* * Unicom Communications, Inc. (913)327-5309
***** 7223 W. 95th St., Ste 325 (913)327-5376 Fax
*** Overland Park, KS 66212 (913)327-5375 Client Support
*
---------------------------------------------------------------------------