Date: Fri, 24 Jan 2003 17:32:14 -0500 From: "Danny" <lists@brenius.com> To: <questions@freebsd.org> Subject: 4.7R - Kernel Compile (old way) "Error code 1" Message-ID: <000701c2c3f8$720d86b0$b701a8c0@BRENIUS.NET>
next in thread | raw e-mail | index | archive | help
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. Thank you for your time and assistance! $ uname -a FreeBSD rancid 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Wed Oct 9 15:08:34 GMT 2002 root@builder.freebsdmall.com:/usr/obj/usr/src/sys/GENERIC i386 -------start of custom kernel - this line is not included in config----- # # GENERIC -- Generic kernel configuration file for FreeBSD/i386 # # For more information on this file, please read the handbook section on # Kernel Configuration Files: # # http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-c onfig.html # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ./LINT configuration file. If you are # in doubt as to the purpose or necessity of a line, check first in LINT. # # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.246.2.48 2002/08/31 20:28:26 obrien Exp $ machine i386 cpu I586_CPU cpu I686_CPU ident GENERIC maxusers 0 #makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols options MATH_EMULATE #Support for x87 emulation options INET #InterNETworking options FFS #Berkeley Fast Filesystem options FFS_ROOT #FFS usable as root device [keep this!] options SOFTUPDATES #Enable FFS soft updates support options UFS_DIRHASH #Improve performance on big directories options MFS #Memory Filesystem options MD_ROOT #MD is a potential root device options NFS #Network Filesystem options NFS_ROOT #NFS usable as root device, NFS required options MSDOSFS #MSDOS Filesystem options CD9660 #ISO 9660 Filesystem options CD9660_ROOT #CD-ROM usable as root, CD9660 required options PROCFS #Process filesystem options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] options SCSI_DELAY=15000 #Delay (in ms) before probing SCSI options UCONSOLE #Allow users to grab the console options USERCONFIG #boot -c editor options VISUAL_USERCONFIG #visual boot -c editor options KTRACE #ktrace(1) support options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options P1003_1B #Posix P1003_1B real-time extensions options _KPOSIX_PRIORITY_SCHEDULING options ICMP_BANDLIM #Rate limit bad replies options KBD_INSTALL_CDEV # install a CDEV entry in /dev options AHC_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~128k to driver. options AHD_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~215k to driver. device isa device eisa device pci # Floppy drives device fdc0 at isa? port IO_FD1 irq 6 drq 2 device fd0 at fdc0 drive 0 device fd1 at fdc0 drive 1 # ATA and ATAPI devices device ata0 at isa? port IO_WD1 irq 14 device ata1 at isa? port IO_WD2 irq 15 device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives device atapifd # ATAPI floppy drives device atapist # ATAPI tape drives options ATA_STATIC_ID #Static device numbering device adv0 at isa? device adw device bt0 at isa? device aha0 at isa? device aic0 at isa? device ncv # NCR 53C500 device nsp # Workbit Ninja SCSI-3 device stg # TMC 18C30/18C50 # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc0 at isa? port IO_KBD device atkbd0 at atkbdc? irq 1 flags 0x1 device psm0 at atkbdc? irq 12 device vga0 at isa? # splash screen/screen saver pseudo-device splash # syscons is the default console driver, resembling an SCO console device sc0 at isa? flags 0x100 # Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver #device vt0 at isa? #options XSERVER # support for X server on a vt console #options FAT_CURSOR # start with block cursor # If you have a ThinkPAD, uncomment this along with the rest of the PCVT lines #options PCVT_SCANSET=2 # IBM keyboards are non-std # Floating point support - do not disable. device npx0 at nexus? port IO_NPX irq 13 # Power management support (see LINT for more options) device apm0 at nexus? disable flags 0x20 # Advanced Power Management # Serial (COM) ports device sio0 at isa? port IO_COM1 flags 0x10 irq 4 device sio1 at isa? port IO_COM2 irq 3 device sio2 at isa? disable port IO_COM3 irq 5 device sio3 at isa? disable port IO_COM4 irq 9 # Parallel port device ppc0 at isa? irq 7 device ppbus # Parallel port bus (required) device lpt # Printer device plip # TCP/IP over parallel device ppi # Parallel port interface device #device vpo # Requires scbus and da # PCI Ethernet NICs. device de # DEC/Intel DC21x4x (``Tulip'') device em # Intel PRO/1000 adapter Gigabit Ethernet Card (``Wiseman'') device txp # 3Com 3cR990 (``Typhoon'') device vx # 3Com 3c590, 3c595 (``Vortex'') # PCI Ethernet NICs that use the common MII bus controller code. # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs! device miibus # MII bus support device dc # DEC/Intel 21143 and various workalikes device fxp # Intel EtherExpress PRO/100B (82557, 82558) device pcn # AMD Am79C97x PCI 10/100 NICs device rl # RealTek 8129/8139 device sf # Adaptec AIC-6915 (``Starfire'') device vr # VIA Rhine, Rhine II device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'') # The probe order of these is presently determined by i386/isa/isa_compat.c. device ie0 at isa? port 0x300 irq 10 iomem 0xd0000 #device le0 at isa? port 0x300 irq 5 iomem 0xd0000 device lnc0 at isa? port 0x280 irq 10 drq 0 device cs0 at isa? port 0x300 device sn0 at isa? port 0x300 irq 10 # Pseudo devices - the number indicates how many units to allocate. pseudo-device loop # Network loopback pseudo-device ether # Ethernet support pseudo-device sl 1 # Kernel SLIP pseudo-device ppp 1 # Kernel PPP pseudo-device tun # Packet tunnel. pseudo-device pty # Pseudo-ttys (telnet etc) pseudo-device md # Memory "disks" pseudo-device gif # IPv6 and IPv4 tunneling pseudo-device faith 1 # IPv6-to-IPv4 relaying (translation) # The `bpf' pseudo-device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! pseudo-device bpf #Berkeley packet filter ----end of custom kernel - this line is not included in config----- Start of where I think things started to go wrong.... I think this is after I executed the "make" command. Using "old" way kernel building. -I../../contrib/ipfilter -D_KERNEL -include opt_global.h -elf -mpreferred-stack-boundary=2 vnode_if.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/usr/include -I../../contrib/ipfilter -D_KERNEL -include opt_global.h -elf -mpreferred-stack-boundary=2 ioconf.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/usr/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/usr/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 GENERIC 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/usr/include -I../../contrib/ipfilter -D_KERNEL -include 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' scsi_low.o: In function `scsi_low_scsi_action_cam': scsi_low.o(.text+0x7be): undefined reference to `xpt_done' scsi_low.o(.text+0x7d4): undefined reference to `xpt_done' scsi_low.o(.text+0x81f): undefined reference to `xpt_done' scsi_low.o(.text+0x97f): undefined reference to `xpt_done' scsi_low.o(.text+0x9a1): undefined reference to `xpt_done' scsi_low.o: In function `scsi_low_attach_cam': scsi_low.o(.text+0x9df): undefined reference to `cam_simq_alloc' scsi_low.o(.text+0xa33): undefined reference to `cam_sim_alloc' scsi_low.o(.text+0xa43): undefined reference to `cam_simq_free' scsi_low.o(.text+0xa52): undefined reference to `xpt_bus_register' scsi_low.o(.text+0xa6e): undefined reference to `xpt_create_path' scsi_low.o(.text+0xa8f): undefined reference to `xpt_bus_deregister' scsi_low.o(.text+0xa99): undefined reference to `cam_sim_free' scsi_low.o: In function `scsi_low_dettach_cam': scsi_low.o(.text+0xae2): undefined reference to `xpt_async' scsi_low.o(.text+0xaea): undefined reference to `xpt_free_path' scsi_low.o(.text+0xaf8): undefined reference to `xpt_bus_deregister' scsi_low.o(.text+0xb02): undefined reference to `cam_sim_free' scsi_low.o: In function `scsi_low_done_cam': scsi_low.o(.text+0xc6f): undefined reference to `xpt_done' advansys.o: In function `adv_action': advansys.o(.text+0x258): undefined reference to `xpt_freeze_simq' advansys.o(.text+0x542): undefined reference to `xpt_done' advansys.o(.text+0x584): undefined reference to `xpt_done' advansys.o(.text+0x62b): undefined reference to `xpt_done' advansys.o(.text+0x640): undefined reference to `xpt_done' advansys.o: In function `adv_execute_ccb': advansys.o(.text+0x65f): undefined reference to `xpt_path_sim' advansys.o(.text+0x7ff): undefined reference to `xpt_freeze_simq' advansys.o(.text+0x862): undefined reference to `xpt_done' advansys.o: In function `adv_timeout': advansys.o(.text+0x958): undefined reference to `xpt_path_sim' advansys.o(.text+0x966): undefined reference to `xpt_print_path' advansys.o(.text+0x9b2): undefined reference to `xpt_freeze_simq' advansys.o(.text+0x9e4): undefined reference to `xpt_print_path' advansys.o(.text+0xa28): undefined reference to `xpt_print_path' advansys.o: In function `adv_done': advansys.o(.text+0x121c): undefined reference to `xpt_print_path' advansys.o(.text+0x1344): undefined reference to `xpt_print_path' advansys.o(.text+0x138b): undefined reference to `xpt_freeze_devq' advansys.o(.text+0x13ce): undefined reference to `xpt_done' advansys.o: In function `adv_attach': advansys.o(.text+0x152d): undefined reference to `cam_simq_alloc' advansys.o(.text+0x155a): undefined reference to `cam_sim_alloc' advansys.o(.text+0x1576): undefined reference to `xpt_bus_register' advansys.o(.text+0x1592): undefined reference to `xpt_create_path' advansys.o(.text+0x15a8): undefined reference to `xpt_setup_ccb' advansys.o(.text+0x15c6): undefined reference to `xpt_action' advansys.o(.text+0x15d7): undefined reference to `xpt_bus_deregister' advansys.o(.text+0x15e1): undefined reference to `cam_sim_free' advlib.o: In function `advasync': advlib.o(.text+0x39): undefined reference to `scsi_inquiry_match' advlib.o(.text+0x4b): undefined reference to `cam_quirkmatch' advlib.o(.text+0xb8): undefined reference to `xpt_path_target_id' advlib.o(.text+0xd3): undefined reference to `xpt_path_target_id' advlib.o: In function `adv_isr_chip_halted': advlib.o(.text+0xb0b): undefined reference to `xpt_freeze_devq' advlib.o(.text+0xc19): undefined reference to `xpt_freeze_devq' advlib.o: In function `adv_set_syncrate': advlib.o(.text+0xdbb): undefined reference to `xpt_setup_ccb' advlib.o(.text+0xdca): undefined reference to `xpt_async' advlib.o: In function `adv_reset_bus': advlib.o(.text+0x1ecf): undefined reference to `xpt_async' adwcam.o: In function `adwexecuteacb': adwcam.o(.text+0x1ce): undefined reference to `xpt_freeze_devq' adwcam.o(.text+0x257): undefined reference to `xpt_done' adwcam.o(.text+0x3db): undefined reference to `xpt_done' adwcam.o: In function `adw_action': adwcam.o(.text+0x5f5): undefined reference to `xpt_freeze_simq' adwcam.o(.text+0x7c1): undefined reference to `xpt_freeze_simq' adwcam.o(.text+0x87a): undefined reference to `xpt_print_path' adwcam.o(.text+0xe45): undefined reference to `xpt_print_path' adwcam.o(.text+0xe74): undefined reference to `xpt_done' adwcam.o(.text+0xf20): undefined reference to `xpt_done' adwcam.o(.text+0xf34): undefined reference to `xpt_done' adwcam.o: In function `adw_attach': adwcam.o(.text+0x16ab): undefined reference to `cam_simq_alloc' adwcam.o(.text+0x16e0): undefined reference to `cam_sim_alloc' adwcam.o(.text+0x16fe): undefined reference to `xpt_bus_register' adwcam.o(.text+0x170f): undefined reference to `cam_sim_free' adwcam.o(.text+0x1731): undefined reference to `xpt_create_path' adwcam.o(.text+0x1747): undefined reference to `xpt_setup_ccb' adwcam.o(.text+0x1765): undefined reference to `xpt_action' adwcam.o: In function `adw_intr': adwcam.o(.text+0x199b): undefined reference to `xpt_freeze_devq' adwcam.o(.text+0x1a12): undefined reference to `xpt_done' adwcam.o: In function `adwprocesserror': adwcam.o(.text+0x1adc): undefined reference to `xpt_print_path' adwcam.o(.text+0x1b6d): undefined reference to `xpt_freeze_devq' adwcam.o(.text+0x1be6): undefined reference to `xpt_done' adwcam.o: In function `adwtimeout': adwcam.o(.text+0x1c0a): undefined reference to `xpt_print_path' adwcam.o(.text+0x1c2e): undefined reference to `xpt_print_path' adwcam.o(.text+0x1c8e): undefined reference to `xpt_print_path' adwcam.o: In function `adw_handle_device_reset': adwcam.o(.text+0x1cc0): undefined reference to `xpt_create_path' adwcam.o(.text+0x1cd4): undefined reference to `xpt_async' adwcam.o(.text+0x1cdc): undefined reference to `xpt_free_path' adwcam.o: In function `adw_handle_bus_reset': adwcam.o(.text+0x1d5c): undefined reference to `xpt_async' adwlib.o: In function `adw_reset_bus': adwlib.o(.text+0xd5): undefined reference to `xpt_print_path' adwlib.o(.text+0x104): undefined reference to `xpt_print_path' aha.o: In function `aha_attach': aha.o(.text+0x726): undefined reference to `cam_simq_alloc' aha.o(.text+0x75c): undefined reference to `cam_sim_alloc' aha.o(.text+0x76c): undefined reference to `cam_simq_free' aha.o(.text+0x77e): undefined reference to `xpt_bus_register' aha.o(.text+0x79a): undefined reference to `xpt_create_path' aha.o(.text+0x7b3): undefined reference to `xpt_bus_deregister' aha.o(.text+0x7bd): undefined reference to `cam_sim_free' aha.o: In function `ahaaction': aha.o(.text+0xb03): undefined reference to `xpt_freeze_simq' aha.o(.text+0xd15): undefined reference to `xpt_freeze_simq' aha.o(.text+0xf6b): undefined reference to `xpt_done' aha.o(.text+0xf7d): undefined reference to `xpt_done' aha.o: In function `ahaexecuteccb': aha.o(.text+0xfdb): undefined reference to `xpt_freeze_devq' aha.o(.text+0x1055): undefined reference to `xpt_done' aha.o(.text+0x11f5): undefined reference to `xpt_done' aha.o(.text+0x1325): undefined reference to `xpt_freeze_simq' aha.o(.text+0x1335): undefined reference to `xpt_done' aha.o: In function `ahadone': aha.o(.text+0x150e): undefined reference to `xpt_create_path' aha.o(.text+0x1522): undefined reference to `xpt_async' aha.o(.text+0x172c): undefined reference to `xpt_freeze_devq' aha.o(.text+0x179b): undefined reference to `xpt_freeze_devq' aha.o(.text+0x181d): undefined reference to `xpt_done' aha.o(.text+0x18a1): undefined reference to `xpt_done' aha.o: In function `ahareset': aha.o(.text+0x19f8): undefined reference to `xpt_async' aha.o: In function `ahafetchtransinfo': aha.o(.text+0x1f87): undefined reference to `scsi_calc_syncparam' aha.o(.text+0x1fac): undefined reference to `xpt_async' aha.o: In function `ahatimeout': aha.o(.text+0x2015): undefined reference to `xpt_print_path' aha.o(.text+0x203c): undefined reference to `xpt_print_path' aha.o(.text+0x206e): undefined reference to `xpt_freeze_simq' aha.o: In function `aha_detach': aha.o(.text+0x219a): undefined reference to `xpt_async' aha.o(.text+0x21a2): undefined reference to `xpt_free_path' aha.o(.text+0x21b0): undefined reference to `xpt_bus_deregister' aha.o(.text+0x21ba): undefined reference to `cam_sim_free' aic.o: In function `aic_action': aic.o(.text+0x101): undefined reference to `xpt_freeze_simq' aic.o(.text+0x38d): undefined reference to `xpt_done' aic.o(.text+0x39d): undefined reference to `xpt_done' aic.o: In function `aic_execute_scb': aic.o(.text+0x3da): undefined reference to `xpt_done' aic.o: In function `aic_reconnect': aic.o(.text+0x713): undefined reference to `xpt_async' aic.o: In function `aic_handle_msgin': aic.o(.text+0xba8): undefined reference to `xpt_setup_ccb' aic.o(.text+0xbb6): undefined reference to `xpt_async' aic.o: In function `aic_done': aic.o(.text+0x1143): undefined reference to `xpt_create_path' aic.o(.text+0x1157): undefined reference to `xpt_async' aic.o(.text+0x115f): undefined reference to `xpt_free_path' aic.o(.text+0x129e): undefined reference to `xpt_done' aic.o: In function `aic_timeout': aic.o(.text+0x12d4): undefined reference to `xpt_print_path' aic.o(.text+0x1340): undefined reference to `xpt_print_path' aic.o(.text+0x1379): undefined reference to `xpt_freeze_simq' aic.o: In function `aic_intr': aic.o(.text+0x15c5): undefined reference to `xpt_async' aic.o: In function `aic_reset': aic.o(.text+0x180c): undefined reference to `xpt_async' aic.o: In function `aic_attach': aic.o(.text+0x1a36): undefined reference to `cam_simq_alloc' aic.o(.text+0x1a6b): undefined reference to `cam_sim_alloc' aic.o(.text+0x1a7b): undefined reference to `cam_simq_free' aic.o(.text+0x1a92): undefined reference to `xpt_bus_register' aic.o(.text+0x1aae): undefined reference to `xpt_create_path' aic.o(.text+0x1ac1): undefined reference to `xpt_bus_deregister' aic.o(.text+0x1acb): undefined reference to `cam_sim_free' aic.o: In function `aic_detach': aic.o(.text+0x1b66): undefined reference to `xpt_async' aic.o(.text+0x1b6e): undefined reference to `xpt_free_path' aic.o(.text+0x1b7c): undefined reference to `xpt_bus_deregister' aic.o(.text+0x1b86): undefined reference to `cam_sim_free' bt.o: In function `bt_attach': bt.o(.text+0xbb3): undefined reference to `cam_simq_alloc' bt.o(.text+0xbe7): undefined reference to `cam_sim_alloc' bt.o(.text+0xbf7): undefined reference to `cam_simq_free' bt.o(.text+0xc0e): undefined reference to `xpt_bus_register' bt.o(.text+0xc2a): undefined reference to `xpt_create_path' bt.o(.text+0xc3d): undefined reference to `xpt_bus_deregister' bt.o(.text+0xc47): undefined reference to `cam_sim_free' bt.o: In function `btaction': bt.o(.text+0x103a): undefined reference to `xpt_freeze_simq' bt.o(.text+0x12f1): undefined reference to `xpt_freeze_simq' bt.o(.text+0x1472): undefined reference to `xpt_done' bt.o(.text+0x1508): undefined reference to `xpt_done' bt.o(.text+0x1520): undefined reference to `xpt_done' bt.o(.text+0x15ed): undefined reference to `xpt_done' bt.o(.text+0x1600): undefined reference to `xpt_done' bt.o: In function `btexecuteccb': bt.o(.text+0x1653): undefined reference to `xpt_freeze_devq' bt.o(.text+0x16cd): undefined reference to `xpt_done' bt.o(.text+0x1801): undefined reference to `xpt_done' bt.o(.text+0x193d): undefined reference to `xpt_freeze_simq' bt.o(.text+0x194d): undefined reference to `xpt_done' bt.o: In function `btdone': bt.o(.text+0x1af8): undefined reference to `xpt_create_path' bt.o(.text+0x1b0c): undefined reference to `xpt_async' bt.o(.text+0x1d53): undefined reference to `xpt_print_path' bt.o(.text+0x1d79): undefined reference to `xpt_setup_ccb' bt.o(.text+0x1d87): undefined reference to `xpt_async' bt.o(.text+0x1e25): undefined reference to `xpt_freeze_devq' bt.o(.text+0x1ebc): undefined reference to `xpt_done' bt.o(.text+0x1f5e): undefined reference to `xpt_done' bt.o: In function `btreset': bt.o(.text+0x20c0): undefined reference to `xpt_async' bt.o: In function `btfetchtransinfo': bt.o(.text+0x26d6): undefined reference to `xpt_setup_ccb' bt.o(.text+0x26e6): undefined reference to `xpt_action' bt.o(.text+0x27ba): undefined reference to `scsi_calc_syncparam' bt.o(.text+0x27ea): undefined reference to `xpt_async' bt.o: In function `bttimeout': bt.o(.text+0x2861): undefined reference to `xpt_print_path' bt.o(.text+0x2888): undefined reference to `xpt_print_path' bt.o(.text+0x28ba): undefined reference to `xpt_freeze_simq' *** Error code 1 Stop in /usr/src/sys/compile/RANCIDKRN. rancid# 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?000701c2c3f8$720d86b0$b701a8c0>