p5-Mail-SpamAssassin-2.62 fails with 4.9-STABLE base Perl.

Mathieu Arnold mat at mat.cc
Tue Jan 20 11:30:31 PST 2004


It was fixed earlier today.

+-Le 20/01/2004 13:10 -0500, Paul Mather écrivait :
| I just portupgraded my installed (working) mail/p5-Mail-SpamAssassin
| port today to the latest version (2.61->2.62) and it appears to have
| broken in the process.  Does SpamAssassin no longer work with the base
| Perl that is part of 4.9-STABLE?
| 
| Here is what I get when I try to run spamassassin:
| 
| gromit# spamassassin --version
| Can't use subscript on split at
| /usr/local/lib/perl5/site_perl/5.005/Mail/SpamAssassin.pm line 100, near
| "1]" gromit# 
| 
| The same happens with other spamassassin utilities:
| 
| gromit# sa-learn --version
| Can't use subscript on split at
| /usr/local/lib/perl5/site_perl/5.005/Mail/SpamAssassin.pm line 100, near
| "1]" BEGIN failed--compilation aborted at
| /usr/local/lib/perl5/site_perl/5.005/Mail/SpamAssassin/CmdLearn.pm line 6.
| gromit# 
| 
| I don't know much about Perl, but the error message suggests an
| unsupported language feature is being used, leading me to believe that
| 5.005 is just too old to hack it for SpamAssassin any more.
| 
| My installed Perl is as follows:
| 
|>>>>> 
| gromit# perl -v
| 
| This is perl, version 5.005_03 built for i386-freebsd
| 
| Copyright 1987-1999, Larry Wall
| 
| Perl may be copied only under the terms of either the Artistic License or
| the GNU General Public License, which may be found in the Perl 5.0 source
| kit.
| 
| Complete documentation for Perl, including FAQ lists, should be found on
| this system using `man perl' or `perldoc perl'.  If you have access to the
| Internet, point your browser at http://www.perl.com/, the Perl Home Page.
| 
| gromit# perl -V
| Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
|   Platform:
|     osname=freebsd, osvers=4.0-current, archname=i386-freebsd
|     uname='FreeBSD freefall.FreeBSD.org 4.0-current FreeBSD 4.0-current
| #0: $Date$'     hint=recommended, useposix=true, d_sigaction=define
|     usethreads=undef useperlio=undef d_sfio=undef
|   Compiler:
|     cc='cc', optimize='undef', gccversion=2.95.2 19991024 (release)
|     cppflags=''
|     ccflags =''
|     stdchar='char', d_stdstdio=undef, usevfork=true
|     intsize=4, longsize=4, ptrsize=4, doublesize=8
|     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
|     alignbytes=4, usemymalloc=n, prototype=define
|   Linker and Libraries:
|     ld='cc', ldflags ='-Wl,-E -lperl -lm '
|     libpth=/usr/lib
|     libs=-lm -lc -lcrypt
|     libc=, so=so, useshrplib=true, libperl=libperl.so.3
|   Dynamic Linking:
|     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='
| -Wl,-R/usr/lib'     cccdlflags='-DPIC -fpic', lddlflags='-Wl,-E -shared
| -lperl -lm '
| 
| 
| Characteristics of this binary (from libperl): 
|   Built under freebsd
|   Compiled at Dec  1 2003 09:44:15
|   @INC:
|     /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
|     /usr/local/lib/perl5/site_perl/5.005
|     .
|     /usr/libdata/perl/5.00503/mach
|     /usr/libdata/perl/5.00503
| gromit# 
| <<<<<
| 
| I did a forced portupgrade of SpamAssassin and all of its components
| (portupgrade -fRr mail/p5-Mail-SpamAssassin), but that didn't cure the
| problem.
| 
| Is the only solution to the problem to downgrade SpamAssassin or to
| upgrade to a ports version of Perl.  If the latter, is there a FAQ for
| doing so and ensuring all the installed Perl ports get updated, too?
| 
| Cheers,
| 
| Paul.
| 
| e-mail: paul at gromit.dlib.vt.edu
| 
| "Without music to decorate it, time is just a bunch of boring production
|  deadlines or dates by which bills must be paid."
|         --- Frank Vincent Zappa
| _______________________________________________
| freebsd-perl at freebsd.org mailing list
| http://lists.freebsd.org/mailman/listinfo/freebsd-perl
| To unsubscribe, send any mail to "freebsd-perl-unsubscribe at freebsd.org"



+-Le 20/01/2004 18:59 +0000, Scott McWhirter écrivait :
| On Tue, Jan 20, 2004 at 01:10:37PM -0500, Paul Mather wrote:
|> I just portupgraded my installed (working) mail/p5-Mail-SpamAssassin
|> port today to the latest version (2.61->2.62) and it appears to have
|> broken in the process.  Does SpamAssassin no longer work with the base
|> Perl that is part of 4.9-STABLE?
|> 
|> Here is what I get when I try to run spamassassin:
|> 
|> gromit# spamassassin --version
|> Can't use subscript on split at
|> /usr/local/lib/perl5/site_perl/5.005/Mail/SpamAssassin.pm line 100, near
|> "1]" gromit# 
| 
| I think it's a bug in spamassassin actually...
| try this in line 100:
|   - push(@EXTRA_VERSION, ( 'r' . qw{$LastChangedRevision: 6141 $ updated
| by SVN}[1] ));   + push(@EXTRA_VERSION, ( 'r' . (qw{$LastChangedRevision:
| 6141 $ updated by SVN})[1] ));
| 
| I would try to test, but don't have access to that particular version of
| perl.



-- 
Mathieu Arnold


More information about the freebsd-perl mailing list