Upgrade zmarch to svn useing AUR

Support and queries relating to third party Live CDs and DVD, VM images and other packaged distributions
Post Reply
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Upgrade zmarch to svn useing AUR

Post by kingofkya »

rdmerlin is the package matainer and the ZMarch cd the zm forum seamed appriopriait place to ask.

What are the packages needed to upgrade to the latest svn version of zm or if some one eles has done it on arch linux/ zmarch cd please post.

when i say upgrade i mean via the AUR so the package manger knows about it.

or should pacman -Su cover the deps
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

In case anyone else trys this be aware if you dont have 2gb free bad things happen. (They are fixable though)

anyways I did a full upgrade

installed ffmpeg-svn

now trying to use the zoneminder svn package
and i get

==> ERROR: Integrity checks are missing.
Error: Makepkg was unable to build zoneminder package.
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

==> ERROR: Integrity checks are missing.
New feature of makepkg :)

Do this
makepkg -g >>PKGBUILD && makepkg

I haven't tried building from an up to date system for awhile though. There may be some other issues. Let me know how it goes.
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

Dont you love new features

anyways i get
collect: recompiling zm_sdp.cpp
collect: relinking
zm_local_camera.o: In function `vidioctl(int, int, void*)':
zm_local_camera.cpp:(.text+0x27f): undefined reference to `v4l2_ioctl'
zm_local_camera.o: In function `LocalCamera::PostCapture()':
zm_local_camera.cpp:(.text+0x430): undefined reference to `v4l1_ioctl'
zm_local_camera.cpp:(.text+0x483): undefined reference to `v4l1_ioctl'
zm_local_camera.cpp:(.text+0x4bf): undefined reference to `v4l1_ioctl'
zm_local_camera.o: In function `LocalCamera::Contrast(int)':
zm_local_camera.cpp:(.text+0x962): undefined reference to `v4l1_ioctl'
zm_local_camera.cpp:(.text+0x98b): undefined reference to `v4l1_ioctl'
zm_local_camera.o:zm_local_camera.cpp:(.text+0xbca): more undefined references to `v4l1_ioctl' follow
zm_local_camera.o: In function `LocalCamera::GetCurrentSettings(char const*, char*, int, bool)':
zm_local_camera.cpp:(.text+0x1c91): undefined reference to `v4l1_open'
zm_local_camera.cpp:(.text+0x1cf9): undefined reference to `v4l1_ioctl'
zm_local_camera.cpp:(.text+0x2014): undefined reference to `v4l1_ioctl'
zm_local_camera.cpp:(.text+0x20fd): undefined reference to `v4l1_ioctl'
zm_local_camera.cpp:(.text+0x24eb): undefined reference to `v4l1_ioctl'
zm_local_camera.cpp:(.text+0x261d): undefined reference to `v4l1_close'
zm_local_camera.o: In function `LocalCamera::Terminate()':
zm_local_camera.cpp:(.text+0x3ddf): undefined reference to `v4l1_close'
zm_local_camera.cpp:(.text+0x3e0f): undefined reference to `v4l1_munmap'
zm_local_camera.cpp:(.text+0x3ea7): undefined reference to `v4l2_munmap'
zm_local_camera.o: In function `LocalCamera::Initialise()':
zm_local_camera.cpp:(.text+0x40f2): undefined reference to `v4l1_open'
zm_local_camera.cpp:(.text+0x46dd): undefined reference to `v4l2_mmap'
zm_local_camera.cpp:(.text+0x4921): undefined reference to `v4l1_ioctl'
zm_local_camera.cpp:(.text+0x49ae): undefined reference to `v4l1_ioctl'
zm_local_camera.cpp:(.text+0x49f1): undefined reference to `v4l1_ioctl'
zm_local_camera.cpp:(.text+0x4a40): undefined reference to `v4l1_ioctl'
zm_local_camera.cpp:(.text+0x4a72): undefined reference to `v4l1_ioctl'
zm_local_camera.cpp:(.text+0x4b05): undefined reference to `v4l1_mmap'
zm_local_camera.cpp:(.text+0x5552): undefined reference to `v4l1_ioctl'
zm_local_camera.cpp:(.text+0x5595): undefined reference to `v4l1_ioctl'
zm_local_camera.cpp:(.text+0x55b9): undefined reference to `v4l1_ioctl'
zm_local_camera.cpp:(.text+0x55eb): undefined reference to `v4l1_ioctl'
zm_local_camera.o: In function `LocalCamera::PrimeCapture()':
zm_local_camera.cpp:(.text+0x5f48): undefined reference to `v4l1_ioctl'
collect2: ld returned 1 exit status
make[2]: *** [zmc] Error 1
make[2]: Leaving directory `/home/user/build/zoneminder/src/ZoneMinder-1.24.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/build/zoneminder/src/ZoneMinder-1.24.2'
make: *** [all] Error 2
==> ERROR: Build Failed.
Aborting...
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

Got it
export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
needs to be added before ./configure in PKBUILD

http://bbs.archlinux.org/viewtopic.php?pid=642032
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

ok now i have zoneminder and phpmyadmin reporting
Fatal error: Call to undefined function mysql_pconnect() in /var/lib/zm/www/includes/database.php on line 32

also the php info page report mysql is indeed installed
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

mysqlnd
mysqlnd enabled
Version mysqlnd 5.0.5-dev - 081106 - $Revision: 1.3.2.27 $
Command buffer size 2048
Read buffer size 32768
Collecting statistics Yes
Collecting memory statistics No


is what phpinfo() shows
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

When it sugests to replace you php.ini DO IT

paths have changed

then do what the zoneminder packages ask you to add to php.ini
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

is coming up random places may be my php version being too high
using zoneminde-svn (if debugging is turned up) Also as a waring when php 6 comes out split() will be gone.

Deprecated: Function split() is deprecated in /var/lib/zm/www/skins/classic/views/options.php on line 193

The big prob is
11/10/09 20:58:52.051120 zmc_m4[23226].DB2-zm_remote_camera_http.cpp/69 [Request: GET /axis-cgi/mjpg/video.cgi?resolution=800x600 HTTP/1.1
User-Agent: ZoneMinder/1.24.2
Host: 192.168.0.94
Connection: Keep-Alive

]
11/10/09 20:58:52.054671 zmc_m4[23226].DB1-zm_monitor.cpp/338 [monitor purpose=1]
11/10/09 20:58:52.054706 zmc_m4[23226].DB1-zm_monitor.cpp/345 [mem.size=57601192]
11/10/09 20:58:52.054760 zmc_m4[23226].ERR-zm_monitor.cpp/378 [Can't shmget, probably not enough shared memory space free: Invalid argument]
my shared memory was fine before and my original sysctrl is still there
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

ok some thing is messed up anyways went back to v1.24.2 and its working i guss i will stay with that for now
Post Reply