ZoneMinder 1.25.0 - preview

Forum for questions and support relating to the 1.25.x releases only.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: ZoneMinder 1.25.0 - preview

Post by zoneminder »

Ok. I am going to have to set up a VM with the same distro as you and investigate further.
Phil
JuVeNaL
Posts: 10
Joined: Wed Aug 03, 2011 12:10 pm

Re: ZoneMinder 1.25.0 - preview

Post by JuVeNaL »

zoneminder wrote:Ok. I am going to have to set up a VM with the same distro as you and investigate further.
i'm using the Ubuntu 10.04 LTS

Kind regards
JuVeNaL
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: ZoneMinder 1.25.0 - preview

Post by zoneminder »

Ok. You said 11 originally. Can you just confirm which?

I have just built on 11.04 with no problems and previously built on 10 also. Have you tried doing a 'make clean' first?
Phil
JuVeNaL
Posts: 10
Joined: Wed Aug 03, 2011 12:10 pm

Re: ZoneMinder 1.25.0 - preview

Post by JuVeNaL »

zoneminder wrote:Ok. You said 11 originally. Can you just confirm which?

I have just built on 11.04 with no problems and previously built on 10 also. Have you tried doing a 'make clean' first?
it's on a ubuntu 10.04 LTS and i made a 'make clean' .... and then make ... and same error ...
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: ZoneMinder 1.25.0 - preview

Post by zoneminder »

Just built from scratch on 10.04 LTS without issues. There must be something odd about your system. Can you grep for PATH_MAX in /usr/include/*.h and /usr/include/*/*.h and see where it shows up.
Phil
JuVeNaL
Posts: 10
Joined: Wed Aug 03, 2011 12:10 pm

Re: ZoneMinder 1.25.0 - preview

Post by JuVeNaL »

zoneminder wrote:Just built from scratch on 10.04 LTS without issues. There must be something odd about your system. Can you grep for PATH_MAX in /usr/include/*.h and /usr/include/*/*.h and see where it shows up.
Sorry but i'm not a expert in linux ... how can i do a grep in those files ?

i have this error now:

Code: Select all

zm_user.cpp: In constructor ‘User::User(char**&)’:
zm_user.cpp:38: error: ‘strncpy’ was not declared in this scope
zm_user.cpp:40: error: ‘atoi’ was not declared in this scope
zm_user.cpp:50: error: ‘strlen’ was not declared in this scope
zm_user.cpp: In function ‘User* zmLoadUser(const char*, const char*)’:
zm_user.cpp:117: error: ‘exit’ was not declared in this scope
zm_user.cpp:124: error: ‘exit’ was not declared in this scope
zm_user.cpp: In function ‘User* zmLoadAuthUser(const char*, bool)’:
zm_user.cpp:161: error: ‘getenv’ was not declared in this scope
zm_user.cpp:176: error: ‘exit’ was not declared in this scope
zm_user.cpp:183: error: ‘exit’ was not declared in this scope
zm_user.cpp:220: error: ‘strlen’ was not declared in this scope
zm_user.cpp:228: error: ‘strcmp’ was not declared in this scope
make[2]: *** [zm_user.o] Error 1
make[2]: Leaving directory `/usr/src/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/ZoneMinder-1.25.0'
make: *** [all] Error 2

JuVeNaL
Posts: 10
Joined: Wed Aug 03, 2011 12:10 pm

Re: ZoneMinder 1.25.0 - preview

Post by JuVeNaL »

zoneminder wrote:Just built from scratch on 10.04 LTS without issues. There must be something odd about your system. Can you grep for PATH_MAX in /usr/include/*.h and /usr/include/*/*.h and see where it shows up.
here the result ;-)

Code: Select all

/usr/include/stdlib.h:   PATH_MAX chars or more, returns null with `errno' set to
/usr/include/stdlib.h:   ENAMETOOLONG; if the name fits in fewer than PATH_MAX chars,
/usr/include/tic.h:#define MAX_ALIAS	32	/* smaller than POSIX minimum for PATH_MAX */
/usr/include/unistd.h:   BUF and return NULL.  BUF should be at least PATH_MAX bytes long.  */
root@pascal-desktop:/usr/src/ZoneMinder-1.25.0# grep PATH_MAX /usr/include/*/*.h
/usr/include/bits/confname.h:    _PC_PATH_MAX,
/usr/include/bits/confname.h:#define	_PC_PATH_MAX			_PC_PATH_MAX
/usr/include/bits/posix1_lim.h:#define	_POSIX_PATH_MAX		256
/usr/include/bits/stdlib.h:		 "least PATH_MAX bytes long buffer");
/usr/include/bits/stdlib.h:#if defined _LIBC_LIMITS_H_ && defined PATH_MAX
/usr/include/bits/stdlib.h:      if (__bos (__resolved) < PATH_MAX)
/usr/include/linux/limits.h:#define PATH_MAX        4096	/* # chars in a path name including nul */
/usr/include/linux/nfs3.h:#define NFS3_MAXPATHLEN		PATH_MAX
/usr/include/linux/nfs4.h:#define NFS4_MAXPATHLEN		PATH_MAX
/usr/include/linux/sysctl.h:	NET_SCTP_PATH_MAX_RETRANS        =  8,
/usr/include/linux/un.h:#define UNIX_PATH_MAX	108
/usr/include/linux/un.h:	char sun_path[UNIX_PATH_MAX];	/* pathname */
/usr/include/sysfs/libsysfs.h:#define SYSFS_PATH_MAX		256
/usr/include/sysfs/libsysfs.h:	char path[SYSFS_PATH_MAX];
/usr/include/sysfs/libsysfs.h:	char path[SYSFS_PATH_MAX];
/usr/include/sysfs/libsysfs.h:	char path[SYSFS_PATH_MAX];
/usr/include/sysfs/libsysfs.h:	char path[SYSFS_PATH_MAX];
/usr/include/sysfs/libsysfs.h:	char path[SYSFS_PATH_MAX];
/usr/include/sysfs/libsysfs.h:	char path[SYSFS_PATH_MAX];
/usr/include/sysfs/libsysfs.h:	char path[SYSFS_PATH_MAX];
/usr/include/sys/param.h:#define MAXPATHLEN	PATH_MAX
/usr/include/X11/InitialI.h:#ifndef PATH_MAX
/usr/include/X11/InitialI.h:#define PATH_MAX 512
/usr/include/X11/InitialI.h:#ifndef PATH_MAX
/usr/include/X11/InitialI.h:#define PATH_MAX MAXPATHLEN
/usr/include/X11/InitialI.h:#define PATH_MAX 1024
/usr/include/X11/Xosdefs.h:#  ifndef PATH_MAX
/usr/include/X11/Xosdefs.h:#   define PATH_MAX 4096
/usr/include/X11/Xosdefs.h:#  ifndef PATH_MAX
/usr/include/X11/Xosdefs.h:#   define PATH_MAX	1024
/usr/include/X11/Xos.h:#  define PATH_MAX 4096
/usr/include/X11/Xos_r.h:# ifdef _POSIX_PATH_MAX
/usr/include/X11/Xos_r.h:  char buf[_POSIX_PATH_MAX];
/usr/include/X11/Xos_r.h:# ifdef _POSIX_PATH_MAX
/usr/include/X11/Xos_r.h:  char buf[_POSIX_PATH_MAX];
/usr/include/X11/Xos_r.h:# elif defined(_POSIX_PATH_MAX)
/usr/include/X11/Xos_r.h:  char buf[_POSIX_PATH_MAX];
/usr/include/X11/Xos_r.h:# elif defined(_POSIX_PATH_MAX)
/usr/include/X11/Xos_r.h:  char buf[_POSIX_PATH_MAX];
/usr/include/X11/Xos_r.h:# elif defined(_POSIX_PATH_MAX)
/usr/include/X11/Xos_r.h:  char buf[_POSIX_PATH_MAX];
/usr/include/X11/Xwindows.h:#if defined(WIN32) && (!defined(PATH_MAX) || PATH_MAX < 1024)
/usr/include/X11/Xwindows.h:# undef PATH_MAX
/usr/include/X11/Xwindows.h:# define PATH_MAX 1024
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: ZoneMinder 1.25.0 - preview

Post by zoneminder »

I am at a bit of a loss then as it is defined in limits.h. PATH_MAX is used in zm_event.cpp, zm_monitor.cpp and zm_zone.cpp. Do those all compile ok? You could try copying some of the include directives from those into zm_local_camera.cpp to see if any of that fixes it but it should not be necessary.
Phil
JuVeNaL
Posts: 10
Joined: Wed Aug 03, 2011 12:10 pm

Re: ZoneMinder 1.25.0 - preview

Post by JuVeNaL »

i receive now the following error

Code: Select all

make  all-recursive
mv -f .deps/zm_timer.Tpo .deps/zm_timer.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -D__STDC_CONSTANT_MACROS -march=native -O2 -pipe  -march=native -O2 -pipe -MT zm_user.o -MD -MP -MF .deps/zm_user.Tpo -c -o zm_user.o zm_user.cpp
zm_user.cpp:33:19: warning: extra tokens at end of #include directive
zm_user.cpp: In constructor ‘User::User(char**&)’:
zm_user.cpp:58: error: ‘atoi’ was not declared in this scope
zm_user.cpp: In function ‘User* zmLoadUser(const char*, const char*)’:
zm_user.cpp:135: error: ‘exit’ was not declared in this scope
zm_user.cpp:142: error: ‘exit’ was not declared in this scope
zm_user.cpp: In function ‘User* zmLoadAuthUser(const char*, bool)’:
zm_user.cpp:179: error: ‘getenv’ was not declared in this scope
zm_user.cpp:194: error: ‘exit’ was not declared in this scope
zm_user.cpp:201: error: ‘exit’ was not declared in this scope
make[2]: *** [zm_user.o] Error 1
make[2]: Leaving directory `/usr/src/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/ZoneMinder-1.25.0'
make: *** [all] Error 
tea4two
Posts: 6
Joined: Fri Jul 29, 2011 6:22 am

Re: ZoneMinder 1.25.0 - preview

Post by tea4two »

@zoneminder.

Please add to the zm_user.cpp in the SVN, after "#include <stdio.h>" the follow include lines

#include <string.h>
#include <stdlib.h>


these changes solve compilation issue of 1.25.0.

BR
- Pierluigi
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: ZoneMinder 1.25.0 - preview

Post by zoneminder »

Thanks. These are included in the current 1.25.0 tarball so it is probably worth redownloading if anyone is hitting this issue.
Phil
JuVeNaL
Posts: 10
Joined: Wed Aug 03, 2011 12:10 pm

Re: ZoneMinder 1.25.0 - preview

Post by JuVeNaL »

zoneminder wrote:Thanks. These are included in the current 1.25.0 tarball so it is probably worth redownloading if anyone is hitting this issue.
It work now .. but another error ... i have no image with my Foscam ( i use the same configuration that work on another zoneminder 1.24.3 installation ... and in the logs i see error "Socket_sendto (/tmp/zm/zms-300837s.sock ) failed : No such file or directory ...

Kind regards
JuVeNaL
tea4two
Posts: 6
Joined: Fri Jul 29, 2011 6:22 am

Re: ZoneMinder 1.25.0 - preview

Post by tea4two »

I'm little bit confused because SVN trunk is less update than tar.gz in post #1 (3487 vs 3492).

Which source code I refer to have latest preview ?

Regrads,
- Pierluigi
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: ZoneMinder 1.25.0 - preview

Post by zoneminder »

The public SVN is a read-only mirror of the main repository and so lags a bit behind sometimes. I have updated it so it should be in sync now.
Phil
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: ZoneMinder 1.25.0 - preview

Post by zoneminder »

Updated with a couple of minor fixes.
Phil
Locked