From nobody@FreeBSD.org  Mon Oct 22 19:36:43 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id CFE2B16A417
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 Oct 2007 19:36:43 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id B031A13C4A5
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 Oct 2007 19:36:43 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l9MJaKC8008534
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 Oct 2007 19:36:20 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l9MJaKvI008533;
	Mon, 22 Oct 2007 19:36:20 GMT
	(envelope-from nobody)
Message-Id: <200710221936.l9MJaKvI008533@www.freebsd.org>
Date: Mon, 22 Oct 2007 19:36:20 GMT
From: Abdullah Ibn Hamad Al-Marri <wearabnet@yahoo.ca>
To: freebsd-gnats-submit@FreeBSD.org
Subject: buildkernel is broken for RELENG_6
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         117410
>Category:       kern
>Synopsis:       buildkernel is broken for RELENG_6
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 22 19:40:00 UTC 2007
>Closed-Date:    Tue Oct 30 08:10:46 UTC 2007
>Last-Modified:  Tue Oct 30 08:10:46 UTC 2007
>Originator:     Abdullah Ibn Hamad Al-Marri
>Release:        6.2-STABLE
>Organization:
Arab Portal
>Environment:
FreeBSD bb.wearab.net 6.2-STABLE FreeBSD 6.2-STABLE #0: Sat Oct  6 18:41:15 UTC 2007     arabian@bb.wearab.net:/usr/obj/usr/src/sys/VB  i386
>Description:
Hello,

I can't do buildkernel anymore.

rith -Winline -Wcast-qual  -fformat-extensions -std=c99  -nostdinc -I-  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/dev/ath -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -I/usr/src/sys/dev/em -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Werror  vnode_if.c
:> hack.c
cc -shared -nostdlib hack.c -o hack.So
rm -f hack.c
MAKE=make sh /usr/src/sys/conf/newvers.sh VB
cc -c -O2 -pipe -fno-strict-aliasing  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99  -nostdinc -I-  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/dev/ath -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -I/usr/src/sys/dev/em -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Werror  vers.c
linking kernel
procfs.o(.text+0x254): In function `procfs_init':
: undefined reference to `pfs_create_link'
procfs.o(.text+0x268): In function `procfs_init':
: undefined reference to `pfs_create_dir'
procfs.o(.text+0x283): In function `procfs_init':
: undefined reference to `pfs_create_file'
procfs.o(.text+0x29c): In function `procfs_init':
: undefined reference to `pfs_create_file'
procfs.o(.text+0x2bb): In function `procfs_init':
: undefined reference to `pfs_create_file'
procfs.o(.text+0x2d1): In function `procfs_init':
: undefined reference to `pfs_create_file'
procfs.o(.text+0x2f0): In function `procfs_init':
: undefined reference to `pfs_create_file'
procfs.o(.text+0x309): more undefined references to `pfs_create_file' follow
procfs.o(.text+0x3d8): In function `procfs_init':
: undefined reference to `pfs_create_link'
procfs.o(.text+0x3fb): In function `_procfs_mount':
: undefined reference to `pfs_mount'
procfs.o(.text+0x410): In function `_procfs_init':
: undefined reference to `pfs_init'
procfs.o(.text+0x424): In function `_procfs_uninit':
: undefined reference to `pfs_uninit'
procfs.o(.data+0xa8): undefined reference to `pfs_unmount'
procfs.o(.data+0xac): undefined reference to `pfs_root'
procfs.o(.data+0xb4): undefined reference to `pfs_statfs'
*** Error code 1

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

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

Stop in /usr/src.


Here is my kernel conf

machine         i386
cpu             I686_CPU
ident           VB

options         SCHED_4BSD              # 4BSD scheduler
options         PREEMPTION              # Enable kernel thread preemption
options         INET                    # InterNETworking
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         PROCFS                  # Process filesystem (requires PSEUDOFS)
options         GEOM_GPT                # GUID Partition Tables.
options         COMPAT_43               # Compatible with BSD 4.3 [KEEP THIS!]
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
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          vga             # VGA video card driver

# syscons is the default console driver, resembling an SCO console
device          sc
# PCCARD (PCMCIA) support
# PCMCIA and cardbus bridge support
device          cbb             # cardbus (yenta) bridge
device          pccard          # PC Card (16-bit) bus
device          cardbus         # CardBus (32-bit) bus

# Serial (COM) ports
device          sio             # 8250, 16[45]50 based serial ports

# 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          fxp             # Intel EtherExpress PRO/100B (82557, 82558)
options         DEVICE_POLLING
options         HZ=2000

# Pseudo devices.
device          loop            # Network loopback
device          random          # Entropy device
device          ether           # Ethernet support
device          tun             # Packet tunnel.
device          pty             # Pseudo-ttys (telnet etc)

# 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
device          pf                              # PF OpenBSD packet-filter firewall
device          pflog                           # logging support interface for PF

Here is my make.conf

BATCH=yes
PPP_NOSUID=true         # to build ppp with normal permissions
NO_BLUETOOTH=true       # do not build Bluetooth related stuff
NO_I4B=true             # do not build isdn4bsd package
NO_KERBEROS=true        # do not build and install Kerberos 5 (KTH Heimdal)
NO_LPR=true             # do not build lpr and related programs
NO_MODULES=true         # do not build modules with the kernel
NO_USB=true             # do not build usbd(8) and related programs
NO_ATM=true             # do not build ATM related programs and libraries
NO_GAMES=true           # do not build games (games/ subdir)
NO_UUCP=true             # do not build uucp related programs
WITHOUT_X11=true        # don't build X11 dependencies in ports
KERNCONF=VB
# added by use.perl 2007-03-13 11:00:01
PERL_VER=5.8.8
PERL_VERSION=5.8.8


>How-To-Repeat:
buildkernel
>Fix:
none

>Release-Note:
>Audit-Trail:

From: Maxim Konovalov <maxim@macomnet.ru>
To: Abdullah Ibn Hamad Al-Marri <wearabnet@yahoo.ca>
Cc: bug-followup@freebsd.org
Subject: Re: kern/117410: buildkernel is broken for RELENG_6
Date: Tue, 23 Oct 2007 08:22:24 +0400 (MSD)

 > I can't do buildkernel anymore.
 >
 > Here is my kernel conf
 >
 > options PROCFS # Process filesystem (requires PSEUDOFS)
 --------------------------------------^^^^^^^^^^^^^^^^^^^
 
 -- maxim
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Mon Oct 29 10:01:48 UTC 2007 
State-Changed-Why:  
To submitter: did the recommended fix work for you? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117410 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Tue Oct 30 08:10:33 UTC 2007 
State-Changed-Why:  
Closed at submitter's request. 

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