From owner-freebsd-questions Fri Jan 24 14:45:51 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1DF6D37B401 for ; Fri, 24 Jan 2003 14:45:48 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id C14E443F79 for ; Fri, 24 Jan 2003 14:45:45 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b125.otenet.gr [212.205.244.133]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id h0OMjeBb009551; Sat, 25 Jan 2003 00:45:40 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.6/8.12.6) with ESMTP id h0OMjdd9030576; Sat, 25 Jan 2003 00:45:39 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.6/8.12.6/Submit) id h0OMjdDC030575; Sat, 25 Jan 2003 00:45:39 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Sat, 25 Jan 2003 00:45:39 +0200 From: Giorgos Keramidas To: Danny Cc: questions@FreeBSD.ORG Subject: Re: 4.7R - Kernel Compile (old way) "Error code 1" Message-ID: <20030124224539.GB84745@gothmog.gr> References: <000701c2c3f8$720d86b0$b701a8c0@BRENIUS.NET> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000701c2c3f8$720d86b0$b701a8c0@BRENIUS.NET> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2003-01-24 17:32, Danny wrote: > Greetings, > > I am trying to build a custom kernel, but I recieved a stop error after > (90% sure it was) executing "make" - based on the "old way" instructions > in the handbook (printed out, but it maybe a release or two old). > > Please let me know if any further information is required. There is nothing wrong with the "old way" if you haven't touched the sources since your last buildworld. You are obviously missing stuff that is required for SCSI support. Try copying GENERIC and making modifications to it one step at a time. Your current config fil is too different for someone to check for missing options :-( > opt_global.h -elf -mpreferred-stack-boundary=2 vers.c linking kernel > scsi_low.o: In function `scsi_low_cam_rescan_callback': > scsi_low.o(.text+0x1e7): undefined reference to `xpt_free_path' > scsi_low.o: In function `scsi_low_rescan_bus_cam': > scsi_low.o(.text+0x233): undefined reference to `xpt_periph' > scsi_low.o(.text+0x23c): undefined reference to `xpt_create_path' > scsi_low.o(.text+0x24f): undefined reference to `xpt_setup_ccb' > scsi_low.o(.text+0x26a): undefined reference to `xpt_action' [...] > *** Error code 1 > > Stop in /usr/src/sys/compile/RANCIDKRN. > rancid# Right now, it seems that you're missing at least "device pass" and related stuff... I'd recommend starting over by: # cd /usr/src/sys/i386/conf # cp GENERIC RANCID then make a few modifications to RANCID and build your kernel: # vi RANCID # config -d /usr/obj/usr/src/sys/RANCID RANCID # cd /usr/obj/usr/src/sys/RANCID # make depend && make clean && make all and move on... - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message