OS: Fedora 15 Linux 2.6.38.8-35.fc15.x86_64
Zoneminder version: zoneminder-1.24.3-4.20110324svn3310.fc15.x86_64
Perl version: perl-5.12.4-159.fc15.x86_64
Installation method: yum
Hello all. I hope someone might be kind enough to shed a little light on the problem below. I can see a number of similar posts elsewhere with a Google search but I haven't been able to find a solution. Thanks in advance.
This error occured during a new install of ZoneMinder on a fresh FC15 install. The yum installation completed successfully and I followed the Fedora instructions at http://www.zoneminder.com/wiki/index.php/Fedora while considering the notes in the general installation Wiki. I created the database using the following commands:
mysql mysql < /usr/share/zoneminder/db/zm_create.sql
mysqladmin reload
mysql mysql
grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';
\q
exit
I then edited zoneminder.conf and php.ini as required to remove Deny from all and set short_open_tag = On.
When starting the service I get the following errors. It appears that it's connecting to the database ok but I need to recify the bareword/strict subs errors.
Despite the service not running, I can browse to the web interface (which is correctly reporting ZoneMinder is stopped). Nothing of note in /var/log/messages, dhcpd.log or the /var/log/zoneminder directory.
[root@amber2 log]# service zoneminder start
Starting zoneminder (via systemctl): Job failed. See system logs and 'systemctl status' for details.
[FAILED]
[root@amber2 log]# service zoneminder status
zoneminder.service - SYSV: ZoneMinder is the top Linux video camera security and surveillance solution. ZoneMinder is intended for use in single or multi-camera video security applications.Copyright: Philip Coombes, Corey DeLasaux 2003-2008
Loaded: loaded (/etc/rc.d/init.d/zoneminder)
Active: failed since Sat, 06 Aug 2011 16:32:37 +0100; 7s ago
Process: 5071 ExecStart=/etc/rc.d/init.d/zoneminder start (code=exited, status=255)
CGroup: name=systemd:/system/zoneminder.service
zoneminder.service - SYSV: ZoneMinder is the top Linux video camera security and surveillance solution. ZoneMinder is intended for use in single or multi-camera video security applications.Copyright: Philip Coombes, Corey DeLasaux 2003-2008
Loaded: loaded (/etc/rc.d/init.d/zoneminder)
Active: failed since Sat, 06 Aug 2011 16:32:37 +0100; 8s ago
Process: 5071 ExecStart=/etc/rc.d/init.d/zoneminder start (code=exited, status=255)
CGroup: name=systemd:/system/zoneminder.service
Bareword "PROT_READ" not allowed while "strict subs" in use at /usr/share/perl5/vendor_perl/ZoneMinder/Memory/Mapped.pm line 91.
Bareword "PROT_WRITE" not allowed while "strict subs" in use at /usr/share/perl5/vendor_perl/ZoneMinder/Memory/Mapped.pm line 91.
Bareword "MAP_SHARED" not allowed while "strict subs" in use at /usr/share/perl5/vendor_perl/ZoneMinder/Memory/Mapped.pm line 91.
Compilation failed in require at /usr/share/perl5/vendor_perl/ZoneMinder/Memory.pm line 120.
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 46.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 46.
ZoneMinder is stopped[/i][/i][/i][/i]
Bareword "PROT_READ" not allowed while "strict subs" in use
-
- Posts: 2
- Joined: Sat Aug 06, 2011 3:19 pm
-
- Posts: 2
- Joined: Sat Aug 06, 2011 3:19 pm
Re: Bareword "PROT_READ" not allowed while "strict subs" in
Many thanks jmbia. Changing the line below in Mapped.pm has fixed the above issue with Fedora 15.
Change to this:
my $mmap_addr = mmap( $mmap, $size, *PROT_READ|*PROT_WRITE,*MAP_SHARED, \*MMAP );
Used to be this:
my $mmap_addr = mmap( $mmap, $size, PROT_READ|PROT_WRITE, MAP_SHARED, \*MMAP );
Change to this:
my $mmap_addr = mmap( $mmap, $size, *PROT_READ|*PROT_WRITE,*MAP_SHARED, \*MMAP );
Used to be this:
my $mmap_addr = mmap( $mmap, $size, PROT_READ|PROT_WRITE, MAP_SHARED, \*MMAP );