syslog-ng supports geoip. The ebuild does not have a geoip USE flag that modifies --enable-geoip=yes/no/auto. As such, it will be built depending on the time that libGeoIP.so was built. This is problematic, especially in binary package situations. This causes nasty error messages such as: * Checking your configfile (/etc/syslog-ng/syslog-ng.conf) ... Error opening plugin module; module='tfgeoip', error='libGeoIP.so.1: cannot open shared object file: No such file or directory' [ ok ] * Starting syslog-ng ... Error opening plugin module; module='tfgeoip', error='libGeoIP.so.1: cannot open shared object file: No such file or directory' Please add a geoip USE flag that toggles --enable-geoip explicitly. Reproducible: Always
in portage. thanks for the bug report.
Just failed to re-emerge with geoip flag enabled. Merging fails on configure: checking for JSON_C... yes checking for GEOIP... no configure: error: Could not find libgeoip, and geoip support was explicitly enabled. This is from /var/tmp/portage/app-admin/syslog-ng-3.4.1/work/syslog-ng-3.4.1/config.log: configure:14346: checking for GEOIP configure:14353: $PKG_CONFIG --exists --print-errors "geoip" Variable 'exec_prefix' not defined in '/usr/lib/pkgconfig/geoip.pc' configure:14356: $? = 1 configure:14370: $PKG_CONFIG --exists --print-errors "geoip" Variable 'exec_prefix' not defined in '/usr/lib/pkgconfig/geoip.pc' configure:14373: $? = 1 configure:14387: result: no Variable 'exec_prefix' not defined in '/usr/lib/pkgconfig/geoip.pc' configure:14418: error: Could not find libgeoip, and geoip support was explicitly enabled. Installed lib: dev-libs/geoip-1.5.0 USE="ipv6 -city -perl-geoipupdate -static-libs" Contents of /usr/lib/pkgconfig/geoip.pc: prefix=/usr libdir=${exec_prefix}/lib includedir=${prefix}/include datadir=${prefix}/share Name: geoip Description: A non-DNS IP-to-country resolver library. Version: 1.5.0 Libs: -L${libdir} -lGeoIP Cflags: -I${includedir}/ databasedir=${datadir}/GeoIP
use geoip-1.5.0
(In reply to comment #3) > use geoip-1.5.0 That's exactly the version I mentioned above.
builds fine for me on stable amd64.