Ethereal-users: [ethereal-users] compilation prob.

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

From: Paul Mitchell <pmitchel@xxxxxxxxxxxxx>
Date: Fri, 15 Sep 2000 16:33:14 -0400 (EDT)
Hello, 
 I'm having trouble with util.c:

Making all in svr4
gcc -DHAVE_CONFIG_H -I. -I. -I.   -I. -I./wiretap -I/usr/local/include
-Wall -g -O2 -I. -I./wiretap -I/usr/local/include
-I/usr/local/lib/glib/include -I/usr/local/include -I/usr/openwin/include
-c util.c
util.c: In function `get_interface_list':
util.c:506: storage size of `ifc' isn't known
util.c:507: storage size of `ifrflags' isn't known
util.c:525: sizeof applied to an incomplete type
util.c:539: sizeof applied to an incomplete type
util.c:548: sizeof applied to an incomplete type
util.c:558: dereferencing pointer to incomplete type
util.c:559: dereferencing pointer to incomplete type
util.c:569: dereferencing pointer to incomplete type
util.c:579: dereferencing pointer to incomplete type
util.c:581: sizeof applied to an incomplete type
util.c:585: dereferencing pointer to incomplete type
util.c:592: `IFF_UP' undeclared (first use in this function)
util.c:592: (Each undeclared identifier is reported only once
util.c:592: for each function it appears in.)
util.c:601: dereferencing pointer to incomplete type
util.c:614: `IFF_LOOPBACK' undeclared (first use in this function)
util.c:615: dereferencing pointer to incomplete type
util.c:616: dereferencing pointer to incomplete type
util.c:618: dereferencing pointer to incomplete type
util.c:631: sizeof applied to an incomplete type
util.c:507: warning: unused variable `ifrflags'
util.c:506: warning: unused variable `ifc'
*** Error code 1
make: Fatal error: Command failed for target `util.o'
Current working directory
/afs/isis.unc.edu/home/p/m/pmitchel/ethereal-0.8.12
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory
/afs/isis.unc.edu/home/p/m/pmitchel/ethereal-0.8.12
*** Error code 1
make: Fatal error: Command failed for target `all-recursive-am'
bash-2.04$ 


specifically, it appears to not understand the struct type ifconf

	struct  ifconf ifc;

The only modificatiosn I have made is that I moved pcap.h and bpf.h
locally into the ethereal-0.8.12 directory (and rewrote the include
statements). 

Any ideas?

Note: I'm attempting this on solaris 7 (version 11/99) on a startfire
(Enterprise 10000)

Paul Mitchell
==============================================================================
	Paul Mitchell				
	email: pmitchel@xxxxxxxxxxxxx
	phone: (919) 962-9778
	office: I have an office, room 28, Phillips Hall
==============================================================================