Ethereal-dev: [Ethereal-dev] building tethereal under cygwin

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

From: Biot Olivier <Olivier.Biot@xxxxxxxxxxx>
Date: Fri, 27 Jun 2003 13:10:44 +0200
Hi all,

I'm incapable of compiling tethereal under cygwin. The errors I get:

be322008@be1g431c:/home/Administrator/Ethereal/ethereal-0.9.13
$ make tethereal.exe
gcc -DHAVE_CONFIG_H -I. -I. -I.   -I. -I./wiretap -I/usr/local/include
-D_U_="__attribute__((unused))" -Wall -W -g -O2 -I. -I./wiretap
-I/usr/local/include -I/opt/gnome/include/gtk-1.2
-I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/in
clude -I/usr/X11R6/include -c tethereal.c
tethereal.c:170: parse error before '*' token
tethereal.c:171: parse error before "loop_data"
tethereal.c:171: warning: `struct pcap_hdr' declared inside parameter list
tethereal.c:171: warning: its scope is only this definition or declaration,
which is probably not what you want
tethereal.c:172: parse error before "loop_data"
tethereal.c:2524: parse error before '*' token
tethereal.c: In function `adjust_header':
tethereal.c:2526: `ld' undeclared (first use in this function)
tethereal.c:2526: (Each undeclared identifier is reported only once
tethereal.c:2526: for each function it appears in.)
tethereal.c:2528: `rechdr' undeclared (first use in this function)
tethereal.c:2541: `hdr' undeclared (first use in this function)
tethereal.c: At top level:
tethereal.c:2558: parse error before "loop_data"
tethereal.c:2559: warning: `struct pcap_hdr' declared inside parameter list
tethereal.c: In function `pipe_open_live':
tethereal.c:2570: `pipename' undeclared (first use in this function)
tethereal.c:2575: `ld' undeclared (first use in this function)
tethereal.c:2575: `PIPNEXIST' undeclared (first use in this function)
tethereal.c:2577: `errmsg' undeclared (first use in this function)
tethereal.c:2577: `errmsgl' undeclared (first use in this function)
tethereal.c:2580: `PIPERR' undeclared (first use in this function)
tethereal.c:2627: `PCAP_MAGIC' undeclared (first use in this function)
tethereal.c:2633: `PCAP_MODIFIED_MAGIC' undeclared (first use in this
function)
tethereal.c:2639: `PCAP_SWAPPED_MAGIC' undeclared (first use in this
function)
tethereal.c:2646: `PCAP_SWAPPED_MODIFIED_MAGIC' undeclared (first use in
this function)
tethereal.c:2661: sizeof applied to an incomplete type
tethereal.c:2661: warning: comparison of unsigned expression < 0 is always
false
tethereal.c:2662: `hdr' undeclared (first use in this function)
tethereal.c:2663: sizeof applied to an incomplete type
tethereal.c:2688: `STATE_EXPECT_REC_HDR' undeclared (first use in this
function)
tethereal.c:2689: `PIPOK' undeclared (first use in this function)
tethereal.c: At top level:
tethereal.c:2702: parse error before "loop_data"
tethereal.c: In function `pipe_dispatch':
tethereal.c:2706: storage size of `phdr' isn't known
tethereal.c:2711: `ld' undeclared (first use in this function)
tethereal.c:2713: `STATE_EXPECT_REC_HDR' undeclared (first use in this
function)
tethereal.c:2715: sizeof applied to an incomplete type
tethereal.c:2715: sizeof applied to an incomplete type
tethereal.c:2717: `STATE_READ_REC_HDR' undeclared (first use in this
function)
tethereal.c:2721: `fd' undeclared (first use in this function)
tethereal.c:2721: `rechdr' undeclared (first use in this function)
tethereal.c:2735: `STATE_EXPECT_DATA' undeclared (first use in this
function)
tethereal.c:2737: `STATE_READ_DATA' undeclared (first use in this function)
tethereal.c:2741: `data' undeclared (first use in this function)
tethereal.c:2755: `errmsg' undeclared (first use in this function)
tethereal.c:2755: `errmsgl' undeclared (first use in this function)
tethereal.c:2767: `hdr' undeclared (first use in this function)
tethereal.c:2783: warning: implicit declaration of function
`capture_pcap_cb'
tethereal.c:2789: `PIPEOF' undeclared (first use in this function)
tethereal.c:2800: `PIPERR' undeclared (first use in this function)
tethereal.c:2706: warning: unused variable `phdr'
/opt/gnome/include/glib-1.2/glib.h: At top level:
tethereal.c:2560: warning: `pipe_open_live' defined but not used
tethereal.c:2705: warning: `pipe_dispatch' defined but not used
make: *** [tethereal.o] Error 1
be322008@be1g431c:/home/Administrator/Ethereal/ethereal-0.9.13
$

Any idea what's wrong?

Regards,

Olivier