Bug 1534596 - perl-Net-Patricia-1.22-15.fc28 FTBFS: /usr/bin/ld: cannot find -lnsl
Summary: perl-Net-Patricia-1.22-15.fc28 FTBFS: /usr/bin/ld: cannot find -lnsl
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-Net-Patricia
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Pisar
QA Contact: Fedora Extras Quality Assurance
URL: https://apps.fedoraproject.org/kosche...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-15 14:23 UTC by Petr Pisar
Modified: 2018-02-12 10:19 UTC (History)
3 users (show)

Fixed In Version: perl-Net-Patricia-1.22-17.fc28
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-12 10:19:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
CPAN 124088 0 None None None 2018-01-15 14:28:30 UTC
Red Hat Bugzilla 1531540 0 unspecified CLOSED glibc: Remove Sun RPC and NIS interfaces 2021-02-22 00:41:40 UTC

Internal Links: 1531540

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.


Note You need to log in before you can comment on or make changes to this bug.