[SAMBA] pdb_ldap.c Compilation Errors during "make"

Lucas Machado thru.being.cool at gmail.com
Fri Nov 12 21:48:06 GMT 2004


I was following these directions:
http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/compiling.html
for compiling Samba from source and it ran smoothly.  However, I
realized that to have Active Directory support I needed to install
some Kerberos and LDAP packages and recompile.  I ran ./configure and,
like it says in the instructions, lines like these:

#define HAVE_KRB5 1
#define HAVE_LDAP 1

were found in include/config.h.  However, when I tried to run make i got this:



/usr/local/src/samba-3.0.7/source# make
Using FLAGS =  -O -I./popt -Iinclude
-I/usr/local/src/samba-3.0.7/source/include
-I/usr/local/src/samba-3.0.7/source/ubiqx
-I/usr/local/src/samba-3.0.7/source/smbwrapper  -I.
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-I/usr/local/src/samba-3.0.7/source
      LIBS = -lcrypt -lresolv -lnsl -ldl
      LDSHFLAGS = -shared -Wl,-Bsymbolic
      LDFLAGS =
Compiling passdb/pdb_ldap.c
passdb/pdb_ldap.c: In function `ldapsam_delete_entry':
passdb/pdb_ldap.c:274: warning: assignment makes pointer from integer
without a cast
passdb/pdb_ldap.c: In function `ldapsam_update_sam_account':
passdb/pdb_ldap.c:1590: warning: assignment makes pointer from integer
without a cast
passdb/pdb_ldap.c: In function `ldapsam_add_sam_account':
passdb/pdb_ldap.c:1737: warning: assignment makes pointer from integer
without a cast
passdb/pdb_ldap.c:1785: warning: assignment makes pointer from integer
without a cast
passdb/pdb_ldap.c: In function `ldapsam_add_group_mapping_entry':
passdb/pdb_ldap.c:2188: warning: assignment makes pointer from integer
without a cast
passdb/pdb_ldap.c: In function `ldapsam_update_group_mapping_entry':
passdb/pdb_ldap.c:2273: warning: assignment makes pointer from integer
without a cast
passdb/pdb_ldap.c: In function `ldapsam_modify_aliasmem':
passdb/pdb_ldap.c:2500: warning: assignment makes pointer from integer
without a cast
passdb/pdb_ldap.c: In function `pdb_init_ldapsam_common':
passdb/pdb_ldap.c:2759: error: incompatible types in assignment
passdb/pdb_ldap.c: In function `pdb_init_ldapsam':
passdb/pdb_ldap.c:2847: error: incompatible types in assignment
make: *** [passdb/pdb_ldap.o] Error 1



I have searched on the web and could not find any solutions to this
problem. Anyone have any idea what may be the problem?
-- 
Cheers,
--Lucas Machado


More information about the samba mailing list