[Samba] Compiling Samba3.0.0 on Solaris2.6

Carl Vincent c.a.vincent at newcastle.ac.uk
Wed Oct 8 12:52:42 GMT 2003

Hi, I've been trying to compile up Samba with active-directory support.
I've got Solaris2.6, gcc, openldap-2.1.22 and MIT kerberos5 1.3.1

ldap and kerberos are all compiled up happily.

Running ./configure --with-ads on Samba configures things OK, and the 
result is:
Using libraries:
     LIBS = -lsec -lgen -lresolv -lsocket -lnsl
     KRB5_LIBS =  -L/usr/local/lib -lgssapi_krb5 -lkrb5 -lk5crypto 
-lcom_err -lsocket -lnsl -lresolv
     LDAP_LIBS =  -llber -lldap
     AUTH_LIBS =

However, when running make, I get:
Using FLAGS =  -g -O2 -I/usr/local/include -I./popt -Iinclude 
-I/usr/local/install/samba-3.0.0/source/smbwrapper  -I. -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -I/usr/local/include 
       LIBS = -lsec -lgen -lresolv -lsocket -lnsl
       LDSHFLAGS = -G
       LDFLAGS =
Generating smbd/build_options.c
Building include/proto.h
creating /usr/local/install/samba-3.0.0/source/include/proto.h
Building include/wrepld_proto.h
creating /usr/local/install/samba-3.0.0/source/include/wrepld_proto.h
Building include/build_env.h
creating /usr/local/install/samba-3.0.0/source/nsswitch/winbindd_proto.h
creating /usr/local/install/samba-3.0.0/source/web/swat_proto.h
creating /usr/local/install/samba-3.0.0/source/client/client_proto.h
creating /usr/local/install/samba-3.0.0/source/utils/net_proto.h
Compiling dynconfig.c
In file included from include/includes.h:429,
                  from dynconfig.c:21:
/usr/local/include/gssapi/gssapi.h:120: warning: redefinition of 
/usr/include/rpc/rpcsec_gss.h:60: warning: `gss_cred_id_t' previously 
declared here
/usr/local/include/gssapi/gssapi.h:121: warning: redefinition of `gss_ctx_id_t'
/usr/include/rpc/rpcsec_gss.h:59: warning: `gss_ctx_id_t' previously 
declared here
/usr/local/include/gssapi/gssapi.h:172: conflicting types for 
/usr/include/rpc/rpcsec_gss.h:61: previous declaration of 
*** Error code 1
make: Fatal error: Command failed for target `dynconfig.o'

There seems to be some conflict between the gssapi stuff from the openldap 
and some of the Solaris libraries. I've tried removing the gssapi include 
files and reconfiguring, but things fail later in the build with the ads 

Has anyone else found a workaround or solution to this?



       Carl Vincent              http://www.netskills.ac.uk/ (URL)
       Systems, Software, Webmaster           0191 222 5003 (voice)
       NETSKILLS - Quality Internet Training  0191 222 5001  (fax)

More information about the samba mailing list