It seems something went wrong when include/openssl/opensslv.h was generated? cc -Icrypto -I. -Iinclude -Iproviders/common/include -Iproviders/implementations/include -Icrypto/include -DAES_ASM -DBSAES_ASM -DCMLL_ASM -DECP_NISTZ256_ASM -DGHASH_ASM -DKECCAK1600_ASM -DMD5_ASM -DOPENSSL_BN_ASM_GF2m -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DPOLY1305_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DSTATIC_LEGACY -DVPAES_ASM -DWHIRLPOOL_ASM -DX25519_ASM -fPIC -pthread -Wa,--noexecstack -Qunused-arguments -Wall -O3 -DL_ENDIAN -DOPENSSL_BUILDING_OPENSSL -DOPENSSL_PIC -DOPENSSLDIR="\"/home/ca/OpenBSD/openssl-3.0.0-alpha1\"" -DENGINESDIR="\"/home/ca/OpenBSD/openssl-3.0.0-alpha1/lib/engines-3\"" -DMODULESDIR="\"/home/ca/OpenBSD/openssl-3.0.0-alpha1/lib/ossl-modules\"" -D_THREAD_SAFE -D_REENTRANT -DNDEBUG -MMD -MF crypto/libcrypto-lib-cversion.d.tmp -MT crypto/libcrypto-lib-cversion.o -c -o crypto/libcrypto-lib-cversion.o crypto/cversion.c crypto/cversion.c:50:16: error: expected ';' after return statement return OPENSSL_VERSION_TEXT; ^ include/openssl/opensslv.h:91:54: note: expanded from macro 'OPENSSL_VERSION_TEXT' # define OPENSSL_VERSION_TEXT "OpenSSL 3.0.0-alpha1 "23 Apr 2020"" ^ OS: OpenBSD 6.6 Maybe it's specific to my setup?