Perl 5.40.0: When Compress::Raw::Zlib
is built statically, auto/Compress/Raw/Zlib/Zlib.a
exports z_errmsg
and pollutes the symbol space, preventing static linking with libz.a
#22780
Labels
In order to work around, I had to rename the
z_errmsg
symbol:Without this, I'm getting this error when linking a custom binary with both
Zlib.a
andlibz.a
(on Alpine which ships withlibz.a
):Demonstration in GitHub Actions workflow of
nm perlsourcestatic/perlprefix/lib/5.4.0/x86_64-linux/auto/Compress/Raw/Zlib/Zlib.a
showing the export ofz_errmsg
fromzutil.o
, full output of the nm command is below:nm ./perlsourcestatic/perlprefix/lib/$PERLVER/x86_64-linux/auto/Compress/Raw/Zlib/Zlib.a
The text was updated successfully, but these errors were encountered: