Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Feb 1998 03:07:29 -0500
From:      "Alfred Perlstein" <perlsta@cs.sunyit.edu>
To:        <current@FreeBSD.ORG>
Subject:   weirdness in the header files.
Message-ID:  <015d01bd3e9f$c40c3b20$0600a8c0@win95.local.sunyit.edu>

next in thread | raw e-mail | index | archive | help
    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 <net/slcompress.h> 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 <net/slcompress.h>:
/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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?015d01bd3e9f$c40c3b20$0600a8c0>