Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Sep 2002 16:15:40 -0400
From:      dfolkins <dfolkins@comcast.net>
To:        freebsd-questions@FreeBSD.org
Subject:   Re: Custom Kernel - Make error
Message-ID:  <002e01c25a99$2a5c8dc0$0a00a8c0@groovy3xp>
References:  <200209121411.24568.razvan@compu-creations.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <razvan@compu-creations.com>
To: <freebsd-questions@FreeBSD.org>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002e01c25a99$2a5c8dc0$0a00a8c0>