trusteddomainproject / OpenDKIM

Other
97 stars 52 forks source link

Can't compile on CentOS 8 Stream #138

Open josephks opened 2 years ago

josephks commented 2 years ago

Running configure ends with:

checking for openssl/pem.h... yes
checking openssl/rsa.h usability... yes
checking openssl/rsa.h presence... yes
checking for openssl/rsa.h... yes
checking openssl/sha.h usability... yes
checking openssl/sha.h presence... yes
checking for openssl/sha.h... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking for library containing ERR_peek_error... none required
checking for library containing SSL_library_init... no
configure: error: Cannot build shared opendkim
                                              against static openssl libraries.
                                              Configure with --disable-shared
                                              to get this working or obtain a
                                              shared libssl library for
                                              opendkim to use.
Command exited with non-zero status 1

Running configure --disable-shared ends with:

checking for openssl/pem.h... yes
checking openssl/rsa.h usability... yes
checking openssl/rsa.h presence... yes
checking for openssl/rsa.h... yes
checking openssl/sha.h usability... yes
checking openssl/sha.h presence... yes
checking for openssl/sha.h... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking for library containing ERR_peek_error... none required
checking for library containing SSL_library_init... no
checking for library containing SSL_library_init... no
configure: error: libssl not found
Command exited with non-zero status 1

openssl-devel is installed.

premeau commented 1 year ago

EL8 (and EL9) appear to restrict older OpenSSL (< 1.1.0) calls.

See #161 for a possible, but untested workaround.

thegushi commented 1 year ago

Can you try checking out the "develop" branch and seeing if that builds more cleanly? If not, please post logs?