[Samba] Compile Samba without AD/ADS for a slim installation

Keith Grider grider.4 at osu.edu
Thu Feb 15 11:47:07 UTC 2018


That patch allows it to compile. I applied the patch to 4.7.5 without issue.

Thanks!

On Tue, Feb 13, 2018 at 9:00 PM, Jeremy Allison <jra at samba.org> wrote:

> On Tue, Feb 13, 2018 at 04:56:19PM -0600, Keith Grider via samba wrote:
> >  I am trying to compile samba4 for a raspberry pi. I just want it to be
> > able to share a folder of files. I do not need or want all the
> > functionality and features of a full blown samba installation. This i s
> on
> > Arch and it is an armv6 raspberry.
> > I have some partial instructions for compiling without ad-dc and ads but
> > keep getting a failed build.  I have been grepping all over and I have
> been
> > unable to figure out what I need to specify here. My configuration:
> >
> > _samba4_idmap_modules=idmap_tdb2
> > _samba4_pdb_modules=pdb_tdbsam,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4
> > _samba4_auth_modules=auth_unix,auth_wbc,auth_server,
> > auth_netlogond,auth_script,auth_samba4
> >  cd ${srcdir}/samba-${pkgver}
> >   ./configure --enable-fhs \
> >               --prefix=/usr \
> >               --sbindir=/usr/bin \
> >               --libdir=/usr/lib \
> >               --libexecdir=/usr/lib/samba \
> >               --localstatedir=/var \
> >               --with-configdir=/etc/samba \
> >               --with-lockdir=/var/cache/samba \
> >               --with-sockets-dir=/var/run/samba \
> >               --with-piddir=/var/run \
> >               --without-ads \
> >               --without-ad-dc \
> >               --without-ldap \
> >               --without-winbind \
> >               --without-acl-support \
> >               --without-cluster-support \
> >               --disable-cups \
> >               --disable-iprint \
> >               --enable-gnutls \
> >               --with-pam \
> >               --with-pammodulesdir=/usr/lib/security \
> >               --bundled-libraries=!tdb,!talloc,!pytalloc-util,!tevent,
> !popt,!ldb,!pyldb-util
> > \
> >               --with-shared-modules=${_samba4_idmap_modules},${_
> > samba4_pdb_modules},${_samba4_auth_modules} \
> >               --disable-rpath-install
> >
> > The build error:
> > ...
> > [3164/3396] Linking default/examples/libsmbclient/testacl3
> > [3165/3396] Linking default/examples/libsmbclient/testsmbc
> > [3166/3396] Linking default/examples/libsmbclient/testfstatvfs
> > [3167/3396] Linking default/examples/libsmbclient/teststat
> > [3168/3396] Linking default/examples/libsmbclient/teststat3
> > [3169/3396] Linking default/source3/utils/smbget
> > [3170/3396] Linking default/examples/libsmbclient/testbrowse2
> > [3171/3396] Linking default/examples/libsmbclient/testnotify
> > [3172/3396] Linking default/examples/libsmbclient/testbrowse
> > [3173/3396] Linking default/examples/libsmbclient/testchmod
> > [3174/3396] Linking default/source3/libtrusts-util-samba4.so
> > [3175/3396] Linking default/examples/libsmbclient/testutime
> > [3176/3396] Linking default/examples/libsmbclient/testctx
> > [3177/3396] Linking default/examples/libsmbclient/teststatvfs
> > [3178/3396] Linking default/source3/libads-samba4.so
> > default/source3/libads/kerberos_keytab_64.o: In function
> `ads_keytab_list':
> > kerberos_keytab.c:(.text+0x159): undefined reference to
> `ads_keytab_open'
> > collect2: error: ld returned 1 exit status
> > Waf: Leaving directory `/home/kgrider/samba_1/src/samba-4.7.4/bin'
> > Build failed:  -> task failed (err #1):
> >         {task: cc_link ldap_64.o,sasl_64.o,sasl_
> > wrapping_64.o,krb5_setpw_64.o,kerberos_util_64.o,ldap_user_
> > 64.o,ads_struct_64.o,kerberos_keytab_64.o,disp_sec_64.o,
> > ldap_utils_64.o,ldap_schema_64.o,util_64.o,ndr_64.o,
> > namequery_dc_105.o,trustdom_cache_105.o,dsgetdcname_105.o ->
> > libads-samba4.so}
> > make: *** [Makefile:8: all] Error 1
> > ==> ERROR: A failure occurred in build().
> >     Aborting...
> >
> > Any help?
>
> You need this patch from Volker which recently went into master.
>
> Log a bug in bugzilla.samba.org if you need this back-ported
> to 4.8.0.
>
> Jeremy.
>


More information about the samba mailing list