Op 25/04/2008 om 21:27:28 +0200, schreef Mark Martinec:
> > Using amavisd-new-2.6.0, amavisd-nanny gives me:
> >
> > Can't coerce GLOB to string in entersub at
> > /usr/lib/perl5/vendor_perl/5.8.8/i386 -linux-thread-multi/BerkeleyDB.pm
> > line 737.
> >
> > It seems that
> >       $env = BerkeleyDB::Env->new(
> >         -Home => $db_home, -Flags => DB_INIT_CDB | DB_INIT_MPOOL,
> >         -ErrFile => *STDOUT, -Verbose => 1);
> > should read
> >       $env = BerkeleyDB::Env->new(
> >         -Home => $db_home, -Flags => DB_INIT_CDB | DB_INIT_MPOOL,
> >          -Verbose => 1);
> > to fix that for me.
> >
> > I'm using: perl-BerkeleyDB-0.31-2, perl-5.8.8
> 
> Strange. The '-ErrFile => *STDOUT' was introduced with BerkeleyDB 0.26:
> 
>  * -Errfile will now accept a filehandle as well as a filename
>    This means that -ErrFile => *STDOUT will get all extended error
>    messages displayed directly on screen.
> 
> It works fine here (using BerkeleyDB 0.34).
> 
> Removing the option is also a valid workaround.

Strange indeed. As I am not intimately familiar with perl, I can't
explain it, however, I have found that the \*STDOUT construct does
seem to work:

      $env = BerkeleyDB::Env->new(
        -Home => $db_home, -Flags => DB_INIT_CDB | DB_INIT_MPOOL,
        -ErrFile => \*STDOUT, -Verbose => 1);

-- 
Leo Baltus, internetbeheerder                         /\
NPO ICT Internet Services                            /NPO/\
Sumatralaan 45, 1217 GP Hilversum, Filmcentrum, west \  /\/
[EMAIL PROTECTED], 035-6773555                         \/

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to