zm and perl 5.10

Support and queries relating to all previous versions of ZoneMinder
Locked
arekm
Posts: 21
Joined: Fri Nov 30, 2007 6:31 pm

zm and perl 5.10

Post 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.
schweini
Posts: 9
Joined: Wed Mar 12, 2008 1:55 am

Post 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.
arekm
Posts: 21
Joined: Fri Nov 30, 2007 6:31 pm

Post 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!
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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?
Phil
arekm
Posts: 21
Joined: Fri Nov 30, 2007 6:31 pm

Post 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)
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Interesting, thanks for that. I will take a look and try and find a VM that I can play with it in.
Phil
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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.
Locked