Bug 1534596

Summary: perl-Net-Patricia-1.22-15.fc28 FTBFS: /usr/bin/ld: cannot find -lnsl
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perl-Net-PatriciaAssignee: Petr Pisar <ppisar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: orion, perl-devel, philipp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://apps.fedoraproject.org/koschei/build/3996333
Whiteboard:
Fixed In Version: perl-Net-Patricia-1.22-17.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-12 10:19:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Pisar 2018-01-15 14:23:22 UTC
perl-Net-Patricia-1.22-15.fc28 fails to build in F28:

gcc  -shared -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/local/lib -fstack-protector-strong  Patricia.o  -o blib/arch/auto/Net/Patricia/Patricia.so libpatricia/libpatricia.a \
   -lnsl -lperl   \
  
/usr/bin/ld: cannot find -lnsl

This is caused by upgrading glibc-headers from 2.26.9000-38.fc28 to 2.26.9000-40.fc28. glibc moved libnsl.so to libnsl2-devel.

Net-Patricia's Makefile.PL:8 explicitly links to libnsl:

WriteMakefile(
    'NAME'  => 'Net::Patricia',
    'VERSION_FROM' => 'Patricia.pm', # finds $VERSION
→   'LIBS'  => ['-lnsl'],   # e.g., '-lm' 

However the no header from libsl2-devel seems to be included by Net-Patricia-1.22 sources. It looks like a mistake.