From owner-freebsd-questions Mon Apr 26 20:57:13 1999 Delivered-To: freebsd-questions@freebsd.org Received: from redhades.photronics.com (redhades.photronics.com [207.77.140.2]) by hub.freebsd.org (Postfix) with ESMTP id 9387A14E8F for ; Mon, 26 Apr 1999 20:57:01 -0700 (PDT) (envelope-from bokui@sin.photronics.com) Received: from nimitz.photronics.com (NIMITZ.PHOTRONICS.COM [192.133.56.23]) by redhades.photronics.com (8.8.8+Sun/8.8.8) with ESMTP id UAA11361; Mon, 26 Apr 1999 20:56:14 -0700 (PDT) Received: from mailsin (mailsin.sin.photronics.com [206.220.68.2]) by nimitz.photronics.com (8.8.8+Sun/8.8.8) with SMTP id UAA18747; Mon, 26 Apr 1999 20:56:07 -0700 (PDT) Received: from sin.photronics.com (linux.sin.photronics.com) by mailsin (4.1/SMI-4.1) id AA21063; Tue, 27 Apr 99 11:56:07 SGT Message-Id: <372616D7.8A407F34@sin.photronics.com> Date: Tue, 27 Apr 1999 11:58:15 -0700 From: Zheng Bokui X-Mailer: Mozilla 4.04 [en] (Win95; I) Mime-Version: 1.0 To: Mark Ovens , Greg Lehey Cc: "freebsd-questions@FreeBSD.ORG" Subject: Re: error recompile kernel References: <3724F75C.EFF92504@sin.photronics.com> <37243007.DD7565B4@uk.radan.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks for all your replies. After reading LINT, I commented out some unnecessary items in the configuration file. This time everything is OK. I got smaller and faster kernel. Regards, Bokui Mark Ovens wrote: > Zheng Bokui wrote: > > > > Hi, > > I just tried to customize my kernel (3.1-stable). After editing the > > configuration file, I did: > > > > # /usr/sbin/config MYKERNEL # MYKERNEL is the new configuration file > > # cd ../../compile/MYKERNEL > > # make depend > > # make > > > > After aroud 20Mins, I got an error. Following is the last few lines: > > > > dpt_scsi.o(.text+0x8c0): undefined reference to `xpt_done' > > dpt_scsi.o: In function `dpt_action': > > dpt_scsi.o(.text+0x8f7): undefined reference to `xpt_print_path' > > dpt_scsi.o(.text+0xa10): undefined reference to `xpt_freeze_simq' > > dpt_scsi.o(.text+0xc5c): undefined reference to `xpt_freeze_simq' > > dpt_scsi.o(.text+0xe65): undefined reference to `xpt_done' > > dpt_scsi.o: In function `dpt_attach': > > dpt_scsi.o(.text+0x1672): undefined reference to `cam_simq_alloc' > > dpt_scsi.o(.text+0x1692): undefined reference to `xpt_bus_deregister' > > dpt_scsi.o(.text+0x16a9): undefined reference to `cam_sim_free' > > dpt_scsi.o(.text+0x16de): undefined reference to `cam_sim_alloc' > > dpt_scsi.o(.text+0x16ec): undefined reference to `xpt_bus_register' > > dpt_scsi.o(.text+0x170a): undefined reference to `xpt_create_path' > > dpt_scsi.o: In function `dpt_intr': > > dpt_scsi.o(.text+0x1a22): undefined reference to `xpt_done' > > dpt_scsi.o: In function `dptprocesserror': > > dpt_scsi.o(.text+0x1bf0): undefined reference to `xpt_done' > > dpt_scsi.o: In function `dpttimeout': > > dpt_scsi.o(.text+0x1c12): undefined reference to `xpt_print_path' > > dpt_scsi.o(.text+0x1c3c): undefined reference to `xpt_print_path' > > *** Error code 1 > > > > Stop. > > > > What's going wrong? Actually I don't need any SCSI support in my kernel. > > > > You appear to have *some* SCSI stuff in your kernel config file. I > *think* the messages you are seeing are caused by ``device dpt0''. > > Post your kernel config file if you still have problems. > > > Thanks in advance, > > Bokui > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > -- > FreeBSD - The Power To Serve http://www.freebsd.org > My Webpage http://www.users.globalnet.co.uk/~markov > _______________________________________________________________ > Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK > CAD/CAM solutions for Sheetmetal Working Industry > mailto:marko@uk.radan.com http://www.radan.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message