Created attachment 503082 [details] build.log It attempts to link using -L/usr -L/usr/lib64 -L/usr/lib32 -lssl -lcrypto -lz and incorrectly links against the lib64 libc instead of the lib32 one. The problematic code is in inc/Module/Install/PRIVATE/Net/SSLeay.pm: for ($prefix, "$prefix/lib64", "$prefix/lib", "$prefix/out32dll") { push @{$opts->{lib_paths}}, $_ if -d $_; } Not sure where lib32 is coming from exactly, but it's the location of the default ABI libraries. Perhaps that loop is totally unnecessary.
Can you try this against 1.820.0? There was a sed line in existing verisons that was supposed to patch that line to include $(get_libdir), however, the line that got patched changed, and the sed replacement silently failed to fix it. This is remedied now with a proper patch and ENV passing in 1.820.0, which should do the right thing.
Thanks, yeah that fixes it. commit 619e6241484602eda67523a66d1b6ac71ac505e6 Author: Kent Fredric <kentnl@gentoo.org> Date: Sun Nov 26 15:40:35 2017 +1300 dev-perl/Net-SSLeay: Bump to version 1.820.0 re bug #614462