From owner-freebsd-questions Wed Aug 7 12:30:42 2002 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 EFD2C37B400 for ; Wed, 7 Aug 2002 12:30:36 -0700 (PDT) Received: from rutger.owt.com (rutger.owt.com [204.118.6.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C8FB43E4A for ; Wed, 7 Aug 2002 12:30:36 -0700 (PDT) (envelope-from kstewart@owt.com) Received: from owt.com (owt-207-41-94-232.owt.com [207.41.94.232]) by rutger.owt.com (8.9.3/8.9.3) with ESMTP id MAA16326; Wed, 7 Aug 2002 12:30:15 -0700 Message-ID: <3D517547.6020901@owt.com> Date: Wed, 07 Aug 2002 12:30:15 -0700 From: Kent Stewart User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2 X-Accept-Language: en-us, es-mx MIME-Version: 1.0 To: "Jack L. Stone" Cc: brent@kearneys.ca, questions@FreeBSD.ORG Subject: Re: kernel build fails References: <3.0.5.32.20020807134250.02d62db8@mail.sage-one.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Jack L. Stone wrote: > At 11:34 AM 8.7.2002 -0700, Brent Kearney wrote: > >>Hello, >> >>I installed FreeBSD 4.5 from CD, created a custom kernel config, >>ran 'config MYNEWKERNEL', 'cd ../../compile/MYNEWKERNEL ; make >>depend ; make', and the build fails. I updated the sources >>using cvsup, then tried again, (after a 'make clean'), and got >>the same results. >>It does this consistently, and using the 'make buildkernel >>KERNEL=MYNEWKERNEL' method gives the same results (last part >>of the output is below). Something must be missing... Any >>constructive suggestions are most welcome. >> >>Thanks, >> >>Brent >> >> >>cc -c -O -pipe -march=pentium -Wall -Wredundant-decls -Wnested-externs >> > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline > -Wcast-qual -fformat-extensions -ansi -nostdinc -I- -I. -I../.. > -I../../../include -I../../contrib/ipfilter -D_KERNEL -include > opt_global.h -elf -mpreferred-stack-boundary=2 config.c > >>cc -c -O -pipe -march=pentium -Wall -Wredundant-decls -Wnested-externs >> > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline > -Wcast-qual -fformat-extensions -ansi -nostdinc -I- -I. -I../.. > -I../../../include -I../../contrib/ipfilter -D_KERNEL -include > opt_global.h -elf -mpreferred-stack-boundary=2 setdef1.c > >>touch hack.c >>cc -elf -shared -nostdlib hack.c -o hack.So >>rm -f hack.c >>sh ../../conf/newvers.sh MYNEWKERNEL >>cc -c -O -pipe -march=pentium -Wall -Wredundant-decls -Wnested-externs >> > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline > -Wcast-qual -fformat-extensions -ansi -nostdinc -I- -I. -I../.. > -I../../../include -I../../contrib/ipfilter -D_KERNEL -include > opt_global.h -elf -mpreferred-stack-boundary=2 vers.c > >>linking kernel >>umass.o: In function `umass_cam_attach_sim': >>umass.o(.text+0x13af): undefined reference to `cam_simq_alloc' >>umass.o(.text+0x13d5): undefined reference to `cam_sim_alloc' >>umass.o(.text+0x13ee): undefined reference to `xpt_bus_register' >>umass.o(.text+0x13fe): undefined reference to `cam_simq_free' >>umass.o: In function `umass_cam_rescan_callback': >>umass.o(.text+0x141c): undefined reference to `xpt_free_path' >>umass.o: In function `umass_cam_rescan': >>umass.o(.text+0x1469): undefined reference to `xpt_periph' >>umass.o(.text+0x1473): undefined reference to `xpt_create_path' >>umass.o(.text+0x1487): undefined reference to `xpt_setup_ccb' >>umass.o(.text+0x14a2): undefined reference to `xpt_action' >>umass.o: In function `umass_cam_detach_sim': >>umass.o(.text+0x1564): undefined reference to `xpt_bus_deregister' >>umass.o(.text+0x1581): undefined reference to `cam_sim_free' >>umass.o: In function `umass_cam_detach': >>umass.o(.text+0x15c8): undefined reference to `xpt_create_path' >>umass.o(.text+0x15e8): undefined reference to `xpt_async' >>umass.o(.text+0x15f1): undefined reference to `xpt_free_path' >>umass.o: In function `umass_cam_action': >>umass.o(.text+0x1919): undefined reference to `xpt_done' >>umass.o(.text+0x1929): undefined reference to `xpt_done' >>umass.o: In function `umass_cam_cb': >>umass.o(.text+0x1a2d): undefined reference to `xpt_done' >>umass.o: In function `umass_cam_sense_cb': >>umass.o(.text+0x1aa8): undefined reference to `xpt_done' >>umass.o(.text+0x1ab9): undefined reference to `xpt_done' >>*** Error code 1 >> >>Stop in /usr/src/sys/compile/MYNEWKERNEL. >> >> > > This "KERNEL=MYNEWKERNEL" should be KERNCONF=MYNEWKERNEL methinks.....?? Yes, and he also needs to correct his kernel config because he has the USB's umass specified and probably doesn't have scbus and da to go along with it. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message