kernel linking 失敗

看板FreeBSD作者時間21年前 (2004/08/20 13:33), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
小弟再重編核心的時候出現以下錯誤訊息 make depend && make all install ....... ...... ..... cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes - W missing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -a n si -nostdinc -I- -I. -I../.. -I../../../include -I../../contrib/dev/acpica -I. .. /../contrib/ipfilter -D_KERNEL -include opt_global.h -mpreferred-stack-bounda r y=2 ioconf.c cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes - W missing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -a n si -nostdinc -I- -I. -I../.. -I../../../include -I../../contrib/dev/acpica -I. .. /../contrib/ipfilter -D_KERNEL -include opt_global.h -mpreferred-stack-bounda r y=2 config.c cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes - W missing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -a n si -nostdinc -I- -I. -I../.. -I../../../include -I../../contrib/dev/acpica -I. .. /../contrib/ipfilter -D_KERNEL -include opt_global.h -mpreferred-stack-bounda r y=2 setdef1.c touch hack.c cc -shared -nostdlib hack.c -o hack.So rm -f hack.c sh ../../conf/newvers.sh XUAN cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes - W missing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -a n si -nostdinc -I- -I. -I../.. -I../../../include -I../../contrib/dev/acpica -I. .. /../contrib/ipfilter -D_KERNEL -include opt_global.h -mpreferred-stack-bounda r y=2 vers.c linking kernel umass.o: In function `umass_cam_attach_sim': umass.o(.text+0x1637): undefined reference to `cam_simq_alloc' umass.o(.text+0x165d): undefined reference to `cam_sim_alloc' umass.o(.text+0x1676): undefined reference to `xpt_bus_register' umass.o(.text+0x1686): undefined reference to `cam_simq_free' umass.o: In function `umass_cam_rescan_callback': umass.o(.text+0x169f): undefined reference to `xpt_free_path' umass.o: In function `umass_cam_rescan': umass.o(.text+0x16ef): undefined reference to `xpt_periph' umass.o(.text+0x16f8): undefined reference to `xpt_create_path' umass.o(.text+0x170b): undefined reference to `xpt_setup_ccb' umass.o(.text+0x1726): undefined reference to `xpt_action' umass.o: In function `umass_cam_detach_sim': umass.o(.text+0x17df): undefined reference to `xpt_bus_deregister' umass.o(.text+0x17fd): undefined reference to `cam_sim_free' umass.o: In function `umass_cam_detach': umass.o(.text+0x183e): undefined reference to `xpt_create_path' umass.o(.text+0x185f): undefined reference to `xpt_async' umass.o(.text+0x1867): undefined reference to `xpt_free_path' umass.o: In function `umass_cam_action': umass.o(.text+0x1beb): undefined reference to `xpt_done' umass.o(.text+0x1bfd): undefined reference to `xpt_done' umass.o: In function `umass_cam_cb': umass.o(.text+0x1d19): undefined reference to `xpt_done' umass.o: In function `umass_cam_sense_cb': umass.o(.text+0x1e20): undefined reference to `xpt_done' umass.o(.text+0x1e31): undefined reference to `xpt_done' umass.o(.text+0x1e4b): more undefined references to `xpt_done' follow *** Error code 1 Stop in /usr/src/sys/compile/XUAN. 此外我有在設定檔另外加入以下選項 options IPFIREWALL options IPFIREWALL_VERBOSE options DUMMYNET options IPFIREWALL_DEFAULT_TO_ACCEPT 請問這是我核心設定檔的問題(config有過,它也把設定檔存到../../compile了) 還是有少灌東西導致link失敗呢? FreeBSD 4.10 release 我的核心設定檔: http://vega.cs.tku.edu.tw/~u91193131/XUAN.txt 以下是demsg Copyright (c) 1992-2004 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.10-RELEASE #0: Tue May 25 22:47:12 GMT 2004 root@perseus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz CPU: AMD-K6(tm) 3D processor (501.14-MHz 586-class CPU) Origin = "AuthenticAMD" Id = 0x58c Stepping = 12 Features=0x8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX> AMD Features=0x80000800<SYSCALL,3DNow!> real memory = 268369920 (262080K bytes) avail memory = 255684608 (249692K bytes) Preloaded elf kernel "kernel" at 0xc0551000. K6-family MTRR support enabled (2 registers) md0: Malloc disk Using $PIR table, 8 entries at 0xc00fdf10 npx0: <math processor> on motherboard npx0: INT 16 interface pcib0: <Host to PCI bridge> on motherboard pci0: <PCI bus> on pcib0 agp0: <VIA 82C597 (Apollo VP3) host to PCI bridge> mem 0xe0000000-0xe1ffffff at device 0.0 on pci0 pcib2: <VIA 82C598MVP (Apollo MVP3) PCI-PCI (AGP) bridge> at device 1.0 on pci0 pci1: <PCI bus> on pcib2 pci1: <SiS 6326 SVGA controller> at 0.0 irq 11 isab0: <VIA 82C596B PCI-ISA bridge> at device 7.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <VIA 82C596 ATA66 controller> port 0xe000-0xe00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: <VIA 83C572 USB controller> port 0xe400-0xe41f irq 10 at device 7.2 on p ci0 usb0: <VIA 83C572 USB controller> on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pci0: <unknown card> (vendor=0x1106, dev=0x3050) at 7.3 vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xe800-0xe8ff mem 0xe5800000-0xe58 000ff irq 5 at device 10.0 on pci0 vr0: Ethernet address: 00:50:ba:e3:d0:06 miibus0: <MII bus> on vr0 ukphy0: <Generic IEEE 802.3u media interface> on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci0: <unknown card> (vendor=0x1274, dev=0x1371) at 12.0 irq 5 pcib1: <Host to PCI bridge> on motherboard pci2: <PCI bus> on pcib1 orm0: <Option ROM> at iomem 0xc0000-0xc7fff on isa0 pmtimer0 on isa0 fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: model IntelliMouse Explorer, device ID 4 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/16 bytes threshold plip0: <PLIP network interface> on ppbus0 lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ppi0: <Parallel I/O> on ppbus0 ad0: 6197MB <IBM-DHEA-36481> [12592/16/63] at ata0-master UDMA33 ad1: 8063MB <FUJITSU MPE3084AE> [16383/16/63] at ata0-slave UDMA66 acd0: CDROM <BCD 24XM CD-ROM> at ata1-slave PIO4 Mounting root from ufs:/dev/ad0s1a cd9660: RockRidge Extension -- ※ Origin: 臺大電機 Maxwell 站 ◆ From: 220-134-16-95.HINET-IP.hinet.net
文章代碼(AID): #119OqP00 (FreeBSD)
文章代碼(AID): #119OqP00 (FreeBSD)