erro abaixo no final da compilacao.Build failed: -> task failed (err #139): {task: manpages/smb.conf.5 smb.conf.5.xml,parameters.all.xml -> smb.conf.5} Depois de uma pesquisa, descobri que era o bug do pacote docbook-xsl na versao 1.78.1+dfsg-1, a solucao foi remover esse pacote via APT, fazer o download deste pacote na versao corrente e instalar via dpkg.Segue os procedimentos: # aptitude remove docbook-xsl # cd /opt/samba4 # wget -c "http://ftp.br.debian.org/debian/pool/main/d/docbook-xsl/docbook-xsl_1.79.1+dfsg-2_all.deb" # dpkg -i docbook-xsl_1.79.1+dfsg-2_all.deb Executar novamente o # make NOTA: Esse pacote docbook-xsl esta na versao TESTING do Debian ate a data de publicacao deste post. Apos o termino de compilacao Waf: Leaving directory `/opt/samba4/samba-4.4.5/bin' 'build' finished successfully (1h2m12.706s) A instalacao propriamente # make install Apos o termino de instalacao Waf: Leaving directory `/opt/samba4/samba-4.4.5/bin' 'install' finished successfully (28m41.800s) 3.1 Adicionar os comandos do Samba no PATH do sistema # export PATH=/usr/local/samba/bin/:/usr/local/samba/sbin/:$PATH 4. Download e instalacao do Bind 9.9.9-P4 Foi necessario instalar o Bind de forma compilada para adicionar parametros para o Samba 4 necessarios para usar o BIND9_DLZ Dependencias necessarias: # apt-get install libglobus-gssapi-gsi-dev libgssapi-krb5-2 libkrb5-dev # mkdir /opt/bind9 && cd /opt/bind9 # wget -c "http://ftp.isc.org/isc/bind9/9.9.9-P4/bind-9.9.9-P4.tar.gz" # tar -xzvf bind-9.9.9-P4.tar.gz # cd bind-9.9.9-P4 #./configure --prefix=/usr/local/bind9 --with-gssapi=/usr/include/gssapi --with-dlopen=yes # make # make install 4.1 Adicionar usuario e grupo para o Bind # groupadd -g 35 named # useradd -u 35 -g named -d /var/named -M -s /sbin/nologin named 4.2 Adicionar os comandos do Bind no PATH do sistema #export PATH=/usr/local/bind9/bin/:/usr/local/bind9/sbin/:$PATH 5. Configuracao do servidor DNS Como o Bind foi compilado e instalado em /usr/local/bind9 os arquivos de configuracao fica em /usr/local/bind9/etc que serve para as distros Debian e CentOS nesse caso. 5.1 Configuracao dos arquivos essenciais do Bind Download do servidor DNS Root # wget -q -O /var/named/named.root https://www.internic.net/zones/named.root # chown root:named /var/named/named.root # chmod 640 /var/named/named.root 5.2 Configuracao do arquivo named.conf # vim /usr/local/bind9/etc/named.conf # Global Configuration Optionsoptions { auth-nxdomain yes; directory "/var/named"; notify no; empty-zones-enable no; # IP addresses and network ranges allowed to query the DNS server: allow-query { 127.0.0.1; 192.168.1.0/24; }; # IP addresses and network ranges allowed to run recursive queries: # (Zones not served by this DNS server) allow-recursion { 127.0.0.1; 192.168.1.0/24; }; # Forward queries that can not be answered from own zones # to these DNS servers: forwarders { 8.8.8.8; 8.8.4.4; }; # Disable zone transfers allow-transfer { none; }; };# Root Servers# (Required for recursive DNS queries)zone "." { type hint; file "named.root";};# Forward zone: localhostzone "localhost" { type master; file "master/localhost.zone";};# Reverse zone: 127.0.0.zone "0.0.127.in-addr.arpa" { type master; file "master/0.0.127.zone";};# Zona direta dominio rede local saitam.intzone "saitam.in" { type master; file "master/db.saitam";};# Zona reversa 192.zone "1.168.192.in-addr.arpa" { type master; file "master/db.192";};5.3 Configuracao das zonas direta e reversa Zona direta localhost # vim /var/named/master/localhost.zone $TTL 604800@ IN SOA localhost. root.localhost. ( 2016121801 ; serial 604800 ; refresh 86400 ; retry 2419200 ; expiry 604800 ; minimum ); NS localhost.localhost. IN A 127.0.0.1 # chown named:named /var/named/master/localhost.zone # chmod 640 /var/named/master/localhost.zone Zona reversa localhost # vim /var/named/master/0.0.127.zone $TTL 604800@ IN SOA localhost. root.localhost. ( 2016121801 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ; Minimum TTL