[Samba] Problem compliling samba 3.0.25b with openldap-2.3.32(stable)

Angela Gavazzi edv at goetheanum.ch
Thu Aug 2 13:28:22 GMT 2007


Hallo!

When compiling samba 3.0.25b with openldap-2.3.32 make failes with the 
following error:
Compiling passdb/pdb_ldap.c
./source/passdb/pdb_ldap.c: In function ‘ldapsam_get_new_rid’:
./source/passdb/pdb_ldap.c:4459: error: incompatible types in assignment
./source/passdb/pdb_ldap.c: In function ‘pdb_init_ldapsam’:
./source/passdb/pdb_ldap.c:5654: error: incompatible types in assignment
The following command failed:
gcc -I. -I/usr/src/samba/samba-070802/samba-3.0.25b/./source  -I/usr/local/ldap/include -D_SAMBA_BUILD_=3  -I/usr/src/samba/samba-070802/samba-3.0.25b/./source/iniparser/src -Iinclude -I/usr/src/samba/samba-070802/samba-3.0.25b/./source/include -I. -I/usr/src/samba/samba-070802/samba-3.0.25b/./source -I/usr/src/samba/samba-070802/samba-3.0.25b/./source/lib/replace -I/usr/src/samba/samba-070802/samba-3.0.25b/./source/lib/talloc -I/usr/src/samba/samba-070802/samba-3.0.25b/./source/tdb/include -I/usr/src/samba/samba-070802/samba-3.0.25b/./source/libaddns -I/usr/src/samba/samba-070802/samba-3.0.25b/./source/librpc -DHAVE_CONFIG_H  -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLDAP_DEPRECATED    -I/usr/src/samba/samba-070802/samba-3.0.25b/./source/lib -D_SAMBA_BUILD_=3 -fPIC -c ./source/passdb/pdb_ldap.c -o 
passdb/pdb_ldap.o
make: *** [passdb/pdb_ldap.o] Fehler 1


This is my install script which works with samba 3.0.25 on the same machine.

CFLAGS="-I/usr/local/ldap/include"
LDFLAGS="-L/usr/local/ldap/lib"

export CFLAGS
export LDFLAGS

configure \
'--prefix=/usr/local/samba' \
'--sysconfdir=/etc' \
'--localstatedir=/usr/local/samba/var' \
'--with-configdir=/etc/samba' \
'--with-ldap=/usr/local/ldap' \
'--with-privatedir=/etc/samba' \
'--with-lockdir=/usr/local/samba/var/lock' \
'--with-piddir=/usr/local/samba/var/run' \
'--with-swatdir=/usr/local/samba/swat' \
'--with-smbmount' \
'--with-quotas' \
'--with-acl-support'

Thanks
Angela


More information about the samba mailing list