This question about Using an extension: Answered
Perl insecure dependency error with CalDavPlugin
CalDAVPlugin version 1.000 with FW 1.0.9 (with FastCGI contrib). Ubuntu Lucid 64.
All module deps installed, can't see any deps errors. No default calendars
configure
'd.
Sandbox page with test CALDAV (anonymised):
%CALDAV{url="http://www.google.com/calendar/ical/some.name@gmail.com/private-long-tedious-random-url/basic.ics" user="some.name@gmail.com" pass="some-password"}%
Page says
Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.
Insecure dependency in eval while running with -T switch
foswiki/data/warn201007.txt says
Insecure dependency in eval while running with -T switch at /usr/local/share/perl/5.10.1/Data/ICal/Entry.pm line 491.
Me stoopid or've I found a bug?
--
MarcusLeonard - 24 Jul 2010
u found the secret bug in Data::ICal
run configure to see the patch
--
CrawfordCurrie - 25 Jul 2010
Umm, sorry, can't see any patch info.
-
configure
(with expert=1
) doesn't mention anything about patches. Did a whole page search (for "patch"), ran it again anyway, etc.
- Couldn't find any info in
CalDAVPlugin_installer
either.
Secret patch, too? I left out "blind" in my list of potential failings above.
I noticed that there's a new version of the extension. I installed that, but no mention of any patching in the output. Cold-restarted apache. Getting same error:
2010-08-07T05:07:34Z warning | Insecure dependency in eval while running with -T switch at /usr/local/share/perl/5.10.1/Data/ICal/Entry.pm line 491.
mod_fcgid reports it to apache:
mod_fcgid: stderr: Insecure dependency in eval while running with -T switch at /usr/local/share/perl/5.10.1/Data/ICal/Entry.pm line 491.
--
MarcusLeonard - 07 Aug 2010
There's a configure checker associated with the plugin. If it detects the known problem with your install of Data::ICal it tells you what to do.
Data::ICal is broken. This problem has been reported to the CPAN
maintainer, and awaits a fix. There may already be a new version
on CPAN, or you can patch it locally if you have the skills:
patch -p0 <<'HERE'
--- /usr/local/share/perl/5.10.1/Data/ICal/Entry.pm 2010-07-01 16:51:12.000000000 +0100
+++ /usr/local/share/perl/5.10.1/Data/ICal/Entry.pm 2010-07-01 17:01:55.000000000 +0100
MESSAGE
$e .= <<'MESSAGE';
@@ -487,5 +487,6 @@
die "Can't parse VALARM with action $action"
unless exists $_action_map{$action};
- my $alarm_class = "Data::ICal::Entry::Alarm::" . $_action_map{$action};
+ my $x = $_action_map{$action};
+ my $alarm_class = "Data::ICal::Entry::Alarm::" . $x;
eval "require $alarm_class";
die "Failed to require $alarm_class : $@" if $@;
HERE
--
CrawfordCurrie - 13 Sep 2010