Hi, I just upgraded to 2.2.0, and my build fails with:
ps.c: In function 'port_share_open': ps.c:778:7: error: 'management' undeclared (first use in this function) ps.c:778:7: note: each undeclared identifier is reported only once for each function it appears in make[5]: *** [ps.o] Error 1 The attached patch fixed the problem. -- Matthew L. Creech
diff -purN orig/ps.c openvpn-2.2.0/ps.c --- orig/ps.c 2011-05-11 17:43:43.552032244 -0400 +++ openvpn-2.2.0/ps.c 2011-05-11 17:44:14.492031730 -0400 @@ -774,8 +774,10 @@ port_share_open (const char *host, const /* Let msg know that we forked */ msg_forked (); +#ifdef MANAGEMENT_ENABLED /* Don't interact with management interface */ management = NULL; +#endif /* close all parent fds except our socket back to parent */ close_fds_except (fd[1]);