samba-tng-alpha.0.4, LDAP, Solaris 7 and Sun cc 5.0

Åke Holmlund holm at informatik.umu.se
Fri Feb 18 14:12:33 GMT 2000


Hi,

I'm trying to compile samba-tng-alpha.0.4 with no luck. I'm using Sun:s
Workshop cc 5.0 (with recent patches) och a sparc running Solaris 7. My
configure command looks like this:

env \
CFLAGS="-O" \
./configure \
--prefix=/local/opt/Samba \
--sysconfdir=/var/conf/Samba \
--localstatedir=/var/conf/Samba \
--libdir=/var/conf/Samba \
--with-privatedir=/var/conf/Samba/private \
--with-lockdir=/var/conf/Samba/locks \
--with-swatdir=/var/conf/Samba/swat \
--with-pam=no \
--with-sam-pwdb=nt5ldap \
--with-nt5ldap \
--with-profile \
--with-quotas

Running with these options configure eventually breaks with the message:

checking configure summary
configure: error: summary failure. Aborting config

Cause: configure sets LIBS="$LIBS -lldap -llber" when using ldap but I THINK
libldap and liblber is merged into libldap in Solaris 7. Removing all
references to -llber solves the problem. This should probably be tested by
configure. It also seems like there is a duplication of ldap-tests in 
configure. with/without-nt5ldap occures twice.

After fixing this I run make and gets:

make: Fatal error in reader: Makefile, line 989: Macro assignment on 
dependency line

Using gmake works around this problem. Cause unknown, maybe buffer overflows
in make.

Ok, running gmake everything runs fine (exept for loads of warnings :-) until
rpc_parse/parse_creds.c:
"rpc_parse/parse_creds.c", line 290: warning: syntax error:  empty declaration
"rpc_parse/parse_creds.c", line 318: warning: syntax error:  empty declaration
"rpc_parse/parse_creds.c", line 340: warning: syntax error:  empty declaration
"rpc_parse/parse_creds.c", line 389: warning: syntax error:  empty declaration

param/loadparm.c:
"param/loadparm.c", line 1327: warning: syntax error:  empty declaration
"param/loadparm.c", line 1328: warning: syntax error:  empty declaration
"param/loadparm.c", line 1329: warning: syntax error:  empty declaration
"param/loadparm.c", line 1330: warning: syntax error:  empty declaration
"param/loadparm.c", line 1334: warning: syntax error:  empty declaration
"param/loadparm.c", line 1335: warning: syntax error:  empty declaration
"param/loadparm.c", line 1336: warning: syntax error:  empty declaration
"param/loadparm.c", line 1337: warning: syntax error:  empty declaration
"param/loadparm.c", line 1338: warning: syntax error:  empty declaration

These files compile but Sun cc does NOT seem like the combination };

Finally it all brakes at samrd/srv_samr_usr_nt5ldap.c with:

Compiling samrd/srv_samr_usr_nt5ldap.c with libtool
"samrd/srv_samr_usr_nt5ldap.c", line 200: undefined symbol: user_pol
"samrd/srv_samr_usr_nt5ldap.c", line 200: warning: improper pointer/integer 
combination: arg #2
"samrd/srv_samr_usr_nt5ldap.c", line 364: warning: statement not reached
"samrd/srv_samr_usr_nt5ldap.c", line 395: prototype mismatch: 6 args passed, 4 
expected
"samrd/srv_samr_usr_nt5ldap.c", line 445: warning: argument #1 is incompatible 
with prototype:
        prototype: pointer to const char : "include/proto.h", line 1076
        argument : pointer to const uchar
"samrd/srv_samr_usr_nt5ldap.c", line 475: warning: argument #1 is incompatible 
with prototype:
        prototype: pointer to const char : "include/proto.h", line 1076
        argument : pointer to const uchar
"samrd/srv_samr_usr_nt5ldap.c", line 561: syntax error before or at: *
"samrd/srv_samr_usr_nt5ldap.c", line 563: undefined symbol: id16
"samrd/srv_samr_usr_nt5ldap.c", line 563: non-unique member requires 
struct/union pointer: acb_info
"samrd/srv_samr_usr_nt5ldap.c", line 563: left operand of "->" must be pointer 
to struct/union
"samrd/srv_samr_usr_nt5ldap.c", line 596: undefined symbol: SAM_USER_INFO_16
"samrd/srv_samr_usr_nt5ldap.c", line 596: undefined symbol: id16
"samrd/srv_samr_usr_nt5ldap.c", line 596: syntax error before or at: =
"samrd/srv_samr_usr_nt5ldap.c", line 684: prototype mismatch: 6 args passed, 4 
expected
"samrd/srv_samr_usr_nt5ldap.c", line 716: warning: assignment type mismatch:
        pointer to struct passwd {pointer to char pw_name, pointer to char 
pw_passwd, long pw_uid, long pw_gid, pointer to char pw_a... "=" pointer to 
const struct passwd {pointer to char pw_name, pointer to char pw_passwd, long 
pw_uid, long pw_gid, pointer to cha...
cc: acomp failed for samrd/srv_samr_usr_nt5ldap.c
gmake: *** [samrd/srv_samr_usr_nt5ldap.lo] Error 1

The user_pol is probably a typo (the parameter is called pol) but
SAM_USER_INFO_16 and id16 is a bit harder for me to fix :-)

Regards,
-----------------------------------------------------------------------------
Åke Holmlund					Tel:  +46 - 90 786 57 16
Umeå University					Fax:  +46 - 90 786 65 50
Dept of informatics				Email: holm at informatik.umu.se
SE-901 87 Umeå
Sweden

Ps. The archives doesn't seem do be working. No messages newer than feb 2.








More information about the samba-ntdom mailing list