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 integerwithout a cast> passdb/pdb_ldap.c: In function `ldapsam_update_sam_account': > passdb/pdb_ldap.c:1699: warning: assignment makes pointer from integerwithout 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 integerwithout a cast> passdb/pdb_ldap.c: In function `ldapsam_update_group_mapping_entry': > passdb/pdb_ldap.c:2382: warning: assignment makes pointer from integerwithout 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.
----- 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 triedmake,> 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
I used the default configure option (just ./configure), I also tried ./configure --prefix=/usr/local/samba --with-ldap as well, the configure doesn't say any error, but when i try make it was like my last message ----- Original Message ----- From: "thomas constans" <thomas.constans@opendoor.fr> To: "Adi Nugraha" <adi@westindo.co.id> Sent: Tuesday, December 14, 2004 3:31 PM Subject: Re: [Samba] compiling problem with ldap support Le mardi 14 d?cembre 2004 ? 10:55 +0700, Adi Nugraha a ?crit :> > > > > 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 itwas> for a solaris 9, i'm using mandrake linux 9.1,what are your configure options ? for ldap: there are 2 options: --with-ldap and --with-ldapsam i think the last one is d?precated so --with-ldap should be used instead hope this helps -- Thomas Constans http://www.opendoor.fr 04 78 68 17 34