Page 1 of 1

zm and perl 5.10

Posted: Tue Mar 18, 2008 5:34 pm
by arekm
Looks like some things do not work well with perl 5.10 :-(

[root@cctv ~]# zmupdate.pl -v 1.23.1
Bareword found in conditional at /usr/bin/zmupdate.pl line 152.
Bareword "ZM_DYN_DB_VERSION" not allowed while "strict subs" in use at /usr/bin/zmupdate.pl line 354.
BEGIN not safe after errors--compilation aborted at /usr/bin/zmupdate.pl line 536.
[root@cctv ~]# perl --version

This is perl, v5.10.0 built for i686-pld-linux-thread-multi

Even more:
Bareword found in conditional at /usr/bin/zmupdate.pl line 152.
Bareword "ZM_CHECK_FOR_UPDATES" not allowed while "strict subs" in use at /usr/bin/zmupdate.pl line 117.
Bareword "ZM_DYN_CURR_VERSION" not allowed while "strict subs" in use at /usr/bin/zmupdate.pl line 121.
Bareword "ZM_DYN_LAST_VERSION" not allowed while "strict subs" in use at /usr/bin/zmupdate.pl line 122.
Bareword "ZM_DYN_LAST_CHECK" not allowed while "strict subs" in use at /usr/bin/zmupdate.pl line 123.
Bareword "ZM_EMAIL_TEXT" not allowed while "strict subs" in use at /usr/bin/zmupdate.pl line 617.
Bareword "ZM_MESSAGE_TEXT" not allowed while "strict subs" in use at /usr/bin/zmupdate.pl line 627.
Execution of /usr/bin/zmupdate.pl aborted due to compilation errors.


or

Bareword "ZM_SHM_KEY" not allowed while "strict subs" in use at /usr/share/perl5/vendor_perl/ZoneMinder/SharedMem.pm line 225.
Compilation failed in require at /usr/share/perl5/vendor_perl/ZoneMinder.pm line 37.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/ZoneMinder.pm line 37.
Compilation failed in require at /usr/bin/zmpkg.pl line 45.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 45.

or

Bareword "ZM_MAX_RESTART_DELAY" not allowed while "strict subs" in use at /usr/bin/zmdc.pl line 577.
Bareword "ZM_MAX_RESTART_DELAY" not allowed while "strict subs" in use at /usr/bin/zmdc.pl line 579.

Posted: Tue Mar 18, 2008 6:43 pm
by schweini
try editing /usr/bin/zmupdate.pl , and eithe comment out (or delete) the line 'use strict;', or add a 'no strict 'subs';' after that line.

Posted: Tue Mar 18, 2008 6:49 pm
by arekm
I did workaround these problems (by dropping strict usage).

I'm actually indicating problems with current stable perl with a hope that developers will fix these in future version.

Thanks!

Posted: Tue Mar 18, 2008 9:33 pm
by zoneminder
I can't say I have heard of perl 5.10, unless that is the version number of perl 6? If so there are lots of major changes which I will have to address once it gets out in the wild. What is your distro and version?

Posted: Tue Mar 18, 2008 9:41 pm
by arekm
http://dev.perl.org/perl5/news/2007/perl-5.10.0.html

It's new stable in 5.x series. No big changes but some small changes require updating own apps.

Distro: PLD-Linux.org, Th (development)

Posted: Wed Mar 19, 2008 10:24 pm
by zoneminder
Interesting, thanks for that. I will take a look and try and find a VM that I can play with it in.

Posted: Wed Mar 19, 2008 10:53 pm
by cordel
I can create one in xen if you don't mind working on a remote machine and feel ambisous about it, affaid I have no IP cams though, I would have to setup a confige for you to pull images from local traffic cams er something :roll:

Just let me know, would take about 20 min to set up. It is what I spent all the money on this server for anyway.