From owner-freebsd-current Sat Feb 21 00:11:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA14552 for freebsd-current-outgoing; Sat, 21 Feb 1998 00:11:25 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from fang.cs.sunyit.edu (root@fang.cs.sunyit.edu [192.52.220.66]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA14546 for ; Sat, 21 Feb 1998 00:11:23 -0800 (PST) (envelope-from perlsta@cs.sunyit.edu) Received: from win95.local.sunyit.edu (A-T34.rh.sunyit.edu [150.156.210.241]) by fang.cs.sunyit.edu (8.8.5/8.7.3) with SMTP id EAA01869 for ; Sat, 21 Feb 1998 04:13:07 GMT Message-ID: <015d01bd3e9f$c40c3b20$0600a8c0@win95.local.sunyit.edu> From: "Alfred Perlstein" To: Subject: weirdness in the header files. Date: Sat, 21 Feb 1998 03:07:29 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG There seems to be some breakage in the header files, specifically trying to compile trafshow i get this: # make >> Checksum OK for trafshow-2.0.tgz. ===> Extracting for trafshow-2.0 ===> Patching for trafshow-2.0 ===> Applying FreeBSD patches for trafshow-2.0 ===> Configuring for trafshow-2.0 ===> Building for trafshow-2.0 cc -O2 -I../include -DETHER_SERVICE -c addrtoname.c cc -O2 -I../include -DETHER_SERVICE -c bpf.c cc -O2 -I../include -DETHER_SERVICE -c bpf_dump.c cc -O2 -I../include -DETHER_SERVICE -c bpf_filter.c cc -O2 -I../include -DETHER_SERVICE -c bpf_image.c cc -O2 -I../include -DETHER_SERVICE -c etherent.c cc -O2 -I../include -DETHER_SERVICE -c gencode.c cc -O2 -I../include -DETHER_SERVICE -c inet.c cc -O2 -I../include -DETHER_SERVICE -c interfaces.c In file included from interfaces.c:26: /usr/include/net/if_slvar.h:69: field `sc_comp' has incomplete type *** Error code 1 Stop. *** Error code 1 Stop. *** Error code 1 Stop. *** Error code 1 Stop. *** Error code 1 Stop. # ok, so i do a bit of looking around (like i'm supposed to i guess) and find out that all i have to do is add to the list of includes. after doing that: cc -O2 -I../include -DETHER_SERVICE -c interfaces.c In file included from interfaces.c:26: /usr/include/net/slcompress.h:124: `MLEN' undeclared here (not in a function) /usr/include/net/slcompress.h:125: field `csu_ip' has incomplete type so i'm like... "hmmmmm, ok.." then i go into slcompress.h and find out this wierdness: #define MAX_HDR MLEN /* XXX 4bsd-ism: should really be 128 */ then later on: struct cstate { struct cstate *cs_next; /* next most recently used cstate (xmit only) */ u_int16_t cs_hlen; /* size of hdr (receive only) */ u_char cs_id; /* connection # associated with this state */ u_char cs_filler; union { char csu_hdr[MAX_HDR]; struct ip csu_ip; /* ip/tcp hdr from most recent packet */ } slcs_u; }; what is going on here? also as far as the second error after including : /usr/include/net/slcompress.h:125: field `csu_ip' has incomplete type what's with that? i couldn't find a struct ip. -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message