Page 1 of 1

ptz error with sony evi-d30 visca cam

Posted: Tue Apr 05, 2005 10:32 pm
by gary-in-canada
I have a sony evi-d30 ptz visca cam and after selecting visca in the controls I attempt to use the cam arrows but when inspecting /tmp/zmtrack-3.log I have this error:

Tracker daemon 3 (experimental) starting at 05/04/05 16:58:33
Monitor '3' cannot move in map mode, falling back to pseudo map mode
Found monitor for id 'HASH(0x984ae78)'
Error, unable to authenticate user
Can't locate Device/SerialPort.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl) at /usr/local/bin/zmcontrol-visca.pl line 74.
BEGIN failed--compilation aborted at /usr/local/bin/zmcontrol-visca.pl line 74.
Error, unable to authenticate user

I set my serial port in fc3 to /dev/ttyS0 , the port is working fine I had it working fine with a smart ups and moved it to /dev/ttyS1 to make sure I was using a known good port. Line 74 refers to what seems an unknown variable...
Any advice would be really appreciated.

Posted: Wed Apr 06, 2005 5:24 am
by rdmelin
You are missing at least one required perl module.
Can't locate Device/SerialPort.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi
You may be able to find a package for your distro. Or use perl -MCPAN. You will find some info on this in the README:
http://www.zoneminder.com/fileadmin/dow ... oc98568299

Solve that first. Then if you still get the auth error:
Error, unable to authenticate user
You may be missing openssl libraries.

Best regards,

Ross

Posted: Wed Apr 06, 2005 6:09 am
by cordel
I also already have serial pm packaged for Fedora and could put it up for download on my server.

problem half fixed

Posted: Wed Apr 06, 2005 12:34 pm
by gary-in-canada
An update of openssl solved the auth. problem Thanks!
I got the SerialPort.pm via cpan and tried to install but it failed testing section saying I have a modem (I don't) so I unpluged my ups and visca cam and killed the ups daemon.
Still failed so I did a "force install" ,it staes it's already installed on trying to install again but I get the same module error. "Can't locate Device/SerialPort.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi....."

I sure hope I haven't scewed things up ! Like I've never done that before :)

Posted: Wed Apr 06, 2005 10:08 pm
by zoneminder
I think with Device::SerialPort you can skip the bit where it asks you if you want to test it. If you have it installed then it should be found by zmcontrol. Maybe you can post a log of what your CPAN install looked like if you can get it to run again.

Phil

cpan output

Posted: Thu Apr 07, 2005 10:56 am
by gary-in-canada
It's long, sorry....
Nothing plugged in on both serial ports and ups daemon killed for ttyS1.

cpan> force install Device::SerialPort
Running install for module Device::SerialPort
Running make for C/CO/COOK/Device-SerialPort-1.002.tar.gz
Checksum for /root/.cpan/sources/authors/id/C/CO/COOK/Device-SerialPort-1.002.tar.gz ok
Device-SerialPort-1.002/
Device-SerialPort-1.002/t/
Device-SerialPort-1.002/t/test3.t
Device-SerialPort-1.002/t/test1.t
Device-SerialPort-1.002/t/AltPort.pm
Device-SerialPort-1.002/t/01timing.t
Device-SerialPort-1.002/t/test2.t
Device-SerialPort-1.002/t/test4.t
Device-SerialPort-1.002/SerialPort.xs
Device-SerialPort-1.002/eg/
Device-SerialPort-1.002/eg/any_os.plx
Device-SerialPort-1.002/eg/demo3.plx
Device-SerialPort-1.002/eg/demo1.plx
Device-SerialPort-1.002/eg/demo5.plx
Device-SerialPort-1.002/eg/demo2.plx
Device-SerialPort-1.002/eg/demo8.plx
Device-SerialPort-1.002/eg/demo4.plx
Device-SerialPort-1.002/eg/demo7.plx
Device-SerialPort-1.002/eg/example6.txt
Device-SerialPort-1.002/eg/example5.txt
Device-SerialPort-1.002/eg/example2.txt
Device-SerialPort-1.002/eg/example1.txt
Device-SerialPort-1.002/eg/example8.txt
Device-SerialPort-1.002/eg/example3.txt
Device-SerialPort-1.002/eg/example7.txt
Device-SerialPort-1.002/eg/example4.txt
Device-SerialPort-1.002/eg/demo6.plx
Device-SerialPort-1.002/eg/options.plx
Device-SerialPort-1.002/Changes
Device-SerialPort-1.002/autotools/
Device-SerialPort-1.002/autotools/depcomp
Device-SerialPort-1.002/autotools/config.guess
Device-SerialPort-1.002/autotools/missing
Device-SerialPort-1.002/autotools/config.rpath
Device-SerialPort-1.002/autotools/install-sh
Device-SerialPort-1.002/autotools/mkinstalldirs
Device-SerialPort-1.002/autotools/config.sub
Device-SerialPort-1.002/MANIFEST
Device-SerialPort-1.002/TODO
Device-SerialPort-1.002/debian/
Device-SerialPort-1.002/debian/rules
Device-SerialPort-1.002/debian/postinst
Device-SerialPort-1.002/debian/changelog
Device-SerialPort-1.002/debian/postrm
Device-SerialPort-1.002/debian/prerm
Device-SerialPort-1.002/debian/copyright
Device-SerialPort-1.002/debian/control
Device-SerialPort-1.002/META.yml
Device-SerialPort-1.002/Device-SerialPort.spec
Device-SerialPort-1.002/modemtest
Device-SerialPort-1.002/SerialPort.pm
Device-SerialPort-1.002/config.h.in
Device-SerialPort-1.002/configure
Device-SerialPort-1.002/show-tiocm.c.test
Device-SerialPort-1.002/Makefile.PL
Device-SerialPort-1.002/README
Removing previously used /root/.cpan/build/Device-SerialPort-1.002

CPAN.pm: Going to build C/CO/COOK/Device-SerialPort-1.002.tar.gz

Trying to find a serial port for testing...
(use 'perl Makefile.PL TESTPORT=<DEVICE>' to override this search)
checking '/dev/ttyS1' ... character device

PLEASE NOTE:
If you run 'make test', you must make sure that nothing is plugged
into '/dev/ttyS1'!
Running ./configure ...
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for library containing strerror... none required
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking sys/termiox.h usability... no
checking sys/termiox.h presence... no
checking for sys/termiox.h... no
checking sys/termios.h usability... yes
checking sys/termios.h presence... yes
checking for sys/termios.h... yes
checking sys/ttycom.h usability... no
checking sys/ttycom.h presence... no
checking for sys/ttycom.h... no
checking sys/modem.h usability... no
checking sys/modem.h presence... no
checking for sys/modem.h... no
checking definition of _SC_CLK_TCK... found
checking definition of TIOCMBIS... found
checking definition of TIOCMBIC... found
checking definition of TIOCMGET... found
checking definition of CRTSCTS... found
checking definition of OCRNL... found
checking definition of ONLCR... found
checking definition of ECHOKE... found
checking definition of ECHOCTL... found
checking definition of TIOCM_CAR... found
checking definition of TIOCM_CD... found
checking definition of TIOCM_RNG... found
checking definition of TIOCM_RI... found
checking definition of TIOCM_CTS... found
checking definition of TIOCM_DSR... found
checking definition of TIOCMIWAIT... found
checking definition of TIOCGICOUNT... found
checking definition of TIOCINQ... found
checking definition of TIOCOUTQ... found
checking definition of TIOCSER_TEMT... found
checking definition of TIOCM_LE... found
checking definition of TIOCSERGETLSR... found
checking definition of TIOCSDTR... missing
checking definition of TIOCCDTR... missing
checking definition of TIOCM_RTS... found
checking definition of TIOCM_DTR... found
checking definition of CTSXON... missing
checking definition of RTSXOFF... missing
checking definition of TCGETX... missing
checking definition of TCSETX... missing
checking definition of B0... found
checking definition of B50... found
checking definition of B75... found
checking definition of B110... found
checking definition of B134... found
checking definition of B150... found
checking definition of B200... found
checking definition of B300... found
checking definition of B600... found
checking definition of B1200... found
checking definition of B1800... found
checking definition of B2400... found
checking definition of B4800... found
checking definition of B9600... found
checking definition of B19200... found
checking definition of B38400... found
checking definition of B57600... found
checking definition of B115200... found
checking definition of B230400... found
checking definition of B460800... found
checking definition of B500000... found
checking definition of B576000... found
checking definition of B921600... found
checking definition of B1000000... found
checking definition of B1152000... found
checking definition of B1500000... found
checking definition of B2000000... found
checking definition of B2500000... found
checking definition of B3000000... found
checking definition of B3500000... found
checking definition of B4000000... found
checking serial control via ioctl... yes
checking read/write of RTS signal... yes
checking read/write of DTR signal... yes
checking read access to modem lines... yes
checking read access to buffer status... yes
checking read access to serial line status... yes
checking normal CTS/RTS flow control... yes
configure: creating ./config.status
config.status: creating config.h
Checking if your kit is complete...
Looks good
Writing Makefile for Device::SerialPort

You're ready to run 'make' now...
cp SerialPort.pm blib/lib/Device/SerialPort.pm
/usr/local/bin/perl /usr/local/lib/perl5/5.8.4/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.4/ExtUtils/typemap SerialPort.xs > SerialPort.xsc && mv SerialPort.xsc SerialPort.c
cc -c -I. -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -DVERSION=\"1.002\" -DXS_VERSION=\"1.002\" -fpic "-I/usr/local/lib/perl5/5.8.4/i686-linux/CORE" SerialPort.c
Running Mkbootstrap for Device::SerialPort ()
chmod 644 SerialPort.bs
rm -f blib/arch/auto/Device/SerialPort/SerialPort.so
LD_RUN_PATH="" cc -shared -L/usr/local/lib SerialPort.o -o blib/arch/auto/Device/SerialPort/SerialPort.so
chmod 755 blib/arch/auto/Device/SerialPort/SerialPort.so
cp SerialPort.bs blib/arch/auto/Device/SerialPort/SerialPort.bs
chmod 644 blib/arch/auto/Device/SerialPort/SerialPort.bs
cp modemtest blib/script/modemtest
/usr/local/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/modemtest
Manifying blib/man1/modemtest.1
Manifying blib/man3/Device::SerialPort.3
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01timing....ok
t/test1.......FAILED test 135
Failed 1/174 tests, 99.43% okay
t/test2.......ok
t/test3.......ok
t/test4.......ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/test1.t 174 1 0.57% 135
Failed 1/5 test scripts, 80.00% okay. 1/727 subtests failed, 99.86% okay.
make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK
Running make install
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Writing /usr/local/lib/perl5/site_perl/5.8.4/i686-linux/auto/Device/SerialPort/.packlist
Appending installation info to /usr/local/lib/perl5/5.8.4/i686-linux/perllocal.pod
/usr/bin/make install -- OK

cpan> force install Device::SerialPort
Running install for module Device::SerialPort
Running make for C/CO/COOK/Device-SerialPort-1.002.tar.gz
Checksum for /root/.cpan/sources/authors/id/C/CO/COOK/Device-SerialPort-1.002.tar.gz ok
Device-SerialPort-1.002/
Device-SerialPort-1.002/t/
Device-SerialPort-1.002/t/test3.t
Device-SerialPort-1.002/t/test1.t
Device-SerialPort-1.002/t/AltPort.pm
Device-SerialPort-1.002/t/01timing.t
Device-SerialPort-1.002/t/test2.t
Device-SerialPort-1.002/t/test4.t
Device-SerialPort-1.002/SerialPort.xs
Device-SerialPort-1.002/eg/
Device-SerialPort-1.002/eg/any_os.plx
Device-SerialPort-1.002/eg/demo3.plx
Device-SerialPort-1.002/eg/demo1.plx
Device-SerialPort-1.002/eg/demo5.plx
Device-SerialPort-1.002/eg/demo2.plx
Device-SerialPort-1.002/eg/demo8.plx
Device-SerialPort-1.002/eg/demo4.plx
Device-SerialPort-1.002/eg/demo7.plx
Device-SerialPort-1.002/eg/example6.txt
Device-SerialPort-1.002/eg/example5.txt
Device-SerialPort-1.002/eg/example2.txt
Device-SerialPort-1.002/eg/example1.txt
Device-SerialPort-1.002/eg/example8.txt
Device-SerialPort-1.002/eg/example3.txt
Device-SerialPort-1.002/eg/example7.txt
Device-SerialPort-1.002/eg/example4.txt
Device-SerialPort-1.002/eg/demo6.plx
Device-SerialPort-1.002/eg/options.plx
Device-SerialPort-1.002/Changes
Device-SerialPort-1.002/autotools/
Device-SerialPort-1.002/autotools/depcomp
Device-SerialPort-1.002/autotools/config.guess
Device-SerialPort-1.002/autotools/missing
Device-SerialPort-1.002/autotools/config.rpath
Device-SerialPort-1.002/autotools/install-sh
Device-SerialPort-1.002/autotools/mkinstalldirs
Device-SerialPort-1.002/autotools/config.sub
Device-SerialPort-1.002/MANIFEST
Device-SerialPort-1.002/TODO
Device-SerialPort-1.002/debian/
Device-SerialPort-1.002/debian/rules
Device-SerialPort-1.002/debian/postinst
Device-SerialPort-1.002/debian/changelog
Device-SerialPort-1.002/debian/postrm
Device-SerialPort-1.002/debian/prerm
Device-SerialPort-1.002/debian/copyright
Device-SerialPort-1.002/debian/control
Device-SerialPort-1.002/META.yml
Device-SerialPort-1.002/Device-SerialPort.spec
Device-SerialPort-1.002/modemtest
Device-SerialPort-1.002/SerialPort.pm
Device-SerialPort-1.002/config.h.in
Device-SerialPort-1.002/configure
Device-SerialPort-1.002/show-tiocm.c.test
Device-SerialPort-1.002/Makefile.PL
Device-SerialPort-1.002/README
Removing previously used /root/.cpan/build/Device-SerialPort-1.002

CPAN.pm: Going to build C/CO/COOK/Device-SerialPort-1.002.tar.gz

Trying to find a serial port for testing...
(use 'perl Makefile.PL TESTPORT=<DEVICE>' to override this search)
checking '/dev/ttyS1' ... character device

PLEASE NOTE:
If you run 'make test', you must make sure that nothing is plugged
into '/dev/ttyS1'!
Running ./configure ...
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for library containing strerror... none required
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking sys/termiox.h usability... no
checking sys/termiox.h presence... no
checking for sys/termiox.h... no
checking sys/termios.h usability... yes
checking sys/termios.h presence... yes
checking for sys/termios.h... yes
checking sys/ttycom.h usability... no
checking sys/ttycom.h presence... no
checking for sys/ttycom.h... no
checking sys/modem.h usability... no
checking sys/modem.h presence... no
checking for sys/modem.h... no
checking definition of _SC_CLK_TCK... found
checking definition of TIOCMBIS... found
checking definition of TIOCMBIC... found
checking definition of TIOCMGET... found
checking definition of CRTSCTS... found
checking definition of OCRNL... found
checking definition of ONLCR... found
checking definition of ECHOKE... found
checking definition of ECHOCTL... found
checking definition of TIOCM_CAR... found
checking definition of TIOCM_CD... found
checking definition of TIOCM_RNG... found
checking definition of TIOCM_RI... found
checking definition of TIOCM_CTS... found
checking definition of TIOCM_DSR... found
checking definition of TIOCMIWAIT... found
checking definition of TIOCGICOUNT... found
checking definition of TIOCINQ... found
checking definition of TIOCOUTQ... found
checking definition of TIOCSER_TEMT... found
checking definition of TIOCM_LE... found
checking definition of TIOCSERGETLSR... found
checking definition of TIOCSDTR... missing
checking definition of TIOCCDTR... missing
checking definition of TIOCM_RTS... found
checking definition of TIOCM_DTR... found
checking definition of CTSXON... missing
checking definition of RTSXOFF... missing
checking definition of TCGETX... missing
checking definition of TCSETX... missing
checking definition of B0... found
checking definition of B50... found
checking definition of B75... found
checking definition of B110... found
checking definition of B134... found
checking definition of B150... found
checking definition of B200... found
checking definition of B300... found
checking definition of B600... found
checking definition of B1200... found
checking definition of B1800... found
checking definition of B2400... found
checking definition of B4800... found
checking definition of B9600... found
checking definition of B19200... found
checking definition of B38400... found
checking definition of B57600... found
checking definition of B115200... found
checking definition of B230400... found
checking definition of B460800... found
checking definition of B500000... found
checking definition of B576000... found
checking definition of B921600... found
checking definition of B1000000... found
checking definition of B1152000... found
checking definition of B1500000... found
checking definition of B2000000... found
checking definition of B2500000... found
checking definition of B3000000... found
checking definition of B3500000... found
checking definition of B4000000... found
checking serial control via ioctl... yes
checking read/write of RTS signal... yes
checking read/write of DTR signal... yes
checking read access to modem lines... yes
checking read access to buffer status... yes
checking read access to serial line status... yes
checking normal CTS/RTS flow control... yes
configure: creating ./config.status
config.status: creating config.h
Checking if your kit is complete...
Looks good
Writing Makefile for Device::SerialPort

You're ready to run 'make' now...
cp SerialPort.pm blib/lib/Device/SerialPort.pm
/usr/local/bin/perl /usr/local/lib/perl5/5.8.4/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.4/ExtUtils/typemap SerialPort.xs > SerialPort.xsc && mv SerialPort.xsc SerialPort.c
cc -c -I. -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -DVERSION=\"1.002\" -DXS_VERSION=\"1.002\" -fpic "-I/usr/local/lib/perl5/5.8.4/i686-linux/CORE" SerialPort.c
Running Mkbootstrap for Device::SerialPort ()
chmod 644 SerialPort.bs
rm -f blib/arch/auto/Device/SerialPort/SerialPort.so
LD_RUN_PATH="" cc -shared -L/usr/local/lib SerialPort.o -o blib/arch/auto/Device/SerialPort/SerialPort.so
chmod 755 blib/arch/auto/Device/SerialPort/SerialPort.so
cp SerialPort.bs blib/arch/auto/Device/SerialPort/SerialPort.bs
chmod 644 blib/arch/auto/Device/SerialPort/SerialPort.bs
cp modemtest blib/script/modemtest
/usr/local/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/modemtest
Manifying blib/man1/modemtest.1
Manifying blib/man3/Device::SerialPort.3
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01timing....ok
t/test1.......FAILED test 135
Failed 1/174 tests, 99.43% okay
t/test2.......ok
t/test3.......ok
t/test4.......ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/test1.t 174 1 0.57% 135
Failed 1/5 test scripts, 80.00% okay. 1/727 subtests failed, 99.86% okay.
make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK
Running make install
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Writing /usr/local/lib/perl5/site_perl/5.8.4/i686-linux/auto/Device/SerialPort/.packlist
Appending installation info to /usr/local/lib/perl5/5.8.4/i686-linux/perllocal.pod
/usr/bin/make install -- OK

cpan>

cpan install

Posted: Thu Apr 07, 2005 11:08 am
by gary-in-canada
I just did the same install on another fc3 box and it errored on test 135 also exactly the same with a failed install. It can't be machine specific, both high end p4 asus mboards but very diff. chipsets.(via and intel). I know this is off subject and am sorry for that ...
Thanks