Spike Burkhardt
2003-Oct-16 19:54 UTC
[Samba] Samba 2.2.8a ldap compile problem with pdb_ldap.c
All, I am trying to compile 2.2.8a with the ldapsam, acl-support & pam. The make appears to go ok but the compile part doesn't. At the beginning of the compiles it lists out the flags: Using FLAGS = -O -I./popt -Iinclude -I./include -I./ubiqx -I./smbwrapper -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLOGFILEBASE="/apps/samba/var" -DCONFIGFILE="/apps/samba/lib/smb.conf" -DLMHOSTSFILE="/apps/samba/lib/lmhosts" -DSWATDIR="/apps/samba/swat" -DSBINDIR="/apps/samba/sbin" -DLOCKDIR="/apps/samba/var/locks" -DCODEPAGEDIR="/apps/samba/lib/codepages" -DDRIVERFILE="/apps/samba/lib/printers.def" -DBINDIR="/apps/samba/bin" -DPIDDIR="/apps/samba/var/locks" -DLIBDIR="/apps/samba/lib" -DHAVE_INCLUDES_H -DPASSWD_PROGRAM="/usr/bin/passwd" -DSMB_PASSWD_FILE="/apps/samba/private/smbpasswd" -DTDB_PASSWD_FILE="/apps/samba/private/smbpasswd.tdb" Using FLAGS32 = -O -I./popt -Iinclude -I./include -I./ubiqx -I./smbwrapper -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLOGFILEBASE="/apps/samba/var" -DCONFIGFILE="/apps/samba/lib/smb.conf" -DLMHOSTSFILE="/apps/samba/lib/lmhosts" -DSWATDIR="/apps/samba/swat" -DSBINDIR="/apps/samba/sbin" -DLOCKDIR="/apps/samba/var/locks" -DCODEPAGEDIR="/apps/samba/lib/codepages" -DDRIVERFILE="/apps/samba/lib/printers.def" -DBINDIR="/apps/samba/bin" -DPIDDIR="/apps/samba/var/locks" -DLIBDIR="/apps/samba/lib" -DHAVE_INCLUDES_H -DPASSWD_PROGRAM="/usr/bin/passwd" -DSMB_PASSWD_FILE="/apps/samba/private/smbpasswd" -DTDB_PASSWD_FILE="/apps/samba/private/smbpasswd.tdb" Using LIBS = -lsec -lgen -lsocket -lnsl -lpam I get the following error messages: passdb/secrets.c: In function `secrets_fetch': passdb/secrets.c:59: warning: assignment discards qualifiers from pointer target type passdb/secrets.c: In function `secrets_store': passdb/secrets.c:74: warning: assignment discards qualifiers from pointer target type passdb/secrets.c:76: warning: assignment discards qualifiers from pointer target type passdb/secrets.c: In function `secrets_delete': passdb/secrets.c:89: warning: assignment discards qualifiers from pointer target type Compiling passdb/pass_check.c Compiling passdb/smbpassfile.c Compiling passdb/machine_sid.c Compiling passdb/pdb_smbpasswd.c Compiling passdb/pampass.c passdb/pampass.c: In function `make_pw_chat': passdb/pampass.c:220: warning: passing arg 1 of `next_token' from incompatible pointer type passdb/pampass.c:231: warning: passing arg 1 of `next_token' from incompatible pointer type passdb/pampass.c: In function `smb_setup_pam_conv': passdb/pampass.c:418: warning: assignment from incompatible pointer type Compiling passdb/pdb_tdb.c Compiling passdb/pdb_ldap.c passdb/pdb_ldap.c: In function `rebindproc_with_state': passdb/pdb_ldap.c:276: `ldap_state' undeclared (first use in this function) passdb/pdb_ldap.c:276: (Each undeclared identifier is reported only once passdb/pdb_ldap.c:276: for each function it appears in.) passdb/pdb_ldap.c: In function `pdb_getsampwnam': passdb/pdb_ldap.c:938: warning: passing arg 2 of `standard_sub_advanced' discards qualifiers from pointer target type *** Error code 1 make: Fatal error: Command failed for target `passdb/pdb_ldap.o' Can anyone help me out? Spike