From nobody@FreeBSD.org  Sun Jan 28 09:03:04 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id BBECE16A402
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 28 Jan 2007 09:03:04 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id AC4D813C47E
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 28 Jan 2007 09:03:04 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l0S93497034362
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 28 Jan 2007 09:03:04 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l0S9348g034361;
	Sun, 28 Jan 2007 09:03:04 GMT
	(envelope-from nobody)
Message-Id: <200701280903.l0S9348g034361@www.freebsd.org>
Date: Sun, 28 Jan 2007 09:03:04 GMT
From: Landon Harsh<technical@lantard.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Stop in /usr/src/sys/modules/netgraph/atm/atmbase. on custom kernel build.
X-Send-Pr-Version: www-3.0

>Number:         108468
>Category:       kern
>Synopsis:       [atm] Stop in /usr/src/sys/modules/netgraph/atm/atmbase. on custom kernel build.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    remko
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 28 09:10:22 GMT 2007
>Closed-Date:    Mon Mar 12 08:02:45 GMT 2007
>Last-Modified:  Mon Mar 12 08:02:45 GMT 2007
>Originator:     Landon Harsh
>Release:        6.2-RELEASE
>Organization:
>Environment:
FreeBSD gateway.domain.com 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
===> netgraph/atm/atmbase (all)
cc -O2 -fno-strict-aliasing -pipe -march=pentium3 -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I-  -I/usr/src/sys/modules/netgraph/atm/atmbase/../../../../contrib/ngatm -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/src/sys/GATEWAY/opt_global.h -I. -I@ -I@/contrib/altq -I@/../include -finline-limit=8000 -fno-common -g -I/usr/obj/usr/src/sys/GATEWAY -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -c /usr/src/sys/modules/netgraph/atm/atmbase/../../../../netgraph/atm/ngatmbase.c
cc -O2 -fno-strict-aliasing -pipe -march=pentium3 -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I-  -I/usr/src/sys/modules/netgraph/atm/atmbase/../../../../contrib/ngatm -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/src/sys/GATEWAY/opt_global.h -I. -I@ -I@/contrib/altq -I@/../include -finline-limit=8000 -fno-common -g -I/usr/obj/usr/src/sys/GATEWAY -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -c /usr/src/sys/modules/netgraph/atm/atmbase/../../../../contrib/ngatm/netnatm/misc/unimsg_common.c
cc -O2 -fno-strict-aliasing -pipe -march=pentium3 -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I-  -I/usr/src/sys/modules/netgraph/atm/atmbase/../../../../contrib/ngatm -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/src/sys/GATEWAY/opt_global.h -I. -I@ -I@/contrib/altq -I@/../include -finline-limit=8000 -fno-common -g -I/usr/obj/usr/src/sys/GATEWAY -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -c /usr/src/sys/modules/netgraph/atm/atmbase/../../../../contrib/ngatm/netnatm/misc/straddr.c
cc -O2 -fno-strict-aliasing -pipe -march=pentium3 -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I-  -I/usr/src/sys/modules/netgraph/atm/atmbase/../../../../contrib/ngatm -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/src/sys/GATEWAY/opt_global.h -I. -I@ -I@/contrib/altq -I@/../include -finline-limit=8000 -fno-common -g -I/usr/obj/usr/src/sys/GATEWAY -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -c /usr/src/sys/modules/netgraph/atm/atmbase/../../../../contrib/ngatm/netnatm/msg/traffic.c
cc -O2 -fno-strict-aliasing -pipe -march=pentium3 -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I-  -I/usr/src/sys/modules/netgraph/atm/atmbase/../../../../contrib/ngatm -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/src/sys/GATEWAY/opt_global.h -I. -I@ -I@/contrib/altq -I@/../include -finline-limit=8000 -fno-common -g -I/usr/obj/usr/src/sys/GATEWAY -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -c /usr/src/sys/modules/netgraph/atm/atmbase/../../../../contrib/ngatm/netnatm/msg/uni_ie.c
cc -O2 -fno-strict-aliasing -pipe -march=pentium3 -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I-  -I/usr/src/sys/modules/netgraph/atm/atmbase/../../../../contrib/ngatm -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/src/sys/GATEWAY/opt_global.h -I. -I@ -I@/contrib/altq -I@/../include -finline-limit=8000 -fno-common -g -I/usr/obj/usr/src/sys/GATEWAY -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -c /usr/src/sys/modules/netgraph/atm/atmbase/../../../../contrib/ngatm/netnatm/msg/uni_msg.c
/usr/src/sys/modules/netgraph/atm/atmbase/../../../../contrib/ngatm/netnatm/msg/uni_msg.c: In function `decode_setup':
/usr/src/sys/modules/netgraph/atm/atmbase/../../../../contrib/ngatm/netnatm/msg/uni_msg.c:1390: error: structure has no member named `h$'
*** Error code 1

Stop in /usr/src/sys/modules/netgraph/atm/atmbase.
*** Error code 1

Stop in /usr/src/sys/modules/netgraph/atm.
*** Error code 1

Stop in /usr/src/sys/modules/netgraph.
*** Error code 1

Stop in /usr/src/sys/modules.
*** Error code 1

Stop in /usr/obj/usr/src/sys/GATEWAY.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

This is my first bug report, so hopefully it is really a bug! Sorry if it is user error.
>How-To-Repeat:
Fresh install of 6.2-RELEASE, with base, kernels/generic, info, man.
Ran cvsup-without-gui with the following cvs-supfile configuration:
*default host=cvsup4.us.freebsd.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=RELENG_6_2
*default delete use-rel-suffix
src-all
*default tag=.
ports-all
doc-all

and the following refuse file:
doc/bn_*
doc/da_*
doc/de
doc/de_*
doc/el_*
doc/es
doc/es_*
doc/fr
doc/fr_*
doc/id_*
doc/it
doc/it_*
doc/ja
doc/ja_*
doc/nl
doc/nl_*
doc/no_*
doc/pl_*
doc/pt_*
doc/ro_*
doc/ru
doc/ru_*
doc/sr
doc/sr_*
doc/tr_*
doc/zh
doc/zh_*
ports/arabic
ports/chinese
ports/french
ports/german
ports/hebrew
ports/hungarian
ports/japanese
ports/korean
ports/polish
ports/portuguese
ports/russian
ports/ukrainian
ports/vietnamese

Once cvs finished I configured the following kernel:
machine         i386
cpu             I686_CPU
ident           GATEWAY

makeoptions     DEBUG=-g                # Build kernel with gdb(1) debug symbols

options         SCHED_4BSD              # 4BSD scheduler
options         PREEMPTION              # Enable kernel thread preemption
options         INET                    # InterNETworking
options         INET6                   # IPv6 communications protocols
options         FFS                     # Berkeley Fast Filesystem
options         SOFTUPDATES             # Enable FFS soft updates support
options         UFS_ACL                 # Support for access control lists
options         UFS_DIRHASH             # Improve performance on big directories
options         MD_ROOT                 # MD is a potential root device
options         NFSCLIENT               # Network Filesystem Client
options         NFS_ROOT                # NFS usable as /, requires NFSCLIENT
options         CD9660                  # ISO 9660 Filesystem
options         PROCFS                  # Process filesystem (requires PSEUDOFS)
options         PSEUDOFS                # Pseudo-filesystem framework
options         GEOM_GPT                # GUID Partition Tables.
options         COMPAT_43               # Compatible with BSD 4.3 [KEEP THIS!]
options         COMPAT_FREEBSD4         # Compatible with FreeBSD4
options         COMPAT_FREEBSD5         # Compatible with FreeBSD5
options         SCSI_DELAY=5000         # Delay (in ms) before probing SCSI
options         KTRACE                  # ktrace(1) support
options         SYSVSHM                 # SYSV-style shared memory
options         SYSVMSG                 # SYSV-style message queues
options         SYSVSEM                 # SYSV-style semaphores
options         _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
options         ADAPTIVE_GIANT          # Giant mutex is adaptive.

device          apic                    # I/O APIC

# Bus support.
device          eisa
device          pci

# ATA and ATAPI devices
device          ata
device          atadisk         # ATA disk drives
device          atapicd         # ATAPI CDROM drives
options         ATA_STATIC_ID   # Static device numbering

# atkbdc0 controls both the keyboard and the PS/2 mouse
device          atkbdc          # AT keyboard controller
device          atkbd           # AT keyboard

device          kbdmux          # keyboard multiplexer

device          vga             # VGA video card driver

device          splash          # Splash screen and screen saver support

# syscons is the default console driver, resembling an SCO console
device          sc

device          agp             # support several AGP chipsets

# Add suspend/resume support for the i8254.
device          pmtimer

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device          miibus          # MII bus support
device          rl              # RealTek 8129/8139

# Pseudo devices.
device          loop            # Network loopback
device          random          # Entropy device
device          ether           # Ethernet support
device          sl              # Kernel SLIP
device          ppp             # Kernel PPP
device          tun             # Packet tunnel.
device          pty             # Pseudo-ttys (telnet etc)
device          md              # Memory "disks"
device          gif             # IPv6 and IPv4 tunneling
device          faith           # IPv6-to-IPv4 relaying (translation)

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# Note that 'bpf' is required for DHCP.
device          bpf             # Berkeley packet filter

# OpenBSD PF
device          pf
options         ALTQ
options         ALTQ_PRIQ       # Priority Queuing (PRIQ)
device          pflog
device          pfsync

# USB support
device          uhci            # UHCI PCI->USB interface
device          usb             # USB Bus (required)
device          ugen            # Generic
device          uhid            # "Human Interface Devices"
device          ukbd            # Keyboard

and the following /etc/make.conf:
# added by use.perl 2007-01-27 18:06:23
PERL_VER=5.8.8
PERL_VERSION=5.8.8
# Added by user 2007-01-27
CPUTYPE=pentium3
NO_BLUETOOTH=
NO_GAMES=
NO_SENDMAIL=

I then ran the following:
cd /usr/src
script ~/buildworld
make buildworld
CTRL+D
script ~/buildkernel
make buildkernel KERNCONF=GATEWAY

Error is produced.
>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Feb 13 00:56:48 UTC 2007 
Responsible-Changed-Why:  
This is not i386-specific. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=108468 
State-Changed-From-To: open->feedback 
State-Changed-By: remko 
State-Changed-When: Wed Feb 21 10:45:20 UTC 2007 
State-Changed-Why:  
Hello,  can you try compiling this on a GENERIC kernel? 
I dont have any issues there so you seem to be missing 
an entry in your custom kernel (although I dont see the 
reason for that yet). 


Responsible-Changed-From-To: freebsd-bugs->remko 
Responsible-Changed-By: remko 
Responsible-Changed-When: Wed Feb 21 10:45:20 UTC 2007 
Responsible-Changed-Why:  
Grab the pr 

http://www.freebsd.org/cgi/query-pr.cgi?pr=108468 
State-Changed-From-To: feedback->closed 
State-Changed-By: remko 
State-Changed-When: Mon Mar 12 08:02:44 UTC 2007 
State-Changed-Why:  
feedback timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=108468 
>Unformatted:
