Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 636850 - dev-perl/Net-SSLeay fails to build on mips/n32 multilib
Summary: dev-perl/Net-SSLeay fails to build on mips/n32 multilib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-08 04:44 UTC by Matt Turner
Modified: 2017-11-26 04:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,116.00 KB, text/plain)
2017-11-08 04:44 UTC, Matt Turner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Turner gentoo-dev 2017-11-08 04:44:00 UTC
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.
Comment 1 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-11-26 02:47:27 UTC
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.
Comment 2 Matt Turner gentoo-dev 2017-11-26 04:10:16 UTC
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