(Bugzilla hasn't been updated to all 3.0.5 yet, but this is in the 3.0.5 release). Compiling passdb/pdb_ldap.c cc-1059 cc: ERROR File = passdb/pdb_ldap.c, Line = 1046 A function call is not allowed in a constant expression. LOGIN_CACHE cache_entry ={time(NULL), ^ cc-1059 cc: ERROR File = passdb/pdb_ldap.c, Line = 1047 A function call is not allowed in a constant expression. pdb_get_acct_ctrl(sampass), ^ cc-1028 cc: ERROR File = passdb/pdb_ldap.c, Line = 1047 The expression used must have a constant value. pdb_get_acct_ctrl(sampass), ^ cc-1028 cc: ERROR File = passdb/pdb_ldap.c, Line = 1048 The expression used must have a constant value. badcount, badtime}; ^ cc-1028 cc: ERROR File = passdb/pdb_ldap.c, Line = 1048 The expression used must have a constant value. badcount, badtime}; ^ cc-1164 cc: WARNING File = passdb/pdb_ldap.c, Line = 2539 Argument of type "const char **" is incompatible with parameter of type "char **". LDAP_SCOPE_SUBTREE, filter, attrs, 0, &result); ^ 5 errors detected in the compilation of "passdb/pdb_ldap.c". *** Error code 2 (bu21)
Created attachment 577 [details] Patch Non-constant initializer fix (not valid C89).
*** This bug has been marked as a duplicate of 1385 ***
originally against 3.0.5rc1 (which was 34.0.6rc1 due to the security release).