From owner-freebsd-questions Thu Sep 12 13:15:57 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 AF86237B405 for ; Thu, 12 Sep 2002 13:15:50 -0700 (PDT) Received: from smtp.comcast.net (smtp.comcast.net [24.153.64.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 441EC43E72 for ; Thu, 12 Sep 2002 13:15:50 -0700 (PDT) (envelope-from dfolkins@comcast.net) Disposition-notification-to: dfolkins@comcast.net Received: from groovy3xp (pcp01731796pcs.selrsv01.pa.comcast.net [68.83.131.193]) by mtaout06.icomcast.net (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 13 2002)) with SMTP id <0H2C00AP2DMDNP@mtaout06.icomcast.net> for freebsd-questions@FreeBSD.org; Thu, 12 Sep 2002 16:15:49 -0400 (EDT) Date: Thu, 12 Sep 2002 16:15:40 -0400 From: dfolkins Subject: Re: Custom Kernel - Make error To: freebsd-questions@FreeBSD.org Message-id: <002e01c25a99$2a5c8dc0$0a00a8c0@groovy3xp> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Mailer: Microsoft Outlook Express 6.00.2600.0000 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal References: <200209121411.24568.razvan@compu-creations.com> 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 note this line in your kernel config: device umass # Disks/Mass storage - Requires scbus and da it requires devices scbus and da, which are commented out in your kernel config. try uncommenting those devices. -- dfolkins ----- Original Message ----- From: "Razvan Roncov" To: Sent: Thursday, September 12, 2002 4:11 PM Subject: Custom Kernel - Make error I get the following error when I do "make": b2# make cc -c -O -pipe -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 ../../net/if_faith.c ../../net/if_faith.c:103: warning: `faithprefix' declared `static' but never defined cc -c -O -pipe -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 ../../net/if_gif.c ../../net/if_gif.c:107: warning: initialization from incompatible pointer type ../../net/if_gif.c: In function `gif_encapcheck': ../../net/if_gif.c:343: warning: cast discards qualifiers from pointer target type ../../net/if_gif.c: In function `gif_ioctl': ../../net/if_gif.c:540: warning: `dst' might be used uninitialized in this function ../../net/if_gif.c:540: warning: `src' might be used uninitialized in this function cc -c -O -pipe -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 ../../netinet/in_gif.c ../../netinet/in_gif.c: In function `gif_encapcheck4': ../../netinet/in_gif.c:301: warning: cast discards qualifiers from pointer target type cc -c -O -pipe -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 setdef0.c cc -c -O -pipe -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 -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 MYKERNEL cc -c -O -pipe -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+0x12bf): undefined reference to `cam_simq_alloc' umass.o(.text+0x12e5): undefined reference to `cam_sim_alloc' umass.o(.text+0x12fe): undefined reference to `xpt_bus_register' umass.o(.text+0x130e): undefined reference to `cam_simq_free' umass.o: In function `umass_cam_rescan_callback': umass.o(.text+0x1327): undefined reference to `xpt_free_path' umass.o: In function `umass_cam_rescan': umass.o(.text+0x1371): undefined reference to `xpt_periph' umass.o(.text+0x137a): undefined reference to `xpt_create_path' umass.o(.text+0x138d): undefined reference to `xpt_setup_ccb' umass.o(.text+0x13a8): undefined reference to `xpt_action' umass.o: In function `umass_cam_detach_sim': umass.o(.text+0x145f): undefined reference to `xpt_bus_deregister' umass.o(.text+0x147d): undefined reference to `cam_sim_free' umass.o: In function `umass_cam_detach': umass.o(.text+0x14be): undefined reference to `xpt_create_path' umass.o(.text+0x14df): undefined reference to `xpt_async' umass.o(.text+0x14e7): undefined reference to `xpt_free_path' umass.o: In function `umass_cam_action': umass.o(.text+0x1805): undefined reference to `xpt_done' umass.o(.text+0x1815): undefined reference to `xpt_done' umass.o: In function `umass_cam_cb': umass.o(.text+0x1911): undefined reference to `xpt_done' umass.o: In function `umass_cam_sense_cb': umass.o(.text+0x1988): undefined reference to `xpt_done' umass.o(.text+0x1999): undefined reference to `xpt_done' *** Error code 1 Stop in /usr/src/sys/compile/MYKERNEL. Attached is my Kernel's configuration... Please advise as soon as possible on what I can do to successfully compile this kernel. Thank you for your time, Razvan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message