From owner-freebsd-questions Mon Jan 1 15:48:44 2001 From owner-freebsd-questions@FreeBSD.ORG Mon Jan 1 15:48:39 2001 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from relay3.inwind.it (relay3.inwind.it [212.141.53.74]) by hub.freebsd.org (Postfix) with ESMTP id CCDEA37B400 for ; Mon, 1 Jan 2001 15:48:38 -0800 (PST) Received: from bartequi.ottodomain.org (62.98.170.150) by relay3.inwind.it (5.1.056) id 3A40BF860020C9BA; Tue, 2 Jan 2001 00:47:58 +0100 From: Salvo Bartolotta Date: Mon, 01 Jan 2001 23:49:59 GMT Message-ID: <20010101.23495900@bartequi.ottodomain.org> Subject: Re: Custom Kernel Configuration -> Linker Errors To: Daniel Yoo Cc: freebsd-questions@FreeBSD.ORG References: X-Mailer: SuperCalifragilis X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< On 1/1/01, 10:48:55 PM, Daniel Yoo 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. > # 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) > # 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 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ 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