I encounter the following errors on when compiling on Irix 6.5.23f with MIPSpro 7.4.2m compilers, affects Samba 3.0.4 and 3.0.5pre1. The configure syntax I used was: env CC=cc CFLAGS="-O" ./configure --with-quotas --with-acl-support --with-libiconv=/opt 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)
Fixed - thanks. Jeremy.
*** Bug 1550 has been marked as a duplicate of this bug. ***
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.