Subject: pkg/36482: mppe-lkm dies on netbsd-4
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <charlie@playlouder.com>
List: pkgsrc-bugs
Date: 06/13/2007 11:55:01
>Number:         36482
>Category:       pkg
>Synopsis:       mppe-lkm dies on netbsd-4
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 13 11:55:01 +0000 2007
>Originator:     Charlie Allom
>Release:        NetBSD 4.0_BETA2
>Organization:
	
>Environment:
	
	
System: NetBSD backspace.state51.co.uk 4.0_BETA2 NetBSD 4.0_BETA2 (BACKSPACE) #1: Fri May 18 11:21:32 UTC 2007 root@backspace.state51.co.uk:/usr/src/netbsd-4/sys/arch/i386/compile/BACKSPACE i386
Architecture: i386
Machine: i386
>Description:
11:52 backspace:~# config -x|grep wi  
# boot messages with MPBIOS, acpi and ioapic can be quite large
acpilid*        at acpi?                # ACPI Lid Switch
###> options    COMPAT_SVR4     # binary compatibility with SVR4
###> options    COMPAT_IBCS2    # binary compatibility with SCO and ISC
###> options    COMPAT_LINUX    # binary compatibility with Linux
###> options    COMPAT_FREEBSD  # binary compatibility with FreeBSD
###> #options   COMPAT_MACH     # binary compatibility with Mach binaries
###> #options   COMPAT_DARWIN   # binary compatibility with Darwin binaries
###> #options   TCP_DEBUG       # Record last TCP_NDEBUG packets with SO_DEBUG
###> #options   ALTQ_RIO        # RED with IN/OUT
###> iwi*       at pci? dev ? function ?        # Intel PRO/Wireless 2200BG
###> wi*        at pci? dev ? function ?        # Intersil Prism Mini-PCI (802.11b)
###> # a machine hang with some controllers.
###> # Flags are used only with controllers that support DMA operations
###> fwip*      at ieee1394if?                  # IP over IEEE1394
###> # the following options are on-by-default to keep

	
>How-To-Repeat:
	===> build-message [mppe-lkm-0.0.4nb2] ===> Building for mppe-lkm-0.0.4nb2
#   compile  mppe-lkm/ppp_mppe_compress.o
cc -O2 -ffreestanding  -fno-strict-aliasing -Wno-pointer-sign  -Werror   -nostdinc -I. -I/home/obj/pkgsrc/net/mppe-lkm/work.backspace/mppe-lkm -isystem /usr/src/sys -isystem /usr/src/sys/arch -isystem /usr/src/sys/../common/include -D_KERNEL -D_LKM  -c    ppp_mppe_compress.c
ppp_mppe_compress.c:23:23: error: sys/cdefs.h: No such file or directory
ppp_mppe_compress.c:24:23: error: sys/param.h: No such file or directory
ppp_mppe_compress.c:25:23: error: sys/types.h: No such file or directory
ppp_mppe_compress.c:26:23: error: sys/systm.h: No such file or directory
ppp_mppe_compress.c:27:24: error: sys/malloc.h: No such file or directory
ppp_mppe_compress.c:28:22: error: sys/mbuf.h: No such file or directory
ppp_mppe_compress.c:32:26: error: net/ppp_defs.h: No such file or directory
ppp_mppe_compress.c:33:26: error: net/ppp-comp.h: No such file or directory
ppp_mppe_compress.c:35:22: error: sys/sha1.h: No such file or directory
ppp_mppe_compress.c:36:30: error: crypto/arc4/arc4.h: No such file or directory
ppp_mppe_compress.c:71: error: field 'stats' has incomplete type
ppp_mppe_compress.c:90: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__P'
ppp_mppe_compress.c:94: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__P'
ppp_mppe_compress.c:95: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__P'
ppp_mppe_compress.c:96: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__P'
ppp_mppe_compress.c:97: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__P'
ppp_mppe_compress.c:99: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__P'
ppp_mppe_compress.c:102: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__P'
ppp_mppe_compress.c:105: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__P'
ppp_mppe_compress.c:108: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__P'
ppp_mppe_compress.c:109: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__P'
ppp_mppe_compress.c:111: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__P'
ppp_mppe_compress.c:112: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__P'
ppp_mppe_compress.c:113: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__P'
ppp_mppe_compress.c: In function 'GetNewKeyFromSHA':
ppp_mppe_compress.c:124: error: 'SHA1_CTX' undeclared (first use in this function)
ppp_mppe_compress.c:124: error: (Each undeclared identifier is reported only once
ppp_mppe_compress.c:124: error: for each function it appears in.)
ppp_mppe_compress.c:124: error: expected ';' before 'Context'
ppp_mppe_compress.c:140: error: 'Context' undeclared (first use in this function)
ppp_mppe_compress.c: In function 'mppe_alloc':
ppp_mppe_compress.c:189: error: 'NULL' undeclared (first use in this function)
ppp_mppe_compress.c:191: error: 'M_DEVBUF' undeclared (first use in this function)
ppp_mppe_compress.c:191: error: 'M_NOWAIT' undeclared (first use in this function)
ppp_mppe_compress.c: In function 'mppe_free':
ppp_mppe_compress.c:220: error: 'M_DEVBUF' undeclared (first use in this function)
ppp_mppe_compress.c: In function 'mppe_init':
ppp_mppe_compress.c:242: error: 'u_char' undeclared (first use in this function)
ppp_mppe_compress.c:242: error: 'ptr' undeclared (first use in this function)
ppp_mppe_compress.c:254: error: 'M_DEVBUF' undeclared (first use in this function)
ppp_mppe_compress.c:254: error: 'M_NOWAIT' undeclared (first use in this function)
cc1: warnings being treated as errors
ppp_mppe_compress.c:254: warning: assignment makes pointer from integer without a cast
ppp_mppe_compress.c:255: error: 'NULL' undeclared (first use in this function)
ppp_mppe_compress.c: At top level:
ppp_mppe_compress.c:332: warning: 'struct mbuf' declared inside parameter list
ppp_mppe_compress.c:332: warning: its scope is only this definition or declaration, which is probably not what you want
ppp_mppe_compress.c: In function 'mppe_compress':
ppp_mppe_compress.c:338: error: 'NULL' undeclared (first use in this function)
ppp_mppe_compress.c:339: error: expected expression before 'unsigned'
ppp_mppe_compress.c:339: warning: assignment makes pointer from integer without a cast
ppp_mppe_compress.c:370: error: 'M_DONTWAIT' undeclared (first use in this function)
ppp_mppe_compress.c:370: error: 'MT_DATA' undeclared (first use in this function)
ppp_mppe_compress.c:380: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:384: error: 'MHLEN' undeclared (first use in this function)
ppp_mppe_compress.c:388: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:389: error: 'MLEN' undeclared (first use in this function)
ppp_mppe_compress.c:398: error: expected expression before 'unsigned'
ppp_mppe_compress.c:398: warning: assignment makes pointer from integer without a cast
ppp_mppe_compress.c:405: error: 'PPP_COMP' undeclared (first use in this function)
ppp_mppe_compress.c:407: error: 'PPP_HDRLEN' undeclared (first use in this function)
ppp_mppe_compress.c:430: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:437: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:442: error: expected expression before 'unsigned'
ppp_mppe_compress.c:442: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:443: error: expected expression before 'unsigned'
ppp_mppe_compress.c:443: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:445: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:447: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:449: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:453: error: expected expression before 'unsigned'
ppp_mppe_compress.c:453: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:454: error: expected expression before 'unsigned'
ppp_mppe_compress.c:454: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:456: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:458: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:464: error: expected expression before 'unsigned'
ppp_mppe_compress.c:464: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:465: error: expected expression before 'unsigned'
ppp_mppe_compress.c:465: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:467: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:468: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:469: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:471: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c: In function 'mppe_comp_stats':
ppp_mppe_compress.c:495: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c: At top level:
ppp_mppe_compress.c:521: warning: 'struct mbuf' declared inside parameter list
ppp_mppe_compress.c: In function 'mppe_decompress':
ppp_mppe_compress.c:531: error: 'DECOMP_ERROR' undeclared (first use in this function)
ppp_mppe_compress.c:534: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:534: error: 'PPP_HDRLEN' undeclared (first use in this function)
ppp_mppe_compress.c:537: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:541: error: expected expression before 'unsigned'
ppp_mppe_compress.c:541: warning: assignment makes pointer from integer without a cast
ppp_mppe_compress.c:578: error: 'DECOMP_FATALERROR' undeclared (first use in this function)
ppp_mppe_compress.c:640: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:640: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:644: error: 'M_DONTWAIT' undeclared (first use in this function)
ppp_mppe_compress.c:644: error: 'MT_DATA' undeclared (first use in this function)
ppp_mppe_compress.c:645: error: 'NULL' undeclared (first use in this function)
ppp_mppe_compress.c:653: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:657: error: 'MHLEN' undeclared (first use in this function)
ppp_mppe_compress.c:661: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:662: error: 'MLEN' undeclared (first use in this function)
ppp_mppe_compress.c:671: error: expected expression before 'unsigned'
ppp_mppe_compress.c:671: warning: assignment makes pointer from integer without a cast
ppp_mppe_compress.c:680: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:710: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:715: error: expected expression before 'unsigned'
ppp_mppe_compress.c:715: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:716: error: expected expression before 'unsigned'
ppp_mppe_compress.c:716: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:718: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:720: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:722: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:726: error: expected expression before 'unsigned'
ppp_mppe_compress.c:726: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:727: error: expected expression before 'unsigned'
ppp_mppe_compress.c:727: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:729: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:731: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:737: error: expected expression before 'unsigned'
ppp_mppe_compress.c:737: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:738: error: expected expression before 'unsigned'
ppp_mppe_compress.c:738: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:740: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:741: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:742: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:744: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:750: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:758: error: 'DECOMP_OK' undeclared (first use in this function)
ppp_mppe_compress.c: At top level:
ppp_mppe_compress.c:768: warning: 'struct mbuf' declared inside parameter list
ppp_mppe_compress.c: In function 'mppe_incomp':
ppp_mppe_compress.c:773: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:774: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c:775: error: dereferencing pointer to incomplete type
ppp_mppe_compress.c: At top level:
ppp_mppe_compress.c:788: error: variable 'ppp_mppe' has initializer but incomplete type
ppp_mppe_compress.c:789: warning: excess elements in struct initializer
ppp_mppe_compress.c:789: warning: (near initialization for 'ppp_mppe')
ppp_mppe_compress.c:790: warning: excess elements in struct initializer
ppp_mppe_compress.c:790: warning: (near initialization for 'ppp_mppe')
ppp_mppe_compress.c:791: warning: excess elements in struct initializer
ppp_mppe_compress.c:791: warning: (near initialization for 'ppp_mppe')
ppp_mppe_compress.c:792: warning: excess elements in struct initializer
ppp_mppe_compress.c:792: warning: (near initialization for 'ppp_mppe')
ppp_mppe_compress.c:793: warning: excess elements in struct initializer
ppp_mppe_compress.c:793: warning: (near initialization for 'ppp_mppe')
ppp_mppe_compress.c:794: warning: excess elements in struct initializer
ppp_mppe_compress.c:794: warning: (near initialization for 'ppp_mppe')
ppp_mppe_compress.c:795: warning: excess elements in struct initializer
ppp_mppe_compress.c:795: warning: (near initialization for 'ppp_mppe')
ppp_mppe_compress.c:796: warning: excess elements in struct initializer
ppp_mppe_compress.c:796: warning: (near initialization for 'ppp_mppe')
ppp_mppe_compress.c:797: warning: excess elements in struct initializer
ppp_mppe_compress.c:797: warning: (near initialization for 'ppp_mppe')
ppp_mppe_compress.c:798: warning: excess elements in struct initializer
ppp_mppe_compress.c:798: warning: (near initialization for 'ppp_mppe')
ppp_mppe_compress.c:799: warning: excess elements in struct initializer
ppp_mppe_compress.c:799: warning: (near initialization for 'ppp_mppe')
ppp_mppe_compress.c:800: warning: excess elements in struct initializer
ppp_mppe_compress.c:800: warning: (near initialization for 'ppp_mppe')
ppp_mppe_compress.c:801: warning: excess elements in struct initializer
ppp_mppe_compress.c:801: warning: (near initialization for 'ppp_mppe')
ppp_mppe_compress.c:802: warning: excess elements in struct initializer
ppp_mppe_compress.c:802: warning: (near initialization for 'ppp_mppe')
*** Error code 1

Stop.
make: stopped in /home/obj/pkgsrc/net/mppe-lkm/work.backspace/mppe-lkm
*** Error code 1

Stop.
make: stopped in /usr/src/pkgsrc/net/mppe-lkm
*** Error code 1

Stop.
make: stopped in /usr/src/pkgsrc/net/mppe-lkm
*** Error code 1

Stop.
make: stopped in /usr/src/pkgsrc/net/mppe-lkm

>Fix:
	

>Unformatted: