3.0.0-alpha1 compile error: minor problem

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

3.0.0-alpha1 compile error: minor problem

Claus Assmann
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?
Reply | Threaded
Open this post in threaded view
|

Re: 3.0.0-alpha1 compile error: minor problem

Matt Caswell-2


On 24/04/2020 17:38, Claus Assmann wrote:

> 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""
>                                                      ^

Known issue. Please check the release notes on the wiki for the
workaround (section 2).

https://wiki.openssl.org/index.php/OpenSSL_3.0#Installation_and_Compilation_of_OpenSSL_3.0

Matt