SA Bugzilla – Bug 7079
URILocalBL.pm emits warnings to stderr if GeoIP datafile(s) missing
Last modified: 2014-09-04 20:06:17 UTC
Created attachment 5233 [details] Redirect stderr to /dev/null momentarily This was introduced in bug #7060. Problem is that libGeoIP writes to stderr, even though it's a library and return codes should be adequate for indicating errors. Bug has been filed with MaxMind.com (the authors of libGeoIP, which is used in the CPAN module Geo::IP which we use). In the meantime, here's a workaround for version 1.5.1 and earlier.
Thanks Philip, svn commit -m 'Bug 7079 to hide the Geo::IP warning' Sending lib/Mail/SpamAssassin/Plugin/URILocalBL.pm Transmitting file data . Committed revision 1621867.
Note that this has been fixed upstream in geoip-api-c version 1.44 and geoip-api-perl (Geo::IP) version 1.6.3 (both unreleased at this time).
(In reply to Philip Prindeville from comment #2) > Note that this has been fixed upstream in geoip-api-c version 1.44 and > geoip-api-perl (Geo::IP) version 1.6.3 (both unreleased at this time). Thanks Philip!
Created attachment 5234 [details] Better fix This patch detects whether Geo::IP exports the symbol GEOIP_SILENCE. If it does, then the underlying XS stubs automatically set that flag when calling into the C API's GeoIP_open() or GeoIP_new()... and hence don't exhibit the broken behavior.
Thanks and committed. svn commit -m 'better patch for GeoIP warning- bug 7079' Sending lib/Mail/SpamAssassin/Plugin/URILocalBL.pm Transmitting file data . Committed revision 1622551.