Build of Python 3.8.10/3.9.5 fails on 12.2-RELEASE

Yasuhiro Kimura yasu at
Mon May 10 07:31:35 UTC 2021


I submitted patches to update lang/python3[89] to 3.8.10/3.9.5

Bug 255729 - lang/python38: Update to 3.8.10
Bug 255730 - lang/python39: Update to 3.9.5

I created them on 13.0-RELEASE. But after submitting them I found
build of them fail on 12.2-RELEASE as following.

/wrkdirs/usr/ports/lang/python38/work/Python-3.8.10/Modules/_ssl.c:3118:27: error: implicit declaration of function 'SSLv3_method' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        ctx = SSL_CTX_new(SSLv3_method());
/wrkdirs/usr/ports/lang/python38/work/Python-3.8.10/Modules/_ssl.c:3118:27: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const SSL_METHOD *' (aka 'const struct ssl_method_st *') [-Wint-conversion]
        ctx = SSL_CTX_new(SSLv3_method());
/usr/include/openssl/ssl.h:1503:47: note: passing argument to parameter 'meth' here
__owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
2 warnings and 1 error generated.

Full build logs.

3.8.10 on 12.2-RELEASE:
3.8.10 on 13.0-RELEASE:
3.9.5 on 12.2-RELEASE:
3.9.5 on 13.0-RELEASE:

Futher, build also succeeds with 14-CURRENT and 11.4-RELEASE. So it
fails only with 12.2-RELEASE.

Since FreeBSD 12 or later use OpenSSL 1.1.1, it means build fails with
OpenSSL 1.1.1 in one case but succeeds in other cases. It seems quite
strange for me.

Any suggestions?

Yasuhiro Kimura

More information about the freebsd-ports mailing list