AgustÃn Quintana Alfonso
2004-Dec-03 10:13 UTC
[Samba] Problems compiling samba with ldap in solaris 9
Hi All, I get the following error compiling Samba 3.0.9 on Solaris 9. ------------------------------------------------------------------------------- Using FLAGS = -I/opt/local/kerberos/include -DHAS_LDAP -Iinclude - I/opt/software/samba/samba-3.0.9/source/include -I/opt/software/samba/samba- 3.0.9/source/ubiqx -I/opt/software/samba/samba-3.0.9/source/smbwrapper -I. - I/opt/local/kerberos/include -D_LARGEFILE_SOURCE -D_REENTRANT - D_FILE_OFFSET_BITS=64 -I/usr/local/include -I/opt/software/samba/samba- 3.0.9/source LIBS = -lsendfile -lsec -lgen -lresolv -lsocket -lnsl -ldl -liconv LDSHFLAGS = -G -lthread -L/usr/local/lib LDFLAGS = -lthread -L/usr/local/lib Compiling dynconfig.c In file included from include/includes.h:926, from dynconfig.c:21: include/proto.h:587: error: parse error before "LDAP_CONST" make: *** [dynconfig.o] Error 1 ------------------------------------------------------------------------------- I have installed openldap 2.2.17 and MIT kerberos 1.3.5. I run the following configuration command without errors: ./configure --prefix=/opt/local/samba --with-libiconv=/usr/local --with-ads -- with-krb5 --with-pam I have found the same error several times in the list, but nobody answers the problem. Thanks.
Paul Gienger
2004-Dec-03 13:45 UTC
[Samba] Problems compiling samba with ldap in solaris 9
> I have found the same error several times in the list, but nobody answers >the problem. > >Samba does compile just fine on Solaris 9 with openldap all the way up to 2.2.19 (just did it yesterday). Here's what I do, since I couldn't quite get what I would have been looking for out of your description. Openldap config: ./configure --prefix=/opt/openldap-2.2.19 --disable-bdb --enable-crypt I then make a link from /opt/openldap-version to /opt/openldap I run the following commands to set env variables: export FLAGS=-I/opt/openldap/include export CPPFLAGS=-I/opt/openldap/include export LDFLAGS=-L/opt/openldap/lib export CFLAGS="-I/opt/openldap/include" Also, make sure that crle is sane: crle -c /var/ld/ld.config -l /usr/lib:/usr/local/lib:/opt/openldap/lib Then this works fine ./configure --prefix=/opt/samba-3.0.9 --with-utmp --with-quotas --with-fhs --with-acl-support --with-automount --with-ldap make make install Alter paths where necessary of course -- -- Paul Gienger Office: 701-281-1884 Applied Engineering Inc. Systems Architect Fax: 701-281-1322 URL: www.ae-solutions.com mailto: pgienger@ae-solutions.com