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

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.
Post Reply
buhrietoe
Posts: 1
Joined: Wed Apr 18, 2012 3:50 pm

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

Post 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.
mitch
Posts: 169
Joined: Thu Apr 30, 2009 4:18 am

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

Post by mitch »

Thanks buhrietoe for the fix!
Post Reply