[Samba] compiling problem with ldap support

Adi Nugraha adi at westindo.co.id
Tue Dec 14 03:55:02 GMT 2004


----- Original Message -----
From: "Adi Nugraha" <adi at westindo.co.id>
To: <samba at lists.samba.org>
Sent: Tuesday, December 14, 2004 9:29 AM
Subject: [Samba] compiling problem with ldap support


> hi,
>
> I'm trying to compile samba with ldap support, which is supposed to be a
> default in the 3.0.9 package, but i got an error msessage when i tried
make,
> something like this :
>
> Compiling dynconfig.c
> Compiling smbd/vfs.c
> Compiling passdb/pdb_interface.c
> Compiling passdb/pdb_ldap.c
> passdb/pdb_ldap.c: In function `ldapsam_delete_entry':
> passdb/pdb_ldap.c:295: warning: assignment makes pointer from integer
> without a cast
> passdb/pdb_ldap.c: In function `ldapsam_update_sam_account':
> passdb/pdb_ldap.c:1699: warning: assignment makes pointer from integer
> without a cast
> passdb/pdb_ldap.c: In function `ldapsam_add_sam_account':
> passdb/pdb_ldap.c:1846: warning: assignment makes pointer from integer
> without a cast
> passdb/pdb_ldap.c:1894: warning: assignment makes pointer from integer
> without a cast
> passdb/pdb_ldap.c: In function `ldapsam_add_group_mapping_entry':
> passdb/pdb_ldap.c:2297: warning: assignment makes pointer from integer
> without a cast
> passdb/pdb_ldap.c: In function `ldapsam_update_group_mapping_entry':
> passdb/pdb_ldap.c:2382: warning: assignment makes pointer from integer
> without a cast
> passdb/pdb_ldap.c: In function `ldapsam_modify_aliasmem':
> passdb/pdb_ldap.c:2609: warning: assignment makes pointer from integer
> without a cast
> passdb/pdb_ldap.c: In function `pdb_init_ldapsam_common':
> passdb/pdb_ldap.c:2870: incompatible types in assignment
> passdb/pdb_ldap.c: In function `pdb_init_ldapsam':
> passdb/pdb_ldap.c:2956: incompatible types in assignment
> make: *** [passdb/pdb_ldap.o] Error 1
> [root at unicorn source]# Compiling dynconfig.c
> -bash: Compiling: command not found
> [root at unicorn source]# Compiling smbd/vfs.c
> -bash: Compiling: command not found
> [root at unicorn source]# Compiling passdb/pdb_interface.c
> -bash: Compiling: command not found
> [root at unicorn source]# Compiling passdb/pdb_ldap.c
> -bash: Compiling: command not found
> [root at unicorn source]# passdb/pdb_ldap.c: In function
> `ldapsam_delete_entry':
> > passdb/pdb_ldap.c:295: warning: assignment makes pointer from integer
> without a cast
> > passdb/pdb_ldap.c: In function `ldapsam_update_sam_account':
> > passdb/pdb_ldap.c:1699: warning: assignment makes pointer from integer
> without a cast
> > passdb/pdb_ldap.c: In function `ldapsam_add_sam_account':
> -bash: command substitution: line 1: unexpected EOF while looking for
> matching `''
> -bash: command substitution: line 4: syntax error: unexpected end of file
> -bash: passdb/pdb_ldap.c:: No such file or directory
> [root at unicorn source]# passdb/pdb_ldap.c:1846: warning: assignment makes
> pointer from integer without a cast
> -bash: passdb/pdb_ldap.c:1846:: No such file or directory
> passdb/pdb_ldap.c:1894: warning: assignment makes pointer from integer
> without a cast
> [root at unicorn source]# passdb/pdb_ldap.c:1894: warning: assignment makes
> pointer from integer without a cast
> passdb/pdb_ldap.c: In function `ldapsam_add_group_mapping_entry':
> -bash: passdb/pdb_ldap.c:1894:: No such file or directory
> passdb/pdb_ldap.c:2297: warning: assignment makes pointer from integer
> without a cast
> [root at unicorn source]# passdb/pdb_ldap.c: In function
> `ldapsam_add_group_mapping_entry':
> > passdb/pdb_ldap.c:2297: warning: assignment makes pointer from integer
> without a cast
> > passdb/pdb_ldap.c: In function `ldapsam_update_group_mapping_entry':
> > passdb/pdb_ldap.c:2382: warning: assignment makes pointer from integer
> without a cast
> > passdb/pdb_ldap.c: In function `ldapsam_modify_aliasmem':
> -bash: command substitution: line 1: unexpected EOF while looking for
> matching `''
> -bash: command substitution: line 4: syntax error: unexpected end of file
> passdb/pdb_ldap.c:2609: warning: assignment makes pointer from integer
> without a cast
> passdb/pdb_ldap.c: In function `pdb_init_ldapsam_common':
> -bash: passdb/pdb_ldap.c:: No such file or directory
> passdb/pdb_ldap.c:2870: incompatible types in assignment
> [root at unicorn source]# passdb/pdb_ldap.c:2609: warning: assignment makes
> pointer from integer without a cast
> passdb/pdb_ldap.c: In function `pdb_init_ldapsam':
> -bash: passdb/pdb_ldap.c:2609:: No such file or directory
> passdb/pdb_ldap.c:2956: incompatible types in assignment
> [root at unicorn source]# passdb/pdb_ldap.c: In function
> `pdb_init_ldapsam_common':
> > passdb/pdb_ldap.c:2870: incompatible types in assignment
> > passdb/pdb_ldap.c: In function `pdb_init_ldapsam':
> > passdb/pdb_ldap.c:2956: incompatible types in assignment
> > make: *** [passdb/pdb_ldap.o] Error 1
> >
> can anyone help me with this.
additional info, I was able to compile it before installing OpenLDAP(I
wasn't intending on using LDAP backend at first), which one should be
installed first Open LDAP or Samba ? I checked previous threads, but it was
for a solaris 9, i'm using  mandrake linux 9.1,


thanks




More information about the samba mailing list