Hey folks, I seem to have gotten myself into a pickle, and I'm not quite sure how screwed I am.
I have an AMD64 server that has been having some stability issues recently. It has crashed several times when I have fired up sa-learn from the SpamAssassin package, and it seems that with the right conditions, it's running out of RAM. Unfortunately, instead of hitting swap, it's been kernel panicking (I don't have the ps and trace information, I'm working on getting a serial console on it so I can). I thought in the interim I'd make sure that I'm all up-to-date with -STABLE, so I went ahead and updated via CVS, and began a 'make build'. And then it crashed part way through. Uh oh. Also, I didn't make a new kernel - I didn't see anything but a few userland items had changed. Is that a problem (never dealt with that before)? It's been rebooted, it's running OK, but now it's failing when I try to build -STABLE again. 'make clean' works fine, but when I attempt a 'make depend' for the kernel: In file included from /usr/src/sys/uvm/uvm_map.h:391, from /usr/src/sys/uvm/uvm_extern.h:376, from /usr/src/sys/sys/user.h:45, from /tmp/genassym_c.oHhks15538:9: /usr/src/sys/sys/systm.h:173: warning: conflicting types for built-in function `vsnprintf' /usr/src/sys/sys/systm.h:175: warning: conflicting types for built-in function `snprintf' /usr/src/sys/sys/systm.h:200: warning: conflicting types for built-in function `memcpy' /usr/src/sys/sys/systm.h:205: warning: conflicting types for built-in function `memset' In file included from /usr/src/sys/sys/systm.h:301, from /usr/src/sys/uvm/uvm_map.h:391, from /usr/src/sys/uvm/uvm_extern.h:376, from /usr/src/sys/sys/user.h:45, from /tmp/genassym_c.oHhks15538:9: /usr/src/sys/lib/libkern/libkern.h:158: warning: conflicting types for built-in function `memcmp' /usr/src/sys/lib/libkern/libkern.h:163: warning: conflicting types for built-in function `strlen' /usr/src/sys/lib/libkern/libkern.h:165: warning: conflicting types for built-in function `strncpy' /usr/src/sys/lib/libkern/libkern.h:171: warning: conflicting types for built-in function `strncmp' *** Error code 1 Stop in /usr/src/sys/arch/i386/compile/GENERIC (line 702 of Makefile). So, at this point, I think I just fat fingered my CVS update and got -CURRENT or some such, so I went ahead and blew away /usr/src/* and reupdated with -STABLE. Unfortunately, it does the same thing. At this point, I look at /usr/include, and I see that some things have been updated, and some haven't been since I last built -STABLE. I recall that people with borked include files have been advised to do a 'make includes' from /usr/src, so I try that: ... installing in /usr/src/include/../gnu/lib/libobjc install -d -m 755 -o root -g bin /usr/include/objc installing in /usr/src/include/../gnu/lib/libf2c install -C -o root -g bin -m 444 /usr/src/gnu/lib/libf2c/f2c.h /usr/include install -C -o root -g bin -m 444 g2c.h /usr/include install: g2c.h: No such file or directory *** Error code 71 Stop in /usr/src/gnu/lib/libf2c (line 159 of Makefile.bsd-wrapper). *** Error code 1 Stop in /usr/src/include (line 88 of Makefile). *** Error code 1 Stop in /usr/src (line 57 of Makefile). And then I panic a little, quietly to myself, and realize that I'm in over my head trying to repair this, and I need some help from people that know what might really be broken. I'd really appreciate it if someone could smack me with a clue-by-four and give me a hand in fixing this. It's my fault with the [likely] CVS "oops", but that crash in the middle of the build was just evil timing. Thanks very much! Benny OpenBSD 3.6-stable (GENERIC) #4: Wed Jun 22 08:30:37 CDT 2005 [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC real mem = 1072492544 (1047356K) avail mem = 909234176 (887924K) using 22937 buffers containing 107458560 bytes (104940K) of memory mainbus0 (root) cpu0 at mainbus0: (uniprocessor) cpu0: AMD Athlon(tm) 64 Processor 3000+, 2002.86 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF LUSH,MMX,FXSR,SSE,SSE2,NXE,MMXX,LONG,3DNOW2,3DNOW cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 1 6-way L2 cache cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative pci0 at mainbus0 bus 0: configuration mode 1 pchb0 at pci0 dev 0 function 0 "VIA K8HTB Host" rev 0x01 ppb0 at pci0 dev 1 function 0 "VIA K8HTB AGP" rev 0x00 pci1 at ppb0 bus 1 fxp0 at pci0 dev 11 function 0 "Intel 82557" rev 0x08: irq 5, address 00:03:47:4 d:cc:a6 inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4 vga1 at pci0 dev 12 function 0 "Cirrus Logic CL-GD5446" rev 0x00 wsdisplay0 at vga1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) pciide0 at pci0 dev 15 function 0 "VIA VT8237 SATA" rev 0x80: DMA pciide0: using irq 11 for native-PCI interrupt pciide1 at pci0 dev 15 function 1 "VIA VT82C571 IDE" rev 0x06: ATA133, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide1 channel 0 drive 0: <ST380013A> wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5 pciide1: channel 1 disabled (no drives) uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x81: irq 5 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x81: irq 5 usb1 at uhci1: USB revision 1.0 uhub1 at usb1 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x81: irq 11 usb2 at uhci2: USB revision 1.0 uhub2 at usb2 uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci3 at pci0 dev 16 function 3 "VIA VT83C572 USB" rev 0x81: irq 11 usb3 at uhci3: USB revision 1.0 uhub3 at usb3 uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered ehci0 at pci0 dev 16 function 4 "VIA VT6202 USB 2.0" rev 0x86: irq 10 ehci0: EHCI version 1.0 ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3 usb4 at ehci0: USB revision 2.0 uhub4 at usb4 uhub4: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub4: 8 ports with 8 removable, self powered "VIA VT8237 ISA" rev 0x00 at pci0 dev 17 function 0 not configured pchb1 at pci0 dev 24 function 0 "AMD AMD64 HyperTransport" rev 0x00 pchb2 at pci0 dev 24 function 1 "AMD AMD64 Address Map" rev 0x00 pchb3 at pci0 dev 24 function 2 "AMD AMD64 DRAM Cfg" rev 0x00 pchb4 at pci0 dev 24 function 3 "AMD AMD64 Misc Cfg" rev 0x00 isa0 at mainbus0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 lm0 at isa0 port 0x290/8: W83697HF dkcsum: wd0 matched BIOS disk 80 root on wd0a rootdev=0x0 rrootdev=0x300 rawdev=0x302 /home: optimization changed from SPACE to TIME /home: optimization changed from TIME to SPACE /home: optimization changed from SPACE to TIME /home: optimization changed from TIME to SPACE /home: optimization changed from SPACE to TIME /home: optimization changed from TIME to SPACE /home: optimization changed from SPACE to TIME /home: optimization changed from TIME to SPACE -- "Young lady, I yelled at you because that paperwork looked like it had been done by a drunk four-year-old." -- Dr. Bob Kelso, "Scrubs"