From nobody@FreeBSD.org  Mon Oct 14 08:30:55 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2CBD637B404
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 14 Oct 2002 08:30:55 -0700 (PDT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9D5B543EB2
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 14 Oct 2002 08:30:54 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.6/8.12.6) with ESMTP id g9EFUs7R061533
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 14 Oct 2002 08:30:54 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.6/8.12.6/Submit) id g9EFUs3m061532;
	Mon, 14 Oct 2002 08:30:54 -0700 (PDT)
Message-Id: <200210141530.g9EFUs3m061532@www.freebsd.org>
Date: Mon, 14 Oct 2002 08:30:54 -0700 (PDT)
From: Shawn Webb <swebb417@softhome.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Recompile problem in FreeBSD 4.7
X-Send-Pr-Version: www-1.0

>Number:         44056
>Category:       i386
>Synopsis:       Recompile problem in FreeBSD 4.7
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 14 08:40:01 PDT 2002
>Closed-Date:    Mon Oct 14 10:53:34 PDT 2002
>Last-Modified:  Mon Oct 14 10:53:34 PDT 2002
>Originator:     Shawn Webb
>Release:        4.7
>Organization:
Webbsyte Computers
>Environment:
FreeBSD war1.lan 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Wed Oct  9 15:08:34 GMT 2002     root@builder.freebsdmall.com:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
      Can't recompile the kernel. There is some problems within the code:

linking kernel
umass.o: In function `umass_cam_attach_sim':
umass.o(.text+0x137f): undefined reference to `cam_simq_alloc'
umass.o(.text+0x13a5): undefined reference to `cam_sim_alloc'
umass.o(.text+0x13be): undefined reference to `xpt_bus_register'
umass.o(.text+0x13ce): undefined reference to `cam_simq_free'
umass.o: In function `umass_cam_rescan_callback':
umass.o(.text+0x13e7): undefined reference to `xpt_free_path'
umass.o: In function `umass_cam_rescan':
umass.o(.text+0x1431): undefined reference to `xpt_periph'
umass.o(.text+0x143a): undefined reference to `xpt_create_path'
umass.o(.text+0x144d): undefined reference to `xpt_setup_ccb'
umass.o(.text+0x1468): undefined reference to `xpt_action'
umass.o: In function `umass_cam_detach_sim':
umass.o(.text+0x151f): undefined reference to `xpt_bus_deregister'
umass.o(.text+0x153d): undefined reference to `cam_sim_free'
umass.o: In function `umass_cam_detach':
umass.o(.text+0x157e): undefined reference to `xpt_create_path'
umass.o(.text+0x159f): undefined reference to `xpt_async'
umass.o(.text+0x15a7): undefined reference to `xpt_free_path'
umass.o: In function `umass_cam_action':
umass.o(.text+0x18c5): undefined reference to `xpt_done'
umass.o(.text+0x18d5): undefined reference to `xpt_done'
umass.o: In function `umass_cam_cb':
umass.o(.text+0x19d1): undefined reference to `xpt_done'
umass.o: In function `umass_cam_sense_cb':
umass.o(.text+0x1ad8): undefined reference to `xpt_done'
umass.o(.text+0x1ae9): undefined reference to `xpt_done'
umass.o(.text+0x1b03): more undefined references to `xpt_done' follow
*** Error code 1

>How-To-Repeat:
      Add these lines to GENERIC:
# Firewall support
options IPFILTER
options IPFIREWALL
options IPDIVERT
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=200
options IPFIREWALL_DEFAULT_TO_ACCEPT

# Snoop, Snoop
pseudo-device snp       3

options QUOTA
options USER_LDT
# End

Next, compile GENERIC:

cd /usr/src && make buildkernel KERNCONF=GENERIC && make installkernel KERNCONF=GENERIC
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Chris Faulhaber <jedgar@fxp.org>
To: Shawn Webb <swebb417@softhome.net>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: i386/44056: Recompile problem in FreeBSD 4.7
Date: Mon, 14 Oct 2002 12:00:16 -0400

 On Mon, Oct 14, 2002 at 08:30:54AM -0700, Shawn Webb wrote:
 > 
 > >Number:         44056
 > >Category:       i386
 > >Synopsis:       Recompile problem in FreeBSD 4.7
 > 
 > >Description:
 >       Can't recompile the kernel. There is some problems within the code:
 > 
 > linking kernel
 > umass.o: In function `umass_cam_attach_sim':
 > umass.o(.text+0x137f): undefined reference to `cam_simq_alloc'
 > umass.o(.text+0x13a5): undefined reference to `cam_sim_alloc'
 
 from src/sys/i386/conf/GENERIC:
 
 device          umass           # Disks/Mass storage - Requires scbus and da
                                                        ^^^^^^^^^^^^^^^^^^^^^
 -- 
 Chris D. Faulhaber - jedgar@fxp.org - jedgar@FreeBSD.org
 --------------------------------------------------------
 FreeBSD: The Power To Serve   -   http://www.FreeBSD.org
State-Changed-From-To: open->closed 
State-Changed-By: ceri 
State-Changed-When: Mon Oct 14 10:52:45 PDT 2002 
State-Changed-Why:  
Pilot error. 
Please ensure you have both scbus and da enabled in your kernel 
configuration file if you want to use umass. 

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