https://bugzilla.redhat.com/show_bug.cgi?id=1704785
Bug ID: 1704785 Summary: perl-Net-SSLeay-1.85-9.fc29 FTBFS: /usr/bin/ld: cannot find -lz Product: Fedora Version: 29 Status: NEW Component: perl-Net-SSLeay Assignee: paul@city-fan.org Reporter: ppisar@redhat.com QA Contact: extras-qa@fedoraproject.org CC: jose.p.oliveira.oss@gmail.com, kasal@ucw.cz, paul@city-fan.org, perl-devel@lists.fedoraproject.org Target Milestone: --- Classification: Fedora
perl-Net-SSLeay-1.85-9.fc29 fails to build in F29 and F30:
gcc -lpthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr -L/usr/lib64 -L/usr/lib -L/usr/local/lib -fstack-protector-strong SSLeay.o -o blib/arch/auto/Net/SSLeay/SSLeay.so \ -L/usr -L/usr/lib64 -L/usr/lib -lssl -lcrypto -lz -lperl \
BUILDSTDERR: /usr/bin/ld: cannot find -lz
That's caused by openssl-devel-1.1.1b-4 that removed a dependency on zlib-devel and that was pushed into Fedora ≥ 29. A possible fix is applying
commit f571bb6a6929c47b8323c6f2c5214cfefa9dcf37 Author: Paul Howarth paul@city-fan.org Date: Sat Mar 30 08:06:53 2019 +0000
Get libraries to link against from pkg-config
Upstream pull request: https://github.com/radiator-software/p5-net-ssleay/pull/127
to that Fedoras.