Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Jan 2001 23:49:59 GMT
From:      Salvo Bartolotta <bartequi@inwind.it>
To:        Daniel Yoo <danny@vkpc.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Custom Kernel Configuration -> Linker Errors
Message-ID:  <20010101.23495900@bartequi.ottodomain.org>
References:  <Pine.BSF.4.30.0101011326490.33593-100000@vkpc.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 1/1/01, 10:48:55 PM, Daniel Yoo <danny@vkpc.com> wrote regarding=20
Custom
Kernel Configuration -> Linker Errors:


> Happy New Years everyone!

> I'm posting to this list b/c I have been trying to create a more
slimmed
> down version of the 4.1 kernel, and it was a course of action
suggested by
> the on-line handbook.

> I have included my new configuration below. As you can see, there is
> nothing drastic. I have simply removed the SCSI references, and a bit
here
> and there. The problem is that when I do a make, I get linker errors:

> 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/MYKERNEL.



<snip>



> # SCSI Controllers
> #device               ahb             # EISA AHA1742 family
> #device               ahc             # AHA2940 and onboard AIC7xxx
devices
> #device               amd             # AMD 53C974 (Teckram DC-390(T))=

> #device               isp             # Qlogic family
> #device               ncr             # NCR/Symbios Logic
> #device               sym             # NCR/Symbios Logic (newer
chipsets)
> #options              SYM_SETUP_LP_PROBE_MAP=3D0x40
>                               # Allow ncr to attach legacy NCR devices=

when
>                               # both sym and ncr are configured

> #device               adv0    at isa?
> #device               adw
> #device               bt0     at isa?
> #device               aha0    at isa?
> #device               aic0    at isa?




> # SCSI peripherals
> #device               scbus           # SCSI bus (required)
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^



> #device               da              # Direct Access (disks)
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


> #device               sa              # Sequential Access (tape etc)
> #device               cd              # CD
> #device               pass            # Passthrough device (direct
SCSI access)


<snip>


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



> device                umass           # Disks/Mass storage - Requires
scbus and da
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^

<snip>


Incidentally, in a custom kernel, you may wish to include those
options/devices you actually use, or plan to use.=20

Small is beautiful...

Best wishes and best of luck,
Salvo





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?20010101.23495900>