Thread View: news.software.nntp
7 messages
7 total messages
Started by Michael Grimm
Wed, 11 Aug 2010 16:52
cleanfeed / 2010-06-02 crashes on FBSD and perl v5.8.9
Author: Michael Grimm
Date: Wed, 11 Aug 2010 16:52
Date: Wed, 11 Aug 2010 16:52
40 lines
2176 bytes
2176 bytes
Hi --
Today I wanted to upgrade to the recent cleanfeed, but innd throws the
following error (and stops perl filtering, of course):
,----
| news> cat news.err
| [...] innd: Perl function filter_messageid died on id <msgid>: Undefined subroutine &main::filter_messageid called.
`----
This is on FreeBSD 8.0 and ...
,----
| news> perl --version
| This is perl, v5.8.9 built for amd64-freebsd
`----
perl -wc complains about ...
,----
| news> perl -wc cleanfeed
| Can't use global $_ in "my" at cleanfeed line 1582, near "my $_ "
| BEGIN not safe after errors--compilation aborted at cleanfeed line 2139.
`----
This refers to the new subroutine ...
,----
| # Extract the right-most FQDN from a Path header
| sub first_path_host{
| my $_ = shift;
| s/(![^\.]+)+$//; # Strip RH non-FQDNs
| s/.*!//; # Strip all but RH path entry
| return $_;
| };
`----
Anyone having success with cleanfeed and FBSD? Or is it the Perl
version?
Regards,
Michael
--
to let
Re: cleanfeed / 2010-06-02 crashes on FBSD and perl v5.8.9
Author: Gérald Niel
Date: Wed, 11 Aug 2010 18:02
Date: Wed, 11 Aug 2010 18:02
16 lines
1711 bytes
1711 bytes
Le Mercredi 11 août 2010 à 16:52 UTC, Michael Grimm écrivait sur news.software.nntp : > Anyone having success with cleanfeed and FBSD? Or is it the Perl > version? It is the perl version. You need to upgrade Perl to use the latest version of Cleanfeed. Read ports/UPDATING before. @+ -- Gérald Niel, aka "Mister G" <http://news.gegeweb.org> Gleb Bones : Soundtrack of Arrogance : <http://www.jamendo.com/album/46018> The low cost life : <http://www.jamendo.com/album/58519>
Re: cleanfeed / 2010-06-02 crashes on FBSD and perl v5.8.9
Author: Michael Grimm
Date: Wed, 11 Aug 2010 19:04
Date: Wed, 11 Aug 2010 19:04
19 lines
1703 bytes
1703 bytes
Gérald Niel <gerald.niel+spam@gegeweb.invalid> wrote: > Le Mercredi 11 août 2010 à 16:52 UTC, Michael Grimm écrivait sur news.software.nntp : >> Anyone having success with cleanfeed and FBSD? Or is it the Perl >> version? > > It is the perl version. > You need to upgrade Perl to use the latest > version of Cleanfeed. Read ports/UPDATING before. I did upgrade to perl v5.12, and now perl -wc doesn't complain any longer, and cleanfeed is running as expected. Merci! Regards, Michael -- to let
Re: cleanfeed / 2010-06-02 crashes on FBSD and perl v5.8.9
Author: Julien ÉLIE
Date: Wed, 11 Aug 2010 19:22
Date: Wed, 11 Aug 2010 19:22
24 lines
2101 bytes
2101 bytes
Hi Michael,
> I did upgrade to perl v5.12, and now perl -wc doesn't complain any
> longer, and cleanfeed is running as expected.
I also recommend to patch innreport with:
http://inn.eyrie.org/trac/changeset/9090
(Or you can also update INN to the latest snapshot.)
You will otherwise receive Perl warnings because of assignments to $[
that have been deprecated in Perl 5.12.1.
Dieter Stussy saw that.
If you use Perl 5.12.0, no problem.
--
Julien ÉLIE
« Deux informaticiens discutent vers le 2 janvier :
-- Qu'est ce que tu as pris comme résolution cette année ?
-- 1024 × 768, et toi ? »
Re: cleanfeed / 2010-06-02 crashes on FBSD and perl v5.8.9
Author: Michael Grimm
Date: Wed, 11 Aug 2010 20:16
Date: Wed, 11 Aug 2010 20:16
21 lines
2021 bytes
2021 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: >> I did upgrade to perl v5.12, and now perl -wc doesn't complain any >> longer, and cleanfeed is running as expected. > > I also recommend to patch innreport with: > http://inn.eyrie.org/trac/changeset/9090 Thanks for pointing me into that issue, because ... > You will otherwise receive Perl warnings because of assignments to $[ > that have been deprecated in Perl 5.12.1. ... I did upgrade to 5.12.1. Thus, I upgraded innreport as well. Merci! Regards, Michael -- to let
Re: cleanfeed / 2010-06-02 crashes on FBSD and perl v5.8.9
Author: Steve Crook
Date: Thu, 12 Aug 2010 08:50
Date: Thu, 12 Aug 2010 08:50
28 lines
1837 bytes
1837 bytes
On Wed, 11 Aug 2010 16:52:28 +0000 (UTC), Michael Grimm wrote in
Message-Id: <i3ukgc$2e3b$1@de-l.enfer-du-nord.net>:
>| # Extract the right-most FQDN from a Path header
>| sub first_path_host{
>| my $_ = shift;
>| s/(![^\.]+)+$//; # Strip RH non-FQDNs
>| s/.*!//; # Strip all but RH path entry
>| return $_;
>| };
Hi Michael,
I see you already have an answer to your problem so this is really just
for reference. The subroutine in question caused a few problems and has
been changed in the development code to:
# Extract the right-most FQDN from a Path header
sub first_path_host{
local $_ = shift;
s/(![^\.]+)+$//; # Strip RH non-FQDNs
s/!\.POSTED.*//; # Strip diagnostic host entry
s/.*!//; # Strip all but RH path entry
return $_;
};
Subversion Link:
http://www.mixmin.net/svn/cleanfeed/trunk/cleanfeed
Re: cleanfeed / 2010-06-02 crashes on FBSD and perl v5.8.9
Author: Michael Grimm
Date: Thu, 12 Aug 2010 17:33
Date: Thu, 12 Aug 2010 17:33
16 lines
1680 bytes
1680 bytes
Steve Crook <steve@mixmin.net> wrote: > On Wed, 11 Aug 2010 16:52:28 +0000 (UTC), Michael Grimm wrote > I see you already have an answer to your problem so this is really > just for reference. The subroutine in question caused a few problems > and has been changed in the development code to: [...] JFTR: replacing the old subroutine in cleanfeed 2010-06-02 with the development code works perfectly well with the old perl version of v5.8.9. cleanfeed doesn't crash any longer. Thanks, Michael -- to let
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads