[Samba] samba-tool question

Rowland Penny rowlandpenny at googlemail.com
Fri Nov 1 08:25:29 MDT 2013


On 01/11/13 12:29, lux-integ wrote:
> On Friday 01 November 2013 12:20:49 Rowland Penny wrote:
>> Could you please post exactly how you compiled Samba4,
> herewith
> --1--
> #######################################
>     apply sed  for libtirpc
>   #######################################
>
> sed -i -e /dmapi_lib/s/$/ldflags='-ltirpc',/ source3/wscript_build
>
>
>
> --2--
>   #####################################
>     waf configure
>   #####################################
>
>
> ./buildtools/bin/waf configure  \
> --prefix=${SAMBA_PREFIX}  \
> --sysconfdir=/etc/samba4 \
> --localstatedir=/var \
> --docdir=/usr/share/doc/samba4 \
> --with-ctdb-dir=/usr \
> --with-system-mitkrb5 \
> --with-automount \
> --with-syslog \
> --with-dnsupdate \
> --with-acl-support \
> --with-iconv \
> --enable-pthreadpool \
> --with-quotas \
> --with-pam \
> --with-pam_smbpass \
> --enable-cups \
> --with-ldap \
> --enable-gnutls \
> --localedir=/usr/share/locale \
> --mandir=/usr/share/man \
> --with-statedir=/var/lib/samba4 \
> --with-pammodulesdir=/lib/security \
> --with-privatedir=/var/db/samba4 \
> --with-piddir=/var/run/samba4 \
> --with-cachedir=/var/cache/samba4 \
> --with-lockdir=/var/lock/samba4 \
> --with-logfilebase=/var/log/samba4 \
> --with-sockets-dir=/var/run/samba4 \
> --with-privileged-socket-dir=/var/lib/samba4 \
> --with-configdir=/etc/samba4 \
>
>
>
> --3--
>   ###################################
>     ./waf build
>   ##################################
>
>
> ./buildtools/bin/waf build
OK, I have never done it like this, but I see what you are trying to do, 
but does configure understand ${SAMBA_PREFIX} ?  it is normally 
/usr/local/samba and I think it should be set to a path. Also you seem 
to have set all the paths except for  --bindir=BINDIR and 
--sbindir=SBINDIR and if configure doesn't know where ${SAMBA_PREFIX} 
is, it probably does not know where to put the files that it normally 
puts in /usr/local/samba/bin & sbin

Probably doesn't mean anything, but most people run './configure' (with 
any options) then 'make', then 'make install' rather than running waf 
direct.

Rowland



More information about the samba mailing list