Invader Zim
Verified User
- Joined
- Sep 4, 2004
- Messages
- 188
Last weekend we did a severy needed upgrade of perl from 5.10 to 5.16. Now majordomo is throwing errors:
Since getopts.pl doesn't exist in perl 5.16 anymore we changed all instances of require "getopts.pl"; to use Getopt::Std;, to no avail, since the wrapper, as it turns out, is a binary and not a script.
So I make a symlink from /usr/local/lib/perl5/5.10.1/getopts.pl to /usr/local/lib/perl5/5.16.2/getopts.pl
Now majordomo says the following:
Does anyone have any bright ideas as to the solution? I'd have to have to downgrade perl.![Frown :( :(](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f641.png)
Code:
pipe to |/etc/virtual/majordomo/wrapper resend -C /etc/virtual/<domain>/majordomo/majordomo.cf -l <listname> -h <domainname> -f owner-<listname> <emailaddress>
generated by <emailaddress>
local delivery failed
The following text was generated during the delivery attempt:
------ pipe to |/etc/virtual/majordomo/wrapper resend -C /etc/virtual/<domainname>/majordomo/majordomo.cf -l <listname> -h <domainname> -f owner-<lsitname> <emailaddress>
generated by <emailaddress> ------
Can't locate getopts.pl in @INC (@INC contains: /usr/local/lib/perl5/5.16.2/BSDPAN /usr/local/lib/perl5/site_perl/5.16.2/mach /usr/local/lib/perl5/site_perl/5.16.2 /usr/local/lib/perl5/5.16.2/mach /usr/local/lib/perl5/5.16.2 .) at /etc/virtual/majordomo/resend line 74.
Since getopts.pl doesn't exist in perl 5.16 anymore we changed all instances of require "getopts.pl"; to use Getopt::Std;, to no avail, since the wrapper, as it turns out, is a binary and not a script.
So I make a symlink from /usr/local/lib/perl5/5.10.1/getopts.pl to /usr/local/lib/perl5/5.16.2/getopts.pl
Now majordomo says the following:
Code:
Use of assignment to $[ is deprecated at /usr/local/lib/perl5/5.16.2/getopts.pl line 19.
Can't locate ctime.pl in @INC (@INC contains: /etc/virtual/majordomo /usr/local/lib/perl5/5.16.2/BSDPAN /usr/local/lib/perl5/site_perl/5.16.2/mach /usr/local/lib/perl5/site_perl/5.16.2 /usr/local/lib/perl5/5.16.2/mach /usr/local/lib/perl5/5.16.2 .) at /etc/virtual/majordomo/resend line 96.
Does anyone have any bright ideas as to the solution? I'd have to have to downgrade perl.
![Frown :( :(](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f641.png)