Opened 5 years ago

Closed 5 years ago

#58962 closed defect (fixed)

bacula @7.0.4: error: unknown type name 'IMPLEMENT_STACK_OF'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: yan12125 (Chih-Hsuan Yen)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: bacula

Description

bacula doesn't build:

crypto.c:195:1: error: unknown type name 'IMPLEMENT_STACK_OF'
IMPLEMENT_STACK_OF(SignerInfo)
^
crypto.c:195:31: error: expected ';' after top level declarator
IMPLEMENT_STACK_OF(SignerInfo)
                              ^
                              ;
crypto.c:273:15: error: field has incomplete type 'EVP_MD_CTX' (aka 'evp_md_ctx_st')
   EVP_MD_CTX ctx;
              ^
/opt/local/include/openssl/ossl_typ.h:92:16: note: forward declaration of 'evp_md_ctx_st'
typedef struct evp_md_ctx_st EVP_MD_CTX;
               ^
crypto.c:291:19: error: field has incomplete type 'EVP_CIPHER_CTX' (aka 'evp_cipher_ctx_st')
   EVP_CIPHER_CTX ctx;
                  ^
/opt/local/include/openssl/ossl_typ.h:90:16: note: forward declaration of 'evp_cipher_ctx_st'
typedef struct evp_cipher_ctx_st EVP_CIPHER_CTX;
               ^
crypto.c:332:24: error: member access into incomplete type 'X509_EXTENSION' (aka 'X509_extension_st')
   ext_value_data = ext->value->data;
                       ^
/opt/local/include/openssl/x509.h:81:16: note: forward declaration of 'X509_extension_st'
typedef struct X509_extension_st X509_EXTENSION;
               ^
crypto.c:339:77: error: member access into incomplete type 'X509_EXTENSION' (aka 'X509_extension_st')
      keyid = (ASN1_OCTET_STRING *) ASN1_item_d2i(NULL, &ext_value_data, ext->value->length,
                                                                            ^
/opt/local/include/openssl/x509.h:81:16: note: forward declaration of 'X509_extension_st'
typedef struct X509_extension_st X509_EXTENSION;
               ^
crypto.c:345:75: error: member access into incomplete type 'X509_EXTENSION' (aka 'X509_extension_st')
      keyid = (ASN1_OCTET_STRING *) method->d2i(NULL, &ext_value_data, ext->value->length);
                                                                          ^
/opt/local/include/openssl/x509.h:81:16: note: forward declaration of 'X509_extension_st'
typedef struct X509_extension_st X509_EXTENSION;
               ^
2 warnings generated.
crypto.c:365:37: error: invalid application of 'sizeof' to an incomplete type 'X509_KEYPAIR' (aka 'X509_Keypair')
   keypair = (X509_KEYPAIR *)malloc(sizeof(X509_KEYPAIR));
                                    ^     ~~~~~~~~~~~~~~
./smartall.h2 warnings generated.
:63:55: note: expanded from macro 'malloc'
#define malloc(x)      sm_malloc(__FILE__, __LINE__, (x))
                                                      ^
./crypto.h:39:16: note: forward declaration of 'X509_Keypair'
typedef struct X509_Keypair X509_KEYPAIR;
               ^
crypto.c:368:11: error: member access into incomplete type 'X509_KEYPAIR' (aka 'X509_Keypair')
   keypair->keyid = NULL;
          ^
./crypto.h:39:16: note: forward declaration of 'X509_Keypair'
typedef struct X509_Keypair X509_KEYPAIR;
               ^
crypto.c:369:11: error: member access into incomplete type 'X509_KEYPAIR' (aka 'X509_Keypair')
   keypair->pubkey = NULL;
          ^
./crypto.h:39:16: note: forward declaration of 'X509_Keypair'
typedef struct X509_Keypair X509_KEYPAIR;
               ^
crypto.c:370:11: error: member access into incomplete type 'X509_KEYPAIR' (aka 'X509_Keypair')
   keypair->privkey = NULL;
          ^
./crypto.h:39:16: note: forward declaration of 'X509_Keypair'
typedef struct X509_Keypair X509_KEYPAIR;
               ^
crypto.c:393:15: error: member access into incomplete type 'X509_KEYPAIR' (aka 'X509_Keypair')
   if (keypair->pubkey) {
              ^
./crypto.h:39:16: note: forward declaration of 'X509_Keypair'
typedef struct X509_Keypair X509_KEYPAIR;
               ^
crypto.c:394:27: error: member access into incomplete type 'X509_KEYPAIR' (aka 'X509_Keypair')
      CRYPTO_add(&(keypair->pubkey->references), 1, CRYPTO_LOCK_EVP_PKEY);
                          ^
./crypto.h:39:16: note: forward declaration of 'X509_Keypair'
typedef struct X509_Keypair X509_KEYPAIR;
               ^
Compiling daemon.c
2 warnings generated.
crypto.c:394:53: error: use of undeclared identifier 'CRYPTO_LOCK_EVP_PKEY'
      CRYPTO_add(&(keypair->pubkey->references), 1, CRYPTO_LOCK_EVP_PKEY);
                                                    ^
crypto.c:395:14: error: member access into incomplete type 'X509_KEYPAIR' (aka 'X509_Keypair')
      newpair->pubkey = keypair->pubkey;
             ^
./crypto.h:39:16: note: forward declaration of 'X509_Keypair'
typedef struct X509_Keypair X509_KEYPAIR;
               ^
crypto.c:399:15: error: member access into incomplete type 'X509_KEYPAIR' (aka 'X509_Keypair')
   if (keypair->privkey) {
              ^
./crypto.h:39:16: note: forward declaration of 'X509_Keypair'
typedef struct X509_Keypair X509_KEYPAIR;
               ^
crypto.c:400:27: error: member access into incomplete type 'X509_KEYPAIR' (aka 'X509_Keypair')
      CRYPTO_add(&(keypair->privkey->references), 1, CRYPTO_LOCK_EVP_PKEY);
                          ^
./crypto.h:39:16: note: forward declaration of 'X509_Keypair'
typedef struct X509_Keypair X509_KEYPAIR;
               ^
Compiling edit.c
Compiling fnmatch.c
Compiling guid_to_name.c
crypto.c:400:54: error: use of undeclared identifier 'CRYPTO_LOCK_EVP_PKEY'
      CRYPTO_add(&(keypair->privkey->references), 1, CRYPTO_LOCK_EVP_PKEY);
                                                     ^
crypto.c:401:14: error: member access into incomplete type 'X509_KEYPAIR' (aka 'X509_Keypair')
      newpair->privkey = keypair->privkey;
             ^
./crypto.h:39:16: note: forward declaration of 'X509_Keypair'
typedef struct X509_Keypair X509_KEYPAIR;
               ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]

Change History (2)

comment:1 Changed 5 years ago by yan12125 (Chih-Hsuan Yen)

Owner: set to yan12125
Status: newaccepted

comment:2 Changed 5 years ago by Chih-Hsuan Yen <yan12125@…>

Resolution: fixed
Status: acceptedclosed

In 56a0771a02c7f5c6e93edc600198bc90f739b234/macports-ports (master):

bacula: update to 9.4.4; fix building

Closes: #58962

Note: See TracTickets for help on using tickets.