Current stable version of m2crypto fails to compile against openssl-1.1.0. Version 0.31.0-r1 works for me.
I think -r2 would be better as it has this fix https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c273e6144e107d5b034f8af0d0f2c442ffb7ed27
amd64 stable
arm64 stable
arm stable
sparc stable
x86 stable
s390 stable
ia64 stable
ppc64 stable
ppc stable
hppa done as commit 65d1de7e88c60f53fd557b624b6cd3d48594404f Author: Rolf Eike Beer <eike@sf-mail.de> Date: Sat Apr 27 17:13:50 2019 +0200 dev-python/m2crypto: stable 0.31.0-r2 for hppa, bug #679662
alpha straight to stable