On Sun, May 03, 2009 at 08:06:36AM +0200, fre...@gmx.net wrote: > Ya, right, it's my fault.
Did your tree build before applying the diff? My guess is not, so check and fix that before blaming the patch instructions. -Otto > > However, as usually, I exactly followed the instructions in the patch file: > > ============================================= > This is version 2 of this patch. > > Apply by doing: > cd /usr/src > patch -p0 < 001_openssl.patch > > And then rebuild and install the library and statically-linked binaries > that depend upon it: > > cd lib/libssl > make obj > make depend > make includes > make > make install > cd ../../sbin > make obj > make depend > make > make install > ============================================= > > I guess that's the way to go, isn't it? > > > > > Theo de Raadt wrote: >> Well, you did not build your tree correctly. It is well documented in >> 'man release' and in the /usr/src/Makefile >> >>> I just tried to patch a virgin OpenBSD 4.5 installation by applying >>> 001_openssl.patch (Version 2). >>> >>> After successfully rebuilding and installing the library, as well as >>> successfully rebuilding the statically linked binaries, running 'make >>> install' in /usr/src/sbin fails as follows: >>> >>> ================== snip ==================== >>> ... >>> ===> fsck >>> install -c -s -o root -g bin -m 555 fsck /sbin/fsck >>> install -c -o root -g bin -m 444 fsck.cat8 /usr/share/man/cat8/fsck.0 >>> ===> fsck_ext2fs >>> install -c -s -o root -g bin -m 555 fsck_ext2fs /sbin/fsck_ext2fs >>> install -c -o root -g bin -m 444 fsck_ext2fs.cat8 >>> /usr/share/man/cat8/fsck_ext2fs.0 >>> ===> fsck_ffs >>> install -c -s -o root -g bin -m 555 fsck_ffs /sbin/fsck_ffs >>> install -c -o root -g bin -m 444 fsck_ffs.cat8 >>> /usr/share/man/cat8/fsck_ffs.0 >>> ===> fsck_ffs/SMM.doc >>> install -c -o root -g bin -m 444 Makefile 0.t 1.t 2.t 3.t 4.t >>> /usr/share/doc/smm/03.fsck_ffs >>> install: Target: /usr/share/doc/smm/03.fsck_ffs >>> *** Error code 71 >>> >>> Stop in /usr/src/sbin/fsck_ffs/SMM.doc (line 47 of >>> /usr/share/mk/bsd.doc.mk). >>> *** Error code 1 >>> >>> Stop in /usr/src/sbin/fsck_ffs (line 48 of /usr/share/mk/bsd.subdir.mk). >>> *** Error code 1 >>> >>> Stop in /usr/src/sbin (line 48 of /usr/share/mk/bsd.subdir.mk). >>> # >>> >>> ================== snip ==================== >>> >>> Here's my dmesg output (MAC addresses deleted): >>> -------------------------------------------- >>> OpenBSD 4.5 (GENERIC) #1749: Sat Feb 28 14:51:18 MST 2009 >>> dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC >>> cpu0: Intel Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 267 MHz >>> cpu0: >>> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR >>> real mem = 200830976 (191MB) >>> avail mem = 185782272 (177MB) >>> mainbus0 at root >>> bios0 at mainbus0: AT/286+ BIOS, date 12/28/99, BIOS32 rev. 0 @ 0xfcc22 >>> apm0 at bios0: Power Management spec V1.2 >>> apm0: battery life expectancy 100% >>> apm0: AC on, battery charge high, estimated 2:25 hours >>> pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000 >>> pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf0ec0/144 (7 entries) >>> pcibios0: PCI Interrupt Router at 000:05:0 ("Intel 82371FB ISA" rev 0x00) >>> pcibios0: PCI bus #21 is the last bus >>> bios0: ROM list: 0xc0000/0xc000 >>> cpu0 at mainbus0: (uniprocessor) >>> pci0 at mainbus0 bus 0: configuration mode 1 (bios) >>> pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x02 >>> intelagp0 at pchb0 >>> agp0 at intelagp0: aperture at 0xe0000000, size 0x10000000 >>> ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x02 >>> pci1 at ppb0 bus 1 >>> vga1 at pci1 dev 3 function 0 "S3 ViRGE MX" rev 0x06 >>> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) >>> wsdisplay0: screen 1-5 added (80x25, vt100 emulation) >>> piixpcib0 at pci0 dev 5 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02 >>> pciide0 at pci0 dev 5 function 1 "Intel 82371AB IDE" rev 0x01: DMA, >>> channel 0 wired to compatibility, channel 1 wired to compatibility >>> wd0 at pciide0 channel 0 drive 0: <IBM-DPLA-25120> >>> wd0: 16-sector PIO, LBA, 4887MB, 10009440 sectors >>> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 >>> atapiscsi0 at pciide0 channel 1 drive 0 >>> scsibus0 at atapiscsi0: 2 targets >>> cd0 at scsibus0 targ 0 lun 0: <TOSHIBA, DVD-ROM SD-C2002, 1324> ATAPI >>> 5/cdrom removable >>> cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 >>> uhci0 at pci0 dev 5 function 2 "Intel 82371AB USB" rev 0x01: irq 11 >>> piixpm0 at pci0 dev 5 function 3 "Intel 82371AB Power" rev 0x02: >>> SMBus disabled >>> "Toshiba Fast Infrared Type O" rev 0x33 at pci0 dev 9 function 0 not >>> configured >>> cbb0 at pci0 dev 11 function 0 "Toshiba ToPIC97 CardBus" rev 0x44: irq 11 >>> cbb1 at pci0 dev 11 function 1 "Toshiba ToPIC97 CardBus" rev 0x44: irq 11 >>> vendor "Toshiba", unknown product 0x0406 (class multimedia subclass >>> video, rev 0x04) at pci0 dev 12 function 0 not configured >>> vendor "Toshiba", unknown product 0x0407 (class multimedia subclass >>> miscellaneous, rev 0x02) at pci0 dev 13 function 0 not configured >>> isa0 at piixpcib0 >>> isadma0 at isa0 >>> 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 >>> pms0 at pckbc0 (aux slot) >>> pckbc0: using irq 12 for aux slot >>> wsmouse0 at pms0 mux 0 >>> pcppi0 at isa0 port 0x61 >>> midi0 at pcppi0: <PC speaker> >>> spkr0 at pcppi0 >>> npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 >>> fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 >>> fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec >>> usb0 at uhci0: USB revision 1.0 >>> uhub0 at usb0 "Intel UHCI root hub" rev 1.00/1.00 addr 1 >>> cardslot0 at cbb0 slot 0 flags 0 >>> cardbus0 at cardslot0: bus 20 device 0 cacheline 0x0, lattimer 0x0 >>> pcmcia0 at cardslot0 >>> cardslot1 at cbb1 slot 1 flags 0 >>> cardbus1 at cardslot1: bus 21 device 0 cacheline 0x0, lattimer 0x0 >>> pcmcia1 at cardslot1 >>> biomask effd netmask effd ttymask ffff >>> mtrr: Pentium Pro MTRR support >>> ne3 at pcmcia0 function 0 "Dual Speed, 10/100 PC Card, 1.0" port >>> 0xa000/32, address <deleted> >>> ukphy0 at ne3 phy 4: Generic IEEE 802.3u media interface, rev. 2: OUI >>> 0x0010dd, model 0x0001 >>> xl0 at cardbus1 dev 0 function 0 "3Com 3CCFE575BT" rev 0x01: irq 11, >>> address <deleted> >>> tqphy0 at xl0 phy 0: 78Q2120 10/100 PHY, rev. 3 >>> softraid0 at root >>> root on wd0a swap on wd0b dump on wd0b >>> -------------------------------------------- >>> >>> >>> Any suggestions are kindly appreciated.