Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Feb 1997 17:36:19 -0700
From:      gerard@holly.colostate.edu
To:        freebsd-questions@freebsd.org
Subject:   kernel compile error - sl, tun
Message-ID:  <3310E283.2606@holly.colostate.edu>

next in thread | raw e-mail | index | archive | help
I'm having problems compiling the kernel. After I config, then 'make
depend'
in compile/MYKERNEL, 'make' runs for awhile then it stops with the
following: 

------------------------------
cc -c -O -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit 
-nostdinc -I. -I../.. -I../../sys -I../../../include -DMYKERNEL
-DI586_CPU -DATAPI -DSYSVMSG -DSYSVSEM -DSYSVSHM -DVISUAL_USERCONFIG
-DUSERCONFIG -DUCONSOLE -DBOUNCE_BUFFERS -DCOMPAT_43 -DPROCFS -DNFS
-DFFS -DKERNEL -Di386 -DLOAD_ADDRESS=0xF0100000  ../../net/if_sl.c
../../net/if_sl.c:101: parse error before `?'
In file included from ../../net/if_sl.c:104:
../../net/slcompress.h:125: field `csu_ip' has incomplete type
../../net/slcompress.h:127: parse error before `}'
../../net/slcompress.h:150: field `tstate' has incomplete type
../../net/slcompress.h:151: field `rstate' has incomplete type
../../net/if_sl.c: In function `slinit':
../../net/if_sl.c:244: structure has no member named `sc_comp'
../../net/if_sl.c: In function `sloutput':
../../net/if_sl.c:452: dereferencing pointer to incomplete type
../../net/if_sl.c:452: `IPPROTO_ICMP' undeclared (first use this
function)
../../net/if_sl.c:452: (Each undeclared identifier is reported only once
../../net/if_sl.c:452: for each function it appears in.)
../../net/if_sl.c:456: dereferencing pointer to incomplete type
../../net/if_sl.c:456: `IPTOS_LOWDELAY' undeclared (first use this
function)
../../net/if_sl.c: In function `slstart':
../../net/if_sl.c:556: dereferencing pointer to incomplete type
../../net/if_sl.c:556: `IPPROTO_TCP' undeclared (first use this
function)
../../net/if_sl.c:559: structure has no member named `sc_comp'
../../net/if_sl.c:485: warning: `ip' might be used uninitialized in this
function
../../net/if_sl.c: In function `slinput':
../../net/if_sl.c:807: `IPVERSION' undeclared (first use this function)
../../net/if_sl.c:821: structure has no member named `sc_comp'
../../net/if_sl.c:827: structure has no member named `sc_comp'
../../net/if_sl.c:861: `ipintrq' undeclared (first use this function)
*** Error code 1

Stop.
-------------------------------------------------------------
Does anyone know what the problem might be? If I comment out the
'pseudo-
device sl 1' line in the kernel, similar messages are displayed
regarding
if_tun.c when it stops. If it helps, I downloaded the ssys.?? files from
ftp.freebsd.org, my computer's a 75 Pentium with very newly installed
2.1.7, and here's the part of MYKERNEL dealing with slip and tun.

pseudo-device   loop
#pseudo-device  ether
pseudo-device   log
pseudo-device   sl      1
# ijppp uses tun instead of ppp device
#pseudo-device  ppp     1
pseudo-device   tun     1
pseudo-device   pty     16
pseudo-device   gzip            # Exec gzipped a.out's


Thanks for any help! GRG



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3310E283.2606>