Error after perl5 upgrade 5.8.8 to 5.8.9 on FreeBSD

Martin Hepworth maxsec at gmail.com
Thu Jan 29 12:52:31 GMT 2009


Someone did the same thing a couple of weeks ago - not sure of the
resolution, but should be in the list archives.

have you tried reinstalling mailscanner and the perl modules required?


--
martin

2009/1/29 Johan Hendriks <Johan at double-l.nl>:
> Hello all i am trying to get Mailscanner to work after a perl upgrade on my
> FreeBSD Machine.
>
>
>
> The error in my maillog is the following.
>
>
>
> Jan 16 11:46:03 mailscanner MailScanner[37117]: MailScanner E-Mail Virus
>
>>> Jan 16 11:46:03 mailscanner MailScanner[37117]: Could not use Custom
>
>>> Function code
>
>>> /usr/local/lib/MailScanner/MailScanner/CustomFunctions/DavidHooton.pm, it
>
>>> could not be "require"d. Make sure the last line of the file says "1;"
>
>>> Jan 16 11:46:03 mailscanner MailScanner[37117]: Could not use Custom
>
>>> Function code
>
>>> /usr/local/lib/MailScanner/MailScanner/CustomFunctions/SpamWhitelist.pm,
>>> it
>
>>> could not be "require"d. Make sure the last line of the file says "1;"
>
>>> Jan 16 11:46:03 mailscanner MailScanner[37117]: Could not use Custom
>
>>> Function code
>
>>>
>>> /usr/local/lib/MailScanner/MailScanner/CustomFunctions/ZMRouterDirHash.pm,
>
>>> it could not be "require"d. Make sure the last line of the file says "1;"
>
>>> Jan 16 11:46:03 mailscanner MailScanner[37117]: Could not use Custom
>
>>> Function code
>
>>> /usr/local/lib/MailScanner/MailScanner/CustomFunctions/CustomAction.pm,
>>> it
>
>>> could not be "require"d. Make sure the last line of the file says "1;"
>
>>> Jan 16 11:46:03 mailscanner MailScanner[37117]: Could not use Custom
>
>>> Function code
>
>>> /usr/local/lib/MailScanner/MailScanner/CustomFunctions/LastSpam.pm, it
>>> could
>
>>> not be "require"d. Make sure the last line of the file says "1;"
>
>>> Jan 16 11:46:03 mailscanner MailScanner[37117]: Could not use Custom
>
>>> Function code
>
>>>
>>> /usr/local/lib/MailScanner/MailScanner/CustomFunctions/Ruleset-from-Function.pm,
>
>>>  it could not be "require"d. Make sure the last line of the file says
>>> "1;"
>
>>> Jan 16 11:46:03 mailscanner MailScanner[37117]: Could not use Custom
>
>>> Function code
>
>>>
>>> /usr/local/lib/MailScanner/MailScanner/CustomFunctions/GenericSpamScanner.pm,
>
>>>  it could not be "require"d. Make sure the last line of the file says
>>> "1;"
>
>>> Jan 16 11:46:03 mailscanner MailScanner[37117]: Could not use Custom
>
>>> Function code
>
>>> /usr/local/lib/MailScanner/MailScanner/CustomFunctions/MailWatch.pm, it
>
>>> could not be "require"d. Make sure the last line of the file says "1;"
>
>>> Jan 16 11:46:03 mailscanner MailScanner[37117]: Could not use Custom
>
>>> Function code
>
>>>
>>> /usr/local/lib/MailScanner/MailScanner/CustomFunctions/SQLBlackWhiteList.pm,
>
>>> it could not be "require"d. Make sure the last line of the file says "1;"
>
>>> Jan 16 11:46:03 mailscanner MailScanner[37117]: Could not use Custom
>
>>> Function code
>
>>>
>>> /usr/local/lib/MailScanner/MailScanner/CustomFunctions/SQLSpamSettings.pm,
>
>>> it could not be "require"d. Make sure the last line of the file says "1;"
>
>>> Jan 16 11:46:03 mailscanner MailScanner[37117]: Could not use Custom
>
>>> Function code
>
>>> /usr/local/lib/MailScanner/MailScanner/CustomFunctions/MyExample.pm, it
>
>>> could not be "require"d. Make sure the last line of the file says "1;"
>
>
>
>
>
> Then I added the –w to the mailscanner file
>
>
>
> And this is what I get on my console.
>
> This is Mailscanner 4.74.16 (trying to make a port myself), the error above
> happens also with the official port
>
>
>
> Starting mailscanner.
>
> Useless use of hash element in void context at
> /usr/local/lib/MailScanner/MailScanner/Config.pm line 892.
>
> Use of implicit split to @_ is deprecated at
> /usr/local/lib/MailScanner/MailScanner/Config.pm line 2085.
>
> Unquoted string "hostname" may clash with future reserved word at
> /usr/local/lib/MailScanner/MailScanner/CustomConfig.pm line 300.
>
> Parameterless "use IO" deprecated at
> /usr/local/lib/MailScanner/MailScanner/CustomConfig.pm line 749
>
> "my" variable $LimitsH masks earlier declaration in same scope at
> /usr/local/lib/MailScanner/MailScanner/CustomConfig.pm line 796.
>
> Use of implicit split to @_ is deprecated at
> /usr/local/lib/MailScanner/MailScanner/CustomConfig.pm line 822.
>
> Use of implicit split to @_ is deprecated at
> /usr/local/lib/MailScanner/MailScanner/CustomConfig.pm line 838.
>
> Use of uninitialized value in substitution iterator at
> /usr/local/lib/MailScanner/MailScanner/Config.pm line 674, <GEN0> line 1310.
>
> Parameterless "use IO" deprecated at
> /usr/local/lib/MailScanner/MailScanner/GenericSpam.pm line 39
>
> Parameterless "use IO" deprecated at
> /usr/local/lib/MailScanner/MailScanner/RBLs.pm line 39
>
> "my" variable $to masks earlier declaration in same scope at
> /usr/local/lib/MailScanner/MailScanner/MCPMessage.pm line 636.
>
> "my" variable $gsreport masks earlier declaration in same scope at
> /usr/local/lib/MailScanner/MailScanner/Message.pm line 683.
>
> "my" variable $to masks earlier declaration in same scope at
> /usr/local/lib/MailScanner/MailScanner/Message.pm line 1375.
>
> "my" variable $to masks earlier declaration in same scope at
> /usr/local/lib/MailScanner/MailScanner/Message.pm line 1535.
>
> "my" variable $to masks earlier declaration in same scope at
> /usr/local/lib/MailScanner/MailScanner/Message.pm line 5700.
>
> "my" variable $to masks earlier declaration in same scope at
> /usr/local/lib/MailScanner/MailScanner/Message.pm line 5936.
>
> "my" variable $to masks earlier declaration in same scope at
> /usr/local/lib/MailScanner/MailScanner/Message.pm line 6352.
>
> Subroutine add_part redefined at
> /usr/local/lib/MailScanner/MailScanner/Message.pm line 7602.
>
> Subroutine extract redefined at
> /usr/local/lib/MailScanner/MailScanner/Message.pm line 7631.
>
> Parameterless "use IO" deprecated at
> /usr/local/lib/MailScanner/MailScanner/MCP.pm line 40
>
> Parameterless "use IO" deprecated at
> /usr/local/lib/MailScanner/MailScanner/SA.pm line 39
>
> Statement unlikely to be reached at
> /usr/local/lib/MailScanner/MailScanner/SweepOther.pm line 455.
>
>         (Maybe you meant system() when you said exec()?)
>
> Statement unlikely to be reached at
> /usr/local/lib/MailScanner/MailScanner/SweepOther.pm line 375.
>
>         (Maybe you meant system() when you said exec()?)
>
> Statement unlikely to be reached at
> /usr/local/lib/MailScanner/MailScanner/SweepViruses.pm line 1048.
>
>         (Maybe you meant system() when you said exec()?)
>
> "my" variable $LockFile masks earlier declaration in same scope at
> /usr/local/lib/MailScanner/MailScanner/SweepViruses.pm line 3450.
>
> Useless use of not in void context at
> /usr/local/lib/MailScanner/MailScanner/SweepViruses.pm line 3493.
>
> Using a hash as a reference is deprecated at /usr/local/sbin/mailscanner
> line 546.
>
> Duplicate specification "h|H|help" for option "h"
>
> Duplicate specification "v|V|version|Version" for option "v"
>
> Duplicate specification "v|V|version|Version" for option "version"
>
> Duplicate specification "c|C|changed" for option "c"
>
> Use of uninitialized value in substitution iterator at
> /usr/local/lib/MailScanner/MailScanner/Config.pm line 674, <GEN1> line 1310.
>
> Use of uninitialized value in substitution iterator at
> /usr/local/lib/MailScanner/MailScanner/Config.pm line 674, <GEN2> line 1310.
>
> Use of uninitialized value in substitution iterator at
> /usr/local/lib/MailScanner/MailScanner/Config.pm line 674, <GEN3> line 1310.
>
> Use of uninitialized value in substitution iterator at
> /usr/local/lib/MailScanner/MailScanner/Config.pm line 674, <GEN4> line 1310.
>
> Use of uninitialized value in substitution iterator at
> /usr/local/lib/MailScanner/MailScanner/Config.pm line 674, <GEN5> line 1310.
>
> Use of uninitialized value in substitution iterator at
> /usr/local/lib/MailScanner/MailScanner/Config.pm line 674, <GEN6> line 1310.
>
> "my" variable $line masks earlier declaration in same scope at
> /usr/local/lib/MailScanner/MailScanner/PFDiskStore.pm line 494.
>
> Use of uninitialized value in substitution iterator at
> /usr/local/lib/MailScanner/MailScanner/Config.pm line 674, <GEN7> line 1310.
>
> Use of uninitialized value in substitution iterator at
> /usr/local/lib/MailScanner/MailScanner/Config.pm line 674, <GEN8> line 1310.
>
> Use of uninitialized value in substitution iterator at
> /usr/local/lib/MailScanner/MailScanner/Config.pm line 674, <GEN9> line 1310.
>
> Use of uninitialized value in substitution iterator at
> /usr/local/lib/MailScanner/MailScanner/Config.pm line 674, <GEN10> line
> 1310.
>
> Use of uninitialized value in substitution iterator at
> /usr/local/lib/MailScanner/MailScanner/Config.pm line 674, <GEN11> line
> 1310.
>
> Use of uninitialized value in substitution iterator at
> /usr/local/lib/MailScanner/MailScanner/Config.pm line 674, <GEN12> line
> 1310.
>
> Use of uninitialized value in substitution iterator at
> /usr/local/lib/MailScanner/MailScanner/Config.pm line 674, <GEN14> line
> 1310.
>
> Use of uninitialized value in substitution iterator at
> /usr/local/lib/MailScanner/MailScanner/Config.pm line 674, <GEN15> line
> 1310.
>
> Use of uninitialized value in substitution iterator at
> /usr/local/lib/MailScanner/MailScanner/Config.pm line 674, <GEN16> line
> 1310.
>
> Use of uninitialized value in substitution iterator at
> /usr/local/lib/MailScanner/MailScanner/Config.pm line 674, <GEN17> line
> 1310.
>
> Use of uninitialized value in substitution iterator at
> /usr/local/lib/MailScanner/MailScanner/Config.pm line 674, <GEN18> line
> 1310.
>
> Use of uninitialized value in substitution iterator at
> /usr/local/lib/MailScanner/MailScanner/Config.pm line 674, <GEN19> line
> 1310.
>
> Use of uninitialized value in substitution iterator at
> /usr/local/lib/MailScanner/MailScanner/Config.pm line 674, <GEN20> line
> 1310.
>
> Use of uninitialized value in substitution iterator at
> /usr/local/lib/MailScanner/MailScanner/Config.pm line 674, <GEN21> line
> 1310.
>
> Use of uninitialized value in pattern match (m//) at
> /usr/local/sbin/mailscanner line 706.
>
>
>
> What can I do to resolve this.
>
>
>
> I have no perl knowledge what so ever!!
>
>
>
> Regards,
>
> Johan
>
>
>
>
>
>
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>
>



-- 
Martin Hepworth
Oxford, UK


More information about the MailScanner mailing list