Ethereal-dev: [Ethereal-dev] Problems compiling Ethereal 0.9.6 under win32

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

From: KERANGUEVEN Denis OCISI <denis.kerangueven@xxxxxxxxxxxxxxxxx>
Date: Wed, 25 Sep 2002 11:48:30 +0200
Hi evrybody,
 
I'm trying to compile Ethereal 0.9.6 under win 98. I use VC 6 and Cygwin.
 
While compiling I got the following error messages :
 
 
packet-cosine.c(85) : error C2198: 'proto_tree_add_uint' : too few actual parame
ters
packet-cosine.c(87) : error C2039: 'cosine' : is not a member of 'wtap_pseudo_he
ader'
packet-cosine.c(87) : error C2039: 'cosine' : is not a member of 'wtap_pseudo_he
ader'
        wiretap/wtap.h(301) : see declaration of 'wtap_pseudo_header'
packet-cosine.c(88) : error C2065: 'COSINE_ENCAP_ETH' : undeclared identifier
packet-cosine.c(88) : error C2051: case _expression_ not constant
packet-cosine.c(90) : error C2065: 'COSINE_ENCAP_ATM' : undeclared identifier
packet-cosine.c(90) : error C2051: case _expression_ not constant
packet-cosine.c(91) : error C2065: 'COSINE_ENCAP_PPoATM' : undeclared identifier
 
packet-cosine.c(91) : error C2051: case _expression_ not constant
packet-cosine.c(94) : error C2065: 'COSINE_ENCAP_PPP' : undeclared identifier
packet-cosine.c(94) : error C2051: case _expression_ not constant
packet-cosine.c(95) : error C2065: 'COSINE_ENCAP_FR' : undeclared identifier
packet-cosine.c(95) : error C2051: case _expression_ not constant
packet-cosine.c(96) : error C2065: 'COSINE_ENCAP_PPoFR' : undeclared identifier
packet-cosine.c(96) : error C2051: case _expression_ not constant
packet-cosine.c(99) : error C2065: 'COSINE_ENCAP_HDLC' : undeclared identifier
packet-cosine.c(99) : error C2051: case _expression_ not constant
packet-cosine.c(100) : error C2039: 'cosine' : is not a member of 'wtap_pseudo_h
eader'
        wiretap/wtap.h(301) : see declaration of 'wtap_pseudo_header'
packet-cosine.c(100) : error C2065: 'COSINE_DIR_TX' : undeclared identifier
packet-cosine.c(103) : error C2039: 'cosine' : is not a member of 'wtap_pseudo_h
eader'
        wiretap/wtap.h(301) : see declaration of 'wtap_pseudo_header'
packet-cosine.c(103) : error C2065: 'COSINE_DIR_RX' : undeclared identifier
packet-cosine.c(113) : error C2039: 'cosine' : is not a member of 'wtap_pseudo_h
eader'
        wiretap/wtap.h(301) : see declaration of 'wtap_pseudo_header'
packet-cosine.c(114) : error C2051: case _expression_ not constant
packet-cosine.c(118) : error C2051: case _expression_ not constant
packet-cosine.c(119) : error C2051: case _expression_ not constant
packet-cosine.c(123) : error C2051: case _expression_ not constant
packet-cosine.c(127) : error C2051: case _expression_ not constant
packet-cosine.c(128) : error C2039: 'cosine' : is not a member of 'wtap_pseudo_h
eader'
        wiretap/wtap.h(301) : see declaration of 'wtap_pseudo_header'
packet-cosine.c(131) : error C2039: 'cosine' : is not a member of 'wtap_pseudo_h
eader'
        wiretap/wtap.h(301) : see declaration of 'wtap_pseudo_header'
packet-cosine.c(136) : error C2051: case _expression_ not constant
packet-cosine.c(137) : error C2051: case _expression_ not constant
packet-cosine.c(141) : error C2065: 'COSINE_ENCAP_TEST' : undeclared identifier
packet-cosine.c(141) : error C2051: case _expression_ not constant
packet-cosine.c(142) : error C2065: 'COSINE_ENCAP_UNKNOWN' : undeclared identifi
er
packet-cosine.c(142) : error C2051: case _expression_ not constant
packet-cosine.c(192) : error C2065: 'WTAP_ENCAP_COSINE' : undeclared identifier
packet-frame.c
packet-frame.c(109) : error C2065: 'WTAP_ENCAP_DOCSIS' : undeclared identifier
Generating Code...
NMAKE : fatal error U1077: '"c:\program files\Microsoft Visual Studio\Vc98\bin\c
l.exe"' : return code '0x2'
Stop.
 
----------------------------------------------------------------------------------------------------------------------------
Does somebody have an idea ?
 
I'm able to compile Ethereal 0.9.5.
 
"Packet-cosine.c" had been added in the lattest version. Some variables don't seem to be initialized. Can somebody help me ?
 
Thank you very much for your help,
 
Regards,
 
Denis Kerangueven.