On Mon, 17 Mar 2003, Dallas N Antley wrote: > 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. > > |Compiling passdb/pdb_ldap.c > |"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'
Is OpenLDAP installed on your system, with the development libraries? > > 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. > > Dallas > > 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. Samba-3.0.0 supports multiple password back-ends. See man smb.conf and look for "passdb backend". - John T. -- John H Terpstra Email: [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
