Opened 5 years ago

Closed 5 years ago

#59544 closed defect (fixed)

cherokee: error: incomplete definition of type 'struct dh_st'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: Chih-Hsuan Yen <yan12125@…>
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc: yan12125 (Chih-Hsuan Yen)
Port: cherokee

Description

cherokee does not build with openssl 1.1:

./cryptor_libssl_dh_1024.c:28:28: error: incomplete definition of type 'struct dh_st'
        if ((dh->p == NULL) || (dh->g == NULL))
                                ~~^

There are many other issues with the port that could possibly be addressed at the same time; see other open tickets.

Change History (1)

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

Owner: set to Chih-Hsuan Yen <yan12125@…>
Resolution: fixed
Status: newclosed

In c38f5ce3f10fbbca13892ff86f591bdeb7d098cd/macports-ports (master):

cherokee: use OpenSSL 1.0

I don't quite understand the +ssl variant. It's not a default
variant, and cherokee is still built with SSL support without
+ssl. Also, --enable-tls and --with-openssl have no effects.
Simply removing that variant and enabling SSL support
unconditionally is the best fix out of my head.

Upstream has patches for OpenSSL 1.1 [1], while a newer version
is required for those patches to be applied. On the other hand,
tarballs for new versions require running ./autogen.sh, where
a python2 command in $PATH is requested. That would be a
headache and I don't plan to invest more time into it.

Closes: #59544

[1] https://github.com/cherokee/webserver/pull/1196

Note: See TracTickets for help on using tickets.