Created attachment 233905 [details]
Patch to remove -DZ_PREFIX
After doing a portupgrade of this package on FreeBSD 11.4 (I know, we're in the progress of migrating... :-), munin-run apache_accesses gives
/usr/local/lib/perl5/site_perl/mach/5.32/auto/Compress/Raw/Zlib/Zlib.so: Undefined symbol "z_zlibVersion"
The munin plugin in question runs a Perl script using LWP::UserAgent, which may need to handle zlib-compressed streams.
I think the addition of -DZ_PREFIX to DEFINES may have caused the issue; as another developer noted, this is done in this version regardless of whether BUILD_ZLIB is set to false, which is what FreeBSD does as well in a patch:
"the system zlib will of course have the regular symbol names and not the renamed versions."
I added the attached patch to end of the port's files/patch-config.in (bearing in mind that the last line of the existing patch is empty) and re-ran the portupgrade, after which the munin plugin ran correctly.
I reported this upstream there, but figured I should mention it here as others may come across it as well. Not sure if it breaks anything, but it worked for me.
Amavisd didn't start, with patch applied, it works again
On FreeBSD 13-STABLE amd64
Upstream has released 2.105 to address this issue (though in Changes it still says 2.104 again, hopefully nothing triggers off that).
It is fixed in c0fb55c34187d539ea6faddfe6de16b3e75599ee (2.105). Thanks!