Skip to content

Failed compiling object src/openssl.o on OpenBSD 7.2 aarch64 #209

Description

@amalgame21

OS: OpenBSD 7.2 -release flavor
Hardware: Raspberry pi 4
luarocks: luarocks-5.3 3.9.1
openssl: LibreSSL 3.6.0

$ doas luarocks-5.3 install luaossl
Installing https://luarocks.org/luaossl-20220711-0.src.rock

luaossl 20220711-0 depends on lua (5.3-1 provided by VM)
Applying patch config.h.diff...
Hunk 1 found at offset 2...
cc -O2 -fPIC -I/usr/local/include/lua-5.3 -c src/openssl.c -o src/openssl.o -D_REENTRANT -D_THREAD_SAFE -DCOMPAT53_PREFIX=luaossl -D_GNU_SOURCE -I/usr/include -I/usr/include
src/openssl.c:380:9: warning: 'SSL_CTX_set1_groups_list' macro redefined [-Wmacro-redefined]
#define SSL_CTX_set1_groups_list SSL_CTX_set1_curves_list
        ^
/usr/include/openssl/ssl.h:1098:9: note: previous definition is here
#define SSL_CTX_set1_groups_list        SSL_CTX_set1_groups_list
        ^
src/openssl.c:495:9: warning: 'SSL_set1_groups_list' macro redefined [-Wmacro-redefined]
#define SSL_set1_groups_list SSL_set1_curves_list
        ^
/usr/include/openssl/ssl.h:1100:9: note: previous definition is here
#define SSL_set1_groups_list            SSL_set1_groups_list
        ^
src/openssl.c:1987:12: error: incomplete definition of type 'struct ssl_st'
        return ssl->client_version;
               ~~~^
/usr/include/openssl/ossl_typ.h:160:16: note: forward declaration of 'struct ssl_st'
typedef struct ssl_st SSL;
               ^
src/openssl.c:2119:23: error: incomplete definition of type 'struct x509_store_st'
        i = CRYPTO_add(&store->references, -1, CRYPTO_LOCK_X509_STORE);
                        ~~~~~^
/usr/include/openssl/crypto.h:207:18: note: expanded from macro 'CRYPTO_add'
        CRYPTO_add_lock(addr,amount,type,NULL,0)
                        ^~~~
/usr/include/openssl/ossl_typ.h:138:16: note: forward declaration of 'struct x509_store_st'
typedef struct x509_store_st X509_STORE;
               ^
src/openssl.c:2144:9: error: incomplete definition of type 'struct ssl_ctx_st'
        if (ctx->cert_store) {
            ~~~^
/usr/include/openssl/ossl_typ.h:161:16: note: forward declaration of 'struct ssl_ctx_st'
typedef struct ssl_ctx_st SSL_CTX;
               ^
src/openssl.c:2145:22: error: incomplete definition of type 'struct ssl_ctx_st'
                X509_STORE_free(ctx->cert_store);
                                ~~~^
src/openssl.c:2110:28: note: expanded from macro 'X509_STORE_free'
        (compat.X509_STORE_free)((store))
                                  ^~~~~
/usr/include/openssl/ossl_typ.h:161:16: note: forward declaration of 'struct ssl_ctx_st'
typedef struct ssl_ctx_st SSL_CTX;
               ^
src/openssl.c:2146:6: error: incomplete definition of type 'struct ssl_ctx_st'
                ctx->cert_store = NULL;
                ~~~^
/usr/include/openssl/ossl_typ.h:161:16: note: forward declaration of 'struct ssl_ctx_st'
typedef struct ssl_ctx_st SSL_CTX;
               ^
src/openssl.c:2149:11: error: incomplete definition of type 'struct x509_store_st'
        n = store->references;
            ~~~~~^
/usr/include/openssl/ossl_typ.h:138:16: note: forward declaration of 'struct x509_store_st'
typedef struct x509_store_st X509_STORE;
               ^
src/openssl.c:2153:16: error: incomplete definition of type 'struct x509_store_st'
        if (n == store->references)
                 ~~~~~^
/usr/include/openssl/ossl_typ.h:138:16: note: forward declaration of 'struct x509_store_st'
typedef struct x509_store_st X509_STORE;
               ^
src/openssl.c:2154:20: error: incomplete definition of type 'struct x509_store_st'
                CRYPTO_add(&store->references, 1, CRYPTO_LOCK_X509_STORE);
                            ~~~~~^
/usr/include/openssl/crypto.h:207:18: note: expanded from macro 'CRYPTO_add'
        CRYPTO_add_lock(addr,amount,type,NULL,0)
                        ^~~~
/usr/include/openssl/ossl_typ.h:138:16: note: forward declaration of 'struct x509_store_st'
typedef struct x509_store_st X509_STORE;
               ^
src/openssl.c:2165:9: error: incomplete definition of type 'struct ssl_ctx_st'
        if (ctx->cert_store) {
            ~~~^
/usr/include/openssl/ossl_typ.h:161:16: note: forward declaration of 'struct ssl_ctx_st'
typedef struct ssl_ctx_st SSL_CTX;
               ^
src/openssl.c:2166:22: error: incomplete definition of type 'struct ssl_ctx_st'
                X509_STORE_free(ctx->cert_store);
                                ~~~^
src/openssl.c:2110:28: note: expanded from macro 'X509_STORE_free'
        (compat.X509_STORE_free)((store))
                                  ^~~~~
/usr/include/openssl/ossl_typ.h:161:16: note: forward declaration of 'struct ssl_ctx_st'
typedef struct ssl_ctx_st SSL_CTX;
               ^
src/openssl.c:2167:6: error: incomplete definition of type 'struct ssl_ctx_st'
                ctx->cert_store = NULL;
                ~~~^
/usr/include/openssl/ossl_typ.h:161:16: note: forward declaration of 'struct ssl_ctx_st'
typedef struct ssl_ctx_st SSL_CTX;
               ^
src/openssl.c:2699:30: error: incomplete definition of type 'struct x509_store_st'
        CRYPTO_add(&compat.tmp.store->references, 1, CRYPTO_LOCK_X509_STORE);
                    ~~~~~~~~~~~~~~~~^
/usr/include/openssl/crypto.h:207:18: note: expanded from macro 'CRYPTO_add'
        CRYPTO_add_lock(addr,amount,type,NULL,0)
                        ^~~~
/usr/include/openssl/ossl_typ.h:138:16: note: forward declaration of 'struct x509_store_st'
typedef struct x509_store_st X509_STORE;
               ^
src/openssl.c:7808:5: error: incomplete definition of type 'struct X509_req_st'
        csr->req_info->enc.modified = 1;
        ~~~^
/usr/include/openssl/x509.h:162:16: note: forward declaration of 'struct X509_req_st'
typedef struct X509_req_st X509_REQ;
               ^
2 warnings and 13 errors generated.

Error: Build error: Failed compiling object src/openssl.o

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions