logwatch-7.3.7_pre20100211 generates the following output for sshd: --------------------- SSHD Begin ------------------------ syntax error at /usr/share/logwatch/scripts/services/sshd line 316, near ") (" syntax error at /usr/share/logwatch/scripts/services/sshd line 319, near "} elsif" Global symbol "$ThisLine" requires explicit package name at /usr/share/logwatch/scripts/services/sshd line 319. syntax error at /usr/share/logwatch/scripts/services/sshd line 324, near "}" Global symbol "$ThisLine" requires explicit package name at /usr/share/logwatch/scripts/services/sshd line 324. syntax error at /usr/share/logwatch/scripts/services/sshd line 329, near "}" syntax error at /usr/share/logwatch/scripts/services/sshd line 336, near "}" Can't use global $1 in "my" at /usr/share/logwatch/scripts/services/sshd line 369, near "{$1" syntax error at /usr/share/logwatch/scripts/services/sshd line 391, near "}" Unterminated <> operator at /usr/share/logwatch/scripts/services/sshd line 435. ---------------------- SSHD End ------------------------- I've modified these lines: ($ThisLine =~ m/^error: chan_shutdown_read failed for .+/) ($ThisLine =~ /Timeout, client not responding\./) by ($ThisLine =~ m/^error: chan_shutdown_read failed for .+/) or ($ThisLine =~ m/Timeout, client not responding\./) and that seems to solve the problem (but I'm not a Perl expert). There is also a small problem with postfix script: --------------------- Postfix Begin ------------------------ "-T" is on the #! line, it must also be used on the command line at /usr/share/logwatch/scripts/services/postfix line 1. ---------------------- Postfix End ------------------------- Reproducible: Always Steps to Reproduce: 1. emerge -1 =sys-apps/logwatch-7.3.7_pre20100211 2. /etc/cron.daily/00-logwatch 3. Check your emails
Please post the output of `emerge --info =sys-apps/logwatch-7.3.7_pre20100211' too.
i've commited your fixes to a new snapshot. thanks
I have exactly the same problem (same output). The reason is perhaps the perl version that I use - dev-lang/perl-5.10.1