In lib/ldaputil/vtable.c, a global static struct is declared and initialized to {}. I see gcc allows this, and aCC does also but only with -AA ("newly supported ANSI C++ Standard features"). In ldap/servers/slapd/tools/ldclt/ldclt.c, an array size is set using a variable, which I think is legal in C99. Since the size is not computed, and this is the only place C99 is taken advantage of, this can be changed to a #define constant. However, if you're moving towards taking advantage of C99, then I would instead add the -AC99 compiler flag for HP-UX.
Created attachment 431615 [details] fix proposal
To ssh://git.fedorahosted.org/git/389/ds.git b7a93e6..2bfbe59 master -> master commit 2bfbe594a2c5593fd1ae695c118be94939651264 Author: Rich Megginson <rmeggins> Date: Wed Jul 14 15:19:01 2010 -0600
Verified the proposed fix is used in the 9.0 source code. Compiling ldclt.c is done with no errors nor warnings. Mark VERIFIED.