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.

Moderator: zoneminder

buhrietoe
Posts: 1
Joined: Wed Apr 18, 2012 3:50 pm

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

Postby buhrietoe » Wed Apr 18, 2012 4:04 pm

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: 170
Joined: Thu Apr 30, 2009 4:18 am

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

Postby mitch » Thu Apr 19, 2012 2:11 pm

Thanks buhrietoe for the fix!


Return to “User Contributions”

Who is online

Users browsing this forum: Baidu [Spider] and 0 guests