[Samba] 3.0.3pre2 build error on Irix

Jason Mader jason at ncac.gwu.edu
Sun Apr 11 21:19:23 GMT 2004


I configured Samba 3.0.3pre2, on Irix 6.5.23f, with,
	env CC=cc CFLAGS="-O" ./configure --with-quotas --with-acl-support 
--with-libiconv=/opt

I'm using OpenLDAP 2.1.22 that SGI distributes.  The build failed here,

(jason)lou:source% make
Using FLAGS =  -O -I./popt -Iinclude 
-I/home/ncac/jason/ports/samba/samba-3.0.3pre2/source/include 
-I/home/ncac/jason/ports/samba/samba-3.0.3pre2/source/ubiqx 
-I/home/ncac/jason/ports/samba/samba-3.0.3pre2/source/smbwrapper  -I. 
-I/opt/include -I/home/ncac/jason/ports/samba/samba-3.0.3pre2/source
       LIBS = -lgen -lexc -liconv
       LDSHFLAGS = -set_version sgi1.0 -shared  -L/opt/lib32
       LDFLAGS = -L/opt/lib32
Compiling passdb/pdb_ldap.c
cc-1349 cc: WARNING File = /usr/include/sys/types.h, Line = 135
   The indicated declaration requires a typedef name.

   typedef       long            uid_t;
                                      ^

cc-1349 cc: WARNING File = /usr/include/sys/types.h, Line = 136
   The indicated declaration requires a typedef name.

   typedef       long            gid_t;
                                      ^

cc-1059 cc: ERROR File = passdb/pdb_ldap.c, Line = 1047
   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 = 1048
   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 = 1048
   The expression used must have a constant value.

                                                   
pdb_get_acct_ctrl(sampass),
                                                                     ^

cc-1028 cc: ERROR File = passdb/pdb_ldap.c, Line = 1049
   The expression used must have a constant value.

                                                   badcount, badtime};
                                                   ^

cc-1028 cc: ERROR File = passdb/pdb_ldap.c, Line = 1049
   The expression used must have a constant value.

                                                   badcount, badtime};
                                                             ^

5 errors detected in the compilation of "passdb/pdb_ldap.c".
*** Error code 2 (bu21)



More information about the samba mailing list