Patching OpenBSD 5.7

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Patching OpenBSD 5.7

Monah Baki-3
Hi All,

I upgraded my server from 5.6 to 5.7 using the bsd.rd, all was successful.

OpenBSD 5.7 (GENERIC) #738: Sun Mar  8 10:59:31 MDT 2015
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz ("GenuineIntel"
686-class) 3.60 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,MMX,FXSR,SSE,SSE2,SS,NXE,PAGE1GB,LONG,SSE3,PCLMUL,SSSE3,FMA3,CX16,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,HV,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
real mem  = 267862016 (255MB)
avail mem = 251109376 (239MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 07/31/13, BIOS32 rev. 0 @ 0xfd780, SMBIOS rev.
2.4 @ 0xe0010 (364 entries)
bios0: vendor Phoenix Technologies LTD version "6.00" date 07/31/2013
bios0: VMware, Inc. VMware Virtual Platform
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP BOOT APIC MCFG SRAT HPET WAET
acpi0: wakeup devices PCI0(S3) USB_(S1) P2P0(S3) S1F0(S3) S2F0(S3)
S3F0(S3) S4F0(S3) S5F0(S3) S6F0(S3) S7F0(S3) S8F0(S3) S9F0(S3)
S10F(S3) S11F(S3) S12F(S3) S13F(S3) [...]




I went and downloaded
http://ftp.openbsd.org/pub/OpenBSD/patches/5.7.tar.gz so I can patch
it.


Followed the instruction per the OpenBSD site

Apply patch using:

    signify -Vep /etc/signify/openbsd-57-base.pub -x 003_openssl.patch.sig \
-m - | (cd /usr/src && patch -p0)

Then build and install libcrypto and libssl

cd /usr/src/lib/libcrypto/crypto
make obj (Success)


make
<SNIP>
cc -O2 -pipe -g -Wall -Werror -DDSO_DLFCN -DHAVE_DLFCN_H
-DHAVE_FUNOPEN -DLIBRESSL_INTERNAL -DTERMIOS -DOPENSSL_NO_HW_PADLOCK
-I/usr/src/lib/libcrypto/crypto/../../libssl/src
-I/usr/src/lib/libcrypto/crypto/../../libssl/src/crypto
-I/usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/modes
-I/usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/asn1
-I/usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/evp
-I/usr/src/lib/libcrypto/crypto/obj -DAES_ASM -DVPAES_ASM
-DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_BN_ASM_MONT
-DOPENSSL_BN_ASM_GF2m -DMD5_ASM -DGHASH_ASM -DRMD160_ASM -DSHA1_ASM
-DSHA256_ASM -DSHA512_ASM -DWHIRLPOOL_ASM -DOPENSSL_CPUID_OBJ   -c
/usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/asn1/a_time.c -o
a_time.o
cc1: warnings being treated as errors
/usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/asn1/a_time.c:88:
warning: return type defaults to 'int'
/usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/asn1/a_time.c:
In function 'IMPLEMENT_ASN1_FUNCTIONS':
/usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/asn1/a_time.c:90:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '{'
token
/usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/asn1/a_time.c:96:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '{'
token
/usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/asn1/a_time.c:116:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '{'
token
/usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/asn1/a_time.c:127:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '{'
token
/usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/asn1/a_time.c:164:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '{'
token
/usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/asn1/a_time.c:185:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '{'
token
/usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/asn1/a_time.c:74:
error: parameter name omitted
/usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/asn1/a_time.c:204:
error: expected '{' at end of input
*** Error 1 in /usr/src/lib/libcrypto/crypto (<bsd.lib.mk>:40
'a_time.o': @cc -O2 -pipe -g -Wall -Werror -DDSO_DLFCN -DHAVE_DLFCN_H
-DHAVE_F...)



Any guidance will be greatly appreciated.


Thank you

Monah

Reply | Threaded
Open this post in threaded view
|

Re: Patching OpenBSD 5.7

Michael McConville-2
Likely related:

        https://marc.info/?t=143191910800002&r=1&w=2

We never figured it out. Building the entire system from source and
reinstalling fixed it for me.

Reply | Threaded
Open this post in threaded view
|

Re: [OBORONA-SPAM] Re: Patching OpenBSD 5.7

Артур Истомин
On Sat, Jul 25, 2015 at 12:03:50PM -0400, Michael McConville wrote:
> Likely related:
>
> https://marc.info/?t=143191910800002&r=1&w=2
>
> We never figured it out. Building the entire system from source and
> reinstalling fixed it for me.

Is it possible that old source code was not removed from /usr/src?
I upgraded two machines last night (desktop amd64 and router i386)
and all went well.