Fun fact: originally I faced this issue when compiling BoringSSL. I had both CMake and Go installed from snap. BoringSSL can't be built with this setup, since CMake invokes "go run file.go > file.c" for code generation during build, and it produces an empty file instead of the desired code.
For people coming from Google: if you're using snap and get strange linker errors when building BoringSSL, you're probably facing the same issue:
/usr/bin/ld: libcrypto.a(err.c.o): in function `ERR_reason_error_string':
boringssl/crypto/err/err.c:579: undefined reference to `kOpenSSLReasonValuesLen'
/usr/bin/ld: boringssl/crypto/err/err.c:578: undefined reference to `kOpenSSLReasonValues'
/usr/bin/ld: boringssl/crypto/err/err.c:578: undefined reference to `kOpenSSLReasonStringData'
Fun fact: originally I faced this issue when compiling BoringSSL. I had both CMake and Go installed from snap. BoringSSL can't be built with this setup, since CMake invokes "go run file.go > file.c" for code generation during build, and it produces an empty file instead of the desired code.
For people coming from Google: if you're using snap and get strange linker errors when building BoringSSL, you're probably facing the same issue:
/usr/bin/ld: libcrypto. a(err.c. o): in function `ERR_reason_ error_string' : crypto/ err/err. c:579: undefined reference to `kOpenSSLReason ValuesLen' crypto/ err/err. c:578: undefined reference to `kOpenSSLReason Values' crypto/ err/err. c:578: undefined reference to `kOpenSSLReason StringData'
boringssl/
/usr/bin/ld: boringssl/
/usr/bin/ld: boringssl/