[Samba] Samba 2.2.8 compile failure - Solaris 8, SunCC, LDAP
Dallas N Antley
dna+samba at clas.ufl.edu
Mon Mar 17 22:32:28 GMT 2003
My apologies if this isn't the correct posting address -- I didn't see
an obvious "report problems here" on the website. Some of the code
modifications introduced between 2.2.7 and 2.2.8 don't appear to agree
with Solaris, using Sun's CC, with the LDAP support code. Note that
I'm linking against the Solaris-bundled LDAP package (SUNWlldap).
|% env CFLAGS="-xcg92 -xO4 -xspace" LDFLAGS="-s" ./configure \
| --with-quotas --with-utmp --with-acl-support --with-winbind \
| --with-pam --with-ldapsam --prefix=/opt/samba_2.2.8 \
| --mandir=/opt/samba_2.2.8/share/man \
| --infodir=/opt/samba_2.2.8/share/info \
| --sysconfdir=/opt/samba_2.2.8/share/conf \
| --with-configdir=/opt/samba_2.2.8/share/conf \
| --with-privatedir=/var/samba/private --with-piddir=/var/run \
| --with-swatdir=/opt/samba_2.2.8/share/swat \
| --localstatedir=/var/samba |& tee DEPOT.conf
|% cc -V
|cc: Sun WorkShop 6 update 2 C 5.3 2001/05/15
|usage: cc [ options] files. Use 'cc -flags' for details
|% uname -a
|SunOS XXXX 5.8 Generic_108528-19 sun4u sparc SUNW,Sun-Fire-280R
While this worked fine for 2.2.7, using '--with-ldapsam' yields the
following fatal error.
|"passdb/pdb_ldap.c", line 276: undefined symbol: ldap_state
|"passdb/pdb_ldap.c", line 276: undefined struct/union member: bind_dn
|"passdb/pdb_ldap.c", line 276: left operand of "->" must be pointer to struct/union
|"passdb/pdb_ldap.c", line 276: warning: improper pointer/integer combination: arg #1
|"passdb/pdb_ldap.c", line 938: warning: argument #2 is incompatible with prototype:
| prototype: pointer to char : "include/proto.h", line 843
| argument : pointer to const char
|cc: acomp failed for passdb/pdb_ldap.c
|*** Error code 2
|make: Fatal error: Command failed for target `passdb/pdb_ldap.o'
Re-configuring without '--with-ldapsam' allows the build to complete,
albeit with a fair number more compiler warnings then with 2.2.7.
Thanks much for any help you can provide.
PS. On a related note, it doesn't appear possible to build Samba with
support for more than one potential SAM source. I'd like one
build to support both /etc/smbpasswd and LDAP-SAM, with config
file options specifying which source. Did I miss some
compile-time option? Thanks.
More information about the samba