Opened 5 years ago

Closed 5 years ago

#58968 closed defect (fixed)

aimage: error: field has incomplete type 'EVP_MD_CTX' (aka 'evp_md_ctx_st')

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

Description

aimage does not build:

In file included from imager.cpp:4:
In file included from ./imager.h:2:
./hash_t.h:163:16: error: field has incomplete type 'EVP_MD_CTX' (aka 'evp_md_ctx_st')
    EVP_MD_CTX mdctx;        /* the context for computing the value */
               ^
/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;
               ^
In file included from ident.cpp:3:
In file included from ./imager.h:2:
./hash_t.h:163:16: error: field has incomplete type 'EVP_MD_CTX' (aka 'evp_md_ctx_st')
    EVP_MD_CTX mdctx;        /* the context for computing the value */
               ^
/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;
               ^
In file included from gui.cpp:50:
In file included from ./imager.h:2:
./hash_t.h:163:16: error: field has incomplete type 'EVP_MD_CTX' (aka 'evp_md_ctx_st')
    EVP_MD_CTX mdctx;        /* the context for computing the value */
               ^
/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;
               ^
imager.cpp:320:25: warning: 'memset' call operates on objects of type 'unsigned char' while the size is based on a different type 'unsigned char *' [-Wsizeof-pointer-memaccess]
    memset(buf,0,sizeof(buf));
           ~~~          ^~~
imager.cpp:320:25: note: did you mean to provide an explicit length?
    memset(buf,0,sizeof(buf));
                        ^~~
In file included from aimage_os.cpp:3:
In file included from ./imager.h:2:
./hash_t.h:163:16: error: field has incomplete type 'EVP_MD_CTX' (aka 'evp_md_ctx_st')
    EVP_MD_CTX mdctx;        /* the context for computing the value */
               ^
/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;
               ^
1 warning and 1 error generated.
1 error generated.
1 error generated.
1 error generated.
make[2]: *** [aimage_os.o] Error 1
make[2]: *** Waiting for unfinished jobs....

Change History (2)

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

Cc: yan12125 removed
Owner: set to yan12125
Status: newaccepted

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

Resolution: fixed
Status: acceptedclosed

In fb9b14b429de03e4f7e54acff7280b2292a2833d/macports-ports (master):

aimage: fix building

I can't find a patch to make it build with OpenSSL 1.1, and upstream
appears dead (the homepage is now a parked domain), so I don't put
efforts on patching it.

Rev-bumped as dependencies are changed.

Closes: #58968

Note: See TracTickets for help on using tickets.