Page 1 of 2

Gentoo and zoneminder

Posted: Tue Apr 06, 2004 11:33 pm
by corey
Well so far I am really impressed with what zoneminder is supposed to do and with my limited amount of time have been fighting for 2 weeks to get it working right. I gave up on the ebuild option as it didn't work worth a damn. I chose to go the source route and have done the ./configure --with all the options then ran perl zmconfig.pl all went well onto make and we get problems possibly simple but I am running out of time to get this working properly and am having windows cd's waved at me again :(

the error I get during make is

zm_mpeg.cpp:94: `CODEC_ID_MPEG2VIDEO' undeclared (first use this function)
zm_mpeg.cpp:94: (Each undeclared identifier is reported only once for each
function it appears in.)
make[2]: *** [zm_mpeg.o] Error 1
make[2]: Leaving directory `/usr/src/zm-1.19.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/zm-1.19.1'
make: *** [all] Error 2


soemthing to do with mpeg encoding but what where and why

any ideas

Thanks Corey

Re: Gentoo and zoneminder

Posted: Wed Apr 07, 2004 7:21 am
by xristaras
I had the same problem. The problem is caused by the fact that the current stable ffmpeg ebuild for Gentoo is 0.4.7.

However, zoneminder 1.19.1 requires ffmpeg 0.4.8.

Fortunatelly this is also available as an unstable ebuild within portage. To build it use:

ACCEPT_KEYWORDS="~x86" emerge ffmpeg

or alternatively for a permanent solution add the line "media-video/ffmpeg ~x86" (without the quotes) in /etc/portage/package.keywords (if the file doesnt exist create it manually)

zm-1.19.1 should then compile with no errors

Re: Gentoo and zoneminder

Posted: Wed Apr 07, 2004 5:33 pm
by corey
Thank-You Christos

ACCEPT_KEYWORDS="x86" emerge ffmpeg worked after emerge --unmerge mplayer since the unstable version is blocked by mplayer no big deal as I really need zoneminder more than mplayer.

so now we have run ./configure with all options ran perl zmconfig.pl successfully ran make and make check and then make install

but now when I browse to the zoneminder site I see the following

Fatal error: Call to undefined function: zmvlang() in /data/web/sitename:)/zm_html_view_console.php on line 141

not certain if I need to do any further configs at this point when I was using the ebuild I was able to view the zoneminder pages at this point after making adjustments to all the configs for the db_user and db_pass but the problem I had then was that no matter what I did it was still trying to auth to the server as zoneminder_admin@localhost even after I made the appropriate changes manualy in every config file I could find.

Thanks Again

Corey

Re: Gentoo and zoneminder

Posted: Sat Apr 10, 2004 10:07 am
by xristaras
Hi Corey,

I haven't been using gentoo for very long so I am not too much of an expert but I think you may be able to use "slots" to have both versions of mpeg installed to satisfy both dependencies.

I am not sure what your problem is but I dont know why you are manually editing zm configuration files, I think they are configured through the zmconfig.pl script at installation.
I used the following options for the configure script.

./configure --with-mysql=/var/lib --with-webdir=/var/www/localhost/htdocs/zm --with-cgidir=/var/www/localhost/cgi-bin --with-ffmpeg=/usr --with-lame=/usr

The only other thing was the mysql database, I had a db of an older zm version which i didnt really want to upgrade, when i tried to drop it, mysql would not do it because for some reason it would not drop a particular table in it. I dropped the table manually and then dropped the database which worked fine. After that i used to new zmshema.sql to build a new database.

Hope this helps,
Chris

Re: Gentoo and zoneminder

Posted: Mon Apr 12, 2004 12:54 pm
by zoneminder
Hi Corey,

The error

<i>Fatal error: Call to undefined function: zmvlang() in /data/web/sitename:)/zm_html_view_console.php on line 141
</i>

would imply to me that either there is no configuration data to determine language information from (ie the database is not provisioned) or that not all of the ZM files have been installed. the zmVlang function is included in the zm_xx_yy_lang.php files, one of which should be loaded whatever.

Phil,

Re: Gentoo and zoneminder

Posted: Mon Apr 12, 2004 5:14 pm
by corey
hello Philip

I had got to the point of frustration with the above error and decided to drop the db and recreate and reload the tables the error went away and I can see the zoneminder pages again without any issues aside from not being able to start zoneminder. Just sitting down to play with it some more right now :)

we'll see what happens :)

Re: Gentoo and zoneminder

Posted: Mon Apr 12, 2004 7:13 pm
by corey
ok so I have reinstalled completely from scratch this time using the default lang env en_gb instead of en_us thanks Philip

the error has gone away now it is time to configure a monitor for my webcam and see if this thing will start up

:)

btw happy easter to all :)

Re: Gentoo and zoneminder

Posted: Mon Apr 12, 2004 7:37 pm
by corey
Starting pending process, zmc -d 0
'zmc -d 0' started at 04/04/12 13:36:02
'zmc -d 0' starting at 04/04/12 13:36:02, pid = 25304
'zmc -d 0' crashed at 04/04/12 13:36:02, exit status 255


well seems it is making it a little further now it is actually logging the way it should and saying it is starting but according to the logs it is crashing well zmfilter anyways

not seeing any video yet at this point but according to zmpkg.log everythings seems in order

any ideas what causes this error


tail -f zmwatch.log
Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971969': No such file or directory
^XCan't get shared memory id '2053971969': No such file or directory

Re: Gentoo and zoneminder

Posted: Mon Apr 12, 2004 8:24 pm
by corey
uh oh we have hit dependency hell now

a listing somewhere of all the required perl modules would be good

I am now trying to install Date::Manip.pm which is failing

Re: Gentoo and zoneminder

Posted: Mon Apr 12, 2004 8:34 pm
by corey
ok so I added a few perl modules and my log files have slowed down to some simple output and this interesting little tidbit

Starting pending process, zmc -d 0
'zmc -d 0' started at 04/04/12 14:35:55
'zmc -d 0' starting at 04/04/12 14:35:55, pid = 28466
'zmc -d 0' crashed at 04/04/12 14:35:56, exit status 255
what is exit status 255

is there anyway to make the logging more verbose

Thanks Again

Corey

down to some shared memory issues

Posted: Tue Apr 13, 2004 2:52 pm
by corey
well it seems my last post was lost :)

I have gotten zoneminder to the point where I only have a few issues in my log files now I have pasted the tail of all the logs upon start up. I got rid of all the perl module dependancies which helped quite abit now it seems that zmc is crashing and we have a shared memory issue. I have no ideas about the shared memory issue and how I could possible track it. as for the web side of things I can see all the pages properly (no images though at all) but I am not getting any more errors on any of the pages including the config pages. at this point I am severly stumped. any information would be greatly appreciated.

==> zmpkg.log <==
Command: start
Executing: /usr/local/bin/zmdc.pl check
Removing shared memory
Executing: /usr/local/bin/zmfix

==> zmdc.log <==
Server starting at 04/04/13 08:42:05

==> zmpkg.log <==
Executing: /usr/local/bin/zmdc.pl status

==> zmdc.log <==
'zmc -d 0' started at 04/04/13 08:42:08
'zmc -d 0' starting at 04/04/13 08:42:08, pid = 2852
'zmfilter.pl -e -1' started at 04/04/13 08:42:08
'zmfilter.pl -e -1' starting at 04/04/13 08:42:08, pid = 2856
'zmaudit.pl -d 900 -y' started at 04/04/13 08:42:08
'zmaudit.pl -d 900 -y' starting at 04/04/13 08:42:08, pid = 2860
'zmc -d 0' crashed at 04/04/13 08:42:08, exit status 255
'zmc -d 0' started at 04/04/13 08:42:08
'zmc -d 0' starting at 04/04/13 08:42:08, pid = 2861

==> zmpkg.log <==
Executing: /usr/local/bin/zmdc.pl start zmc -d 0
Executing: /usr/local/bin/zmdc.pl start zmfilter.pl -e -1
Executing: /usr/local/bin/zmdc.pl start zmaudit.pl -d 900 -y
Executing: /usr/local/bin/zmdc.pl start zmwatch.pl

==> zmdc.log <==
'zmwatch.pl' started at 04/04/13 08:42:08
'zmwatch.pl' starting at 04/04/13 08:42:08, pid = 2866
'zmc -d 0' crashed at 04/04/13 08:42:09, exit status 255
'zmupdate.pl -c' started at 04/04/13 08:42:09
'zmupdate.pl -c' starting at 04/04/13 08:42:09, pid = 2871

==> zmpkg.log <==
Executing: /usr/local/bin/zmdc.pl start zmupdate.pl -c

==> zmupdate.log <==
Update agent starting at 04/04/13 08:42:09

==> zmwatch.log <==
Watchdog starting at 04/04/13 08:42:09
Watchdog pausing for 30 seconds

==> zmdc.log <==
Starting pending process, zmc -d 0
'zmc -d 0' started at 04/04/13 08:42:14
'zmc -d 0' starting at 04/04/13 08:42:14, pid = 2883
'zmc -d 0' crashed at 04/04/13 08:42:14, exit status 255
Starting pending process, zmc -d 0
'zmc -d 0' started at 04/04/13 08:42:24
'zmc -d 0' starting at 04/04/13 08:42:24, pid = 2886
'zmc -d 0' crashed at 04/04/13 08:42:24, exit status 255

==> zmwatch.log <==
Can't get shared memory id '2053971970': No such file or directory

==> zmdc.log <==
Starting pending process, zmc -d 0
'zmc -d 0' started at 04/04/13 08:42:44
'zmc -d 0' starting at 04/04/13 08:42:44, pid = 2889
'zmc -d 0' crashed at 04/04/13 08:42:45, exit status 255

==> zmwatch.log <==
Can't get shared memory id '2053971970': No such file or directory
Can't get shared memory id '2053971970': No such file or directory
Can't get shared memory id '2053971970': No such file or directory

Posted: Tue Apr 13, 2004 3:38 pm
by zoneminder
The most useful log in this case is likely to be the system log, which is normally/var/log/messages. There _should_ be enough in there to determine what the problem is.

However my guess is that it will be a shmget failed because the amount of memory being asked for is larger than that configured to be dished out on your system. If this is the case it's easy to fix and the simplest place to look is probably the FAQ though there is also some information in the README.

Phil,

Posted: Tue Apr 13, 2004 4:54 pm
by corey
the only things I see in /var/log/messages

Apr 13 09:48:54 antec zmc-d0[13666]: INF [Debug Level = 0, Debug Log = ]
Apr 13 10:04:01 antec zmc-d0[13706]: INF [Debug Level = 0, Debug Log = ]
Apr 13 10:19:02 antec zmc-d0[13738]: INF [Debug Level = 0, Debug Log = ]
Apr 13 10:34:04 antec zmc-d0[13930]: INF [Debug Level = 0, Debug Log = ]

since I am seeing the number 2053971970 as the memory id in the logfile does that mean that is how much memory zmc is looking for

root@antec: pts/7: 33 files 1.3Mb -> cat /proc/sys/kernel/shmall
2097152

Tue Apr 13 10:54:26 MDT 2004
/usr/src/zm-1.19.1
root@antec: pts/7: 33 files 1.3Mb -> cat /proc/sys/kernel/shmmax
33554432

Tue Apr 13 10:54:33 MDT 2004
/usr/src/zm-1.19.1
root@antec: pts/7: 33 files 1.3Mb -> cat /proc/sys/kernel/shmmni
4096

Posted: Tue Apr 13, 2004 8:27 pm
by zoneminder
It may be that Gentoo is one of those systems where the errors actually go to a different file. Try grepping for ERR in all the files in /var/log.

Phil,

Ihad the smae initial problem

Posted: Sun Jul 04, 2004 9:24 pm
by ixtow
I had the same initial problem, but after "make" the web directory was never created. I had to copy the files manually to where I wanted them: (/var/www/localhost/htdocs/zm/)

Almost everything seems to be working. When I click on the "N monitors" button, I get the popup window that would usually cycle the monitors, but it has buttloads of PHP and MSQL errors:


Code: Select all

 Warning: Division by zero in /var/www/localhost/htdocs/web/zm_html_view_cycle.php on line 56
 
 Warning: Division by zero in /var/www/localhost/htdocs/web/zm_html_view_cycle.php on line 57
 
 Warning: Cannot modify header information - headers already sent by (output started at /var/www/localhost/htdocs/web/zm_html_view_cycle.php:56) in /var/www/localhost/htdocs/web/zm_html_view_cycle.php on line 66
 
 Warning: Cannot modify header information - headers already sent by (output started at /var/www/localhost/htdocs/web/zm_html_view_cycle.php:56) in /var/www/localhost/htdocs/web/zm_html_view_cycle.php on line 67
 
 Warning: Cannot modify header information - headers already sent by (output started at /var/www/localhost/htdocs/web/zm_html_view_cycle.php:56) in /var/www/localhost/htdocs/web/zm_html_view_cycle.php on line 68
 
 Warning: Cannot modify header information - headers already sent by (output started at /var/www/localhost/htdocs/web/zm_html_view_cycle.php:56) in /var/www/localhost/htdocs/web/zm_html_view_cycle.php on line 69
 
 Warning: Cannot modify header information - headers already sent by (output started at /var/www/localhost/htdocs/web/zm_html_view_cycle.php:56) in /var/www/localhost/htdocs/web/zm_html_view_cycle.php on line 70
    

Camera_1
Stills
Close
I'm certain taht I have to make a modification that the MAKE normally would have.... But no idea what.

Any help?