-
Notifications
You must be signed in to change notification settings - Fork 601
Closed
Description
Right now when I build blead on AlmaLinux 8 (a Red Hat 8 clone), blead is failing to build.
My Configure options are:
$> BASE_DIR=/root/foo ./Configure -Dprefix=$BASE_DIR -Dusedevel -des -Doptimize='-Os' -Dusemymalloc='n' -Duseshrplib -Dinstallusrbinperl=no -Dscriptdir=$BASE_DIR/bin -Dscriptdirexp=$BASE_DIR/bin -Dman1dir=none -Dman3dir=none -Uuseithreads
make test leads to:
# Failed test 'ZLIB_VERSION (1.2.12) matches Compress::Zlib::zlib_version'
# at t/cz-01version.t line 34.
# got: '1.2.12'
# expected: '1.2.11'
#
# The version of zlib.h does not match the version of libz
#
# You have zlib.h version 1.2.12
# and libz version 1.2.11
#
# You probably have two versions of zlib installed on your system.
# Try removing the one you don't want to use and rebuild.
# Looks like you failed 1 test of 2.
../cpan/IO-Compress/t/cz-01version.t ...............................
This is because for "reasons" on AlmaLinux 8, libperl links to libnsl which eventually links to libz. This then conflicts with the compiled version that Compress::Raw::Zlib uses. This test is revealing that Zlib.so is improperly using symbols from the shared library, not what was compiled statically into the so file.
This has been reported at pmqs/Compress-Raw-Zlib#8 but given how close Perl 5.36 is to release, I thought I would report it here also.