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.
If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
2 posts • Page 1 of 1
Thanks buhrietoe for the fix!
Who is online
Users browsing this forum: No registered users and 2 guests