Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Nov 2000 11:38:20 +0000
From:      simond@irrelevant.org
To:        rjackson <rjackson@stridernet.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Kernel linking errors
Message-ID:  <20001123113820.A5343@irrelevant.org>
In-Reply-To: <000801c0553f$4acd6810$0200a8c0@eru>; from rjackson@stridernet.com on Thu, Nov 23, 2000 at 03:19:47AM -0800
References:  <000801c0553f$4acd6810$0200a8c0@eru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 23, 2000 at 03:19:47AM -0800, rjackson wrote:
> I keep getting link time errors while building a custom kernel under freeBSD
> 4.1 - Release. I've looked over the configuration file many times. I've
> attached a copy of my configuration. The errors that I get are as follows:
> 
> linking kernel
> umass.o: In function `umass_cam_attach_sim':
> umass.o(.text+0x1273): undefined reference to `cam_simq_alloc'
> umass.o(.text+0x1299): undefined reference to `cam_sim_alloc'
> umass.o(.text+0x12b2): undefined reference to `xpt_bus_register'
> umass.o(.text+0x12c2): undefined reference to `cam_simq_free'
> umass.o: In function `umass_cam_rescan_callback':
> umass.o(.text+0x12db): undefined reference to `xpt_free_path'
> umass.o: In function `umass_cam_rescan':
> umass.o(.text+0x1325): undefined reference to `xpt_periph'
> umass.o(.text+0x132e): undefined reference to `xpt_create_path'
> umass.o(.text+0x1341): undefined reference to `xpt_setup_ccb'
> umass.o(.text+0x135c): undefined reference to `xpt_action'
> umass.o: In function `umass_cam_detach_sim':
> umass.o(.text+0x1413): undefined reference to `xpt_bus_deregister'
> umass.o(.text+0x1431): undefined reference to `cam_sim_free'
> umass.o: In function `umass_cam_detach':
> umass.o(.text+0x1469): undefined reference to `xpt_create_path'
> umass.o(.text+0x1480): undefined reference to `xpt_async'
> umass.o(.text+0x1488): undefined reference to `xpt_free_path'
> umass.o: In function `umass_cam_action':
> umass.o(.text+0x17ad): undefined reference to `xpt_done'
> umass.o(.text+0x17bd): undefined reference to `xpt_done'
> umass.o: In function `umass_cam_cb':
> umass.o(.text+0x18b1): undefined reference to `xpt_done'
> umass.o: In function `umass_cam_sense_cb':
> umass.o(.text+0x1928): undefined reference to `xpt_done'
> umass.o(.text+0x1939): undefined reference to `xpt_done'
> *** Error code 1
> 
> Stop in /usr/src/sys/compile/STRIDER.

Try adding
device scbus
device da

into your kernel config file as they're both required by the umass device
(as you can see if you read the comment next to the umass entry)

-- 
Simon Dick					simond@irrelevant.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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