[Samba] compiling problem with ldap support

Adi Nugraha
Tue, 14 Dec 2004 03:48:35 -0000

----- Original Message -----
From: "Adi Nugraha" <adi@westindo.co.id>
To: <samba@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@unicorn source]# Compiling dynconfig.c
> -bash: Compiling: command not found
> [root@unicorn source]# Compiling smbd/vfs.c
> -bash: Compiling: command not found
> [root@unicorn source]# Compiling passdb/pdb_interface.c
> -bash: Compiling: command not found
> [root@unicorn source]# Compiling passdb/pdb_ldap.c
> -bash: Compiling: command not found
> [root@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@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@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@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@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@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