Page 1 of 1

PATCH: zoneminder 1.25.0 does not compile with GCC 4.7.X

Posted: Wed Apr 18, 2012 4:04 pm
by buhrietoe
Hello. I'm the zoneminder package maintainer for Arch Linux and am passing this patch along to get zoneminder to compile with GCC 4.7.X. There is a change in GCC 4.7.X where unistd.h now needs to be explicitly included as listed in the changelog here in the Runtime Library (libstdc++) section: [I'd give the url but I can't link to an external site being a new user apparently]

I also cannot paste the patch in a code section either because it thinks it is an external url so i'll just spell it out I guess.

src/zm_logger.cpp and src/zm_thread.h both need to include unistd.h.

After doing that I get a successful compile on GCC 4.7.x and everything seems to work fine.

Re: PATCH: zoneminder 1.25.0 does not compile with GCC 4.7.X

Posted: Thu Apr 19, 2012 2:11 pm
by mitch
Thanks buhrietoe for the fix!