Error compiling Samba 3.0.5pre1 pdb_ldap.c on Irix

Jason Mader jason at ncac.gwu.edu
Wed May 26 15:07:07 GMT 2004


I've reported this to Bugzilla as bug #1385.  I encounter the following 
errors on when compiling on Irix 6.5.23f with MIPSpro 7.4.2m compilers. 
  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)

---Jason Mader, FHWA/NHTSA National Crash Analysis Center,
The George Washington University, VA Campus



More information about the samba-technical mailing list