Erro ao compilar Samba [RESOLVIDO]

1. Erro ao compilar Samba [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 06/02/2016 - 10:50h

Bom dia a todos !
Estou seguindo o tutorial https://www.vivaolinux.com.br/artigo/Samba-4-Active-Directory-no-DebianUbuntu-Server/?pagina=2
para instalação do Samba4.
Minha distribuição e Ubuntu Server1 4.04.03 Trusty .
Logo abaixo vou inserir os erros ao executar make e make install.
Reparem que no final aparecem erros.


Erro ao Executar Make

root@rst03:~# cd samba-4.0.5/
root@rst03:~/samba-4.0.5# make
WAF_MAKE=1 python ./buildtools/bin/waf build
Waf: Entering directory `/home/felipe/samba-4.0.5/bin'
Selected embedded Heimdal build
[ 126/3771] Generating VERSION
[ 160/3771] Generating smbd/build_options.c
[ 721/3771] Compiling lib/ldb/common/ldb.c
../lib/ldb/common/ldb.c: In function ‘ldb_init’:
../lib/ldb/common/ldb.c:116:3: warning: ‘tevent_loop_allow_nesting’ is deprecated (declared at default/include/public/tevent.h:1609) [-Wdeprecated-declarations]
tevent_loop_allow_nesting(ev_ctx);
^
[ 736/3771] Compiling dynconfig/dynconfig.c
[2080/3771] Compiling source4/heimdal/lib/krb5/expand_path.c
[2081/3771] Compiling source4/heimdal/lib/krb5/plugin.c
[2082/3771] Compiling source4/heimdal/lib/krb5/context.c
[2412/3771] Compiling libcli/smbreadline/smbreadline.c
../libcli/smbreadline/smbreadline.c: In function ‘smb_readline’:
../libcli/smbreadline/smbreadline.c:144:20: error: ‘Function’ undeclared (first use in this function)
rl_event_hook = (Function *)callback;
^
../libcli/smbreadline/smbreadline.c:144:20: note: each undeclared identifier is reported only once for each function it appears in
../libcli/smbreadline/smbreadline.c:144:30: error: expected expression before ‘)’ token
rl_event_hook = (Function *)callback;
^
Waf: Leaving directory `/home/felipe/samba-4.0.5/bin'
Build failed: -> task failed (err #1):
{task: cc smbreadline.c -> smbreadline_1.o}
make: ** [all] Erro 1

root@rst03:~/samba-4.0.5#



Erro ao Executar Make Install:



root@rst03:~/samba-4.0.5# make install
WAF_MAKE=1 python ./buildtools/bin/waf install
Waf: Entering directory `/home/felipe/samba-4.0.5/bin'
* creating /usr/local/samba/etc
* creating /usr/local/samba/private
* creating /usr/local/samba/var
* creating /usr/local/samba/private
* creating /usr/local/samba/var/lib
* creating /usr/local/samba/var/locks
* creating /usr/local/samba/var/cache
* creating /usr/local/samba/var/lock
* creating /usr/local/samba/var/run
* creating /usr/local/samba/var/run
Selected embedded Heimdal build
Checking project rules ...
Project rules pass
* installing bin/default/lib/replace/libreplace.inst.so as /usr/local/samba/lib/private/libreplace.so
[ 127/4072] Generating VERSION
[ 161/4072] Generating smbd/build_options.c
* installing bin/default/lib/param/samba-hostconfig.pc as /usr/local/samba/lib/pkgconfig/samba-hostconfig.pc
* installing bin/default/source4/librpc/dcerpc_samr.pc as /usr/local/samba/lib/pkgconfig/dcerpc_samr.pc
* installing bin/default/source4/librpc/dcerpc_atsvc.pc as /usr/local/samba/lib/pkgconfig/dcerpc_atsvc.pc
* installing bin/default/source4/librpc/dcerpc.pc as /usr/local/samba/lib/pkgconfig/dcerpc.pc
* installing bin/default/source4/dsdb/samdb.pc as /usr/local/samba/lib/pkgconfig/samdb.pc
* installing bin/default/auth/gensec/gensec.pc as /usr/local/samba/lib/pkgconfig/gensec.pc
* installing bin/default/auth/credentials/samba-credentials.pc as /usr/local/samba/lib/pkgconfig/samba-credentials.pc
* installing bin/default/nsswitch/libwbclient/wbclient.pc as /usr/local/samba/lib/pkgconfig/wbclient.pc
* installing bin/default/source4/lib/registry/registry.pc as /usr/local/samba/lib/pkgconfig/registry.pc
* installing bin/default/lib/util/samba-util.pc as /usr/local/samba/lib/pkgconfig/samba-util.pc
* installing bin/default/lib/torture/torture.pc as /usr/local/samba/lib/pkgconfig/torture.pc
* installing bin/default/source4/rpc_server/dcerpc_server.pc as /usr/local/samba/lib/pkgconfig/dcerpc_server.pc
* installing bin/default/librpc/ndr_krb5pac.pc as /usr/local/samba/lib/pkgconfig/ndr_krb5pac.pc
* installing bin/default/librpc/ndr_standard.pc as /usr/local/samba/lib/pkgconfig/ndr_standard.pc
* installing bin/default/librpc/ndr_nbt.pc as /usr/local/samba/lib/pkgconfig/ndr_nbt.pc
* installing bin/default/librpc/ndr.pc as /usr/local/samba/lib/pkgconfig/ndr.pc
* installing bin/default/source4/libcli/raw/smbclient-raw.pc as /usr/local/samba/lib/pkgconfig/smbclient-raw.pc
* installing bin/default/source4/lib/policy/samba-policy.pc as /usr/local/samba/lib/pkgconfig/samba-policy.pc
* installing bin/default/source4/scripting/bin/samba_dnsupdate.inst as /usr/local/samba/sbin/samba_dnsupdate
* installing bin/default/source4/scripting/bin/samba_spnupdate.inst as /usr/local/samba/sbin/samba_spnupdate
* installing bin/default/source4/scripting/bin/samba_upgradedns.inst as /usr/local/samba/sbin/samba_upgradedns
* installing bin/default/source4/scripting/bin/samba_kcc.inst as /usr/local/samba/sbin/samba_kcc
* installing bin/default/source4/scripting/bin/samba-tool.inst as /usr/local/samba/bin/samba-tool
* installing bin/default/lib/empty_file as /usr/local/samba/lib/python2.7/site-packages/samba/external/__init__.py
* installing bin/default/source3/libnet/netapi.pc as /usr/local/samba/lib/pkgconfig/netapi.pc
* installing bin/default/source3/libsmb/smbsharemodes.pc as /usr/local/samba/lib/pkgconfig/smbsharemodes.pc
* installing bin/default/source3/libsmb/smbclient.pc as /usr/local/samba/lib/pkgconfig/smbclient.pc
* installing bin/default/include/public/pytalloc.h as /usr/local/samba/include/pytalloc.h
* installing bin/default/include/public/param.h as /usr/local/samba/include/param.h
* installing bin/default/include/public/samba/version.h as /usr/local/samba/include/samba/version.h
* installing bin/default/include/public/charset.h as /usr/local/samba/include/charset.h
* installing bin/default/include/public/share.h as /usr/local/samba/include/share.h
* installing bin/default/include/public/gen_ndr/ndr_samr_c.h as /usr/local/samba/include/gen_ndr/ndr_samr_c.h
* installing bin/default/include/public/gen_ndr/ndr_atsvc_c.h as /usr/local/samba/include/gen_ndr/ndr_atsvc_c.h
* installing bin/default/include/public/dcerpc.h as /usr/local/samba/include/dcerpc.h
* installing bin/default/include/public/gen_ndr/mgmt.h as /usr/local/samba/include/gen_ndr/mgmt.h
* installing bin/default/include/public/gen_ndr/ndr_mgmt.h as /usr/local/samba/include/gen_ndr/ndr_mgmt.h
* installing bin/default/include/public/gen_ndr/ndr_mgmt_c.h as /usr/local/samba/include/gen_ndr/ndr_mgmt_c.h
* installing bin/default/include/public/gen_ndr/epmapper.h as /usr/local/samba/include/gen_ndr/epmapper.h
* installing bin/default/include/public/gen_ndr/ndr_epmapper.h as /usr/local/samba/include/gen_ndr/ndr_epmapper.h
* installing bin/default/include/public/gen_ndr/ndr_epmapper_c.h as /usr/local/samba/include/gen_ndr/ndr_epmapper_c.h
* installing bin/default/include/public/samba/session.h as /usr/local/samba/include/samba/session.h
* installing bin/default/include/public/gensec.h as /usr/local/samba/include/gensec.h
* installing bin/default/include/public/credentials.h as /usr/local/samba/include/credentials.h
* installing bin/default/include/public/wbclient.h as /usr/local/samba/include/wbclient.h
* installing bin/default/include/public/ldb_wrap.h as /usr/local/samba/include/ldb_wrap.h
* installing bin/default/include/public/registry.h as /usr/local/samba/include/registry.h
* installing bin/default/include/public/util/debug.h as /usr/local/samba/include/util/debug.h
* installing bin/default/include/public/util/attr.h as /usr/local/samba/include/util/attr.h
* installing bin/default/include/public/util/byteorder.h as /usr/local/samba/include/util/byteorder.h
* installing bin/default/include/public/util/data_blob.h as /usr/local/samba/include/util/data_blob.h
* installing bin/default/include/public/util/memory.h as /usr/local/samba/include/util/memory.h
* installing bin/default/include/public/util/safe_string.h as /usr/local/samba/include/util/safe_string.h
* installing bin/default/include/public/util/time.h as /usr/local/samba/include/util/time.h
* installing bin/default/include/public/util/talloc_stack.h as /usr/local/samba/include/util/talloc_stack.h
* installing bin/default/include/public/util/xfile.h as /usr/local/samba/include/util/xfile.h
* installing bin/default/include/public/dlinklist.h as /usr/local/samba/include/./dlinklist.h
* installing bin/default/include/public/samba_util.h as /usr/local/samba/include/./samba_util.h
* installing bin/default/include/public/util/string_wrappers.h as /usr/local/samba/include/util/string_wrappers.h
* installing bin/default/include/public/util/tevent_ntstatus.h as /usr/local/samba/include/util/tevent_ntstatus.h
* installing bin/default/include/public/util/tevent_unix.h as /usr/local/samba/include/util/tevent_unix.h
* installing bin/default/include/public/util/tevent_werror.h as /usr/local/samba/include/util/tevent_werror.h
* installing bin/default/include/public/util_ldb.h as /usr/local/samba/include/util_ldb.h
* installing bin/default/include/public/tdr.h as /usr/local/samba/include/tdr.h
* installing bin/default/include/public/tsocket.h as /usr/local/samba/include/tsocket.h
* installing bin/default/include/public/tsocket_internal.h as /usr/local/samba/include/tsocket_internal.h
* installing bin/default/include/public/torture.h as /usr/local/samba/include/torture.h
* installing bin/default/include/public/dcerpc_server.h as /usr/local/samba/include/dcerpc_server.h
* installing bin/default/include/public/gen_ndr/auth.h as /usr/local/samba/include/gen_ndr/auth.h
* installing bin/default/include/public/gen_ndr/server_id.h as /usr/local/samba/include/gen_ndr/server_id.h
* installing bin/default/include/public/gen_ndr/security.h as /usr/local/samba/include/gen_ndr/security.h
* installing bin/default/include/public/gen_ndr/ndr_dcerpc.h as /usr/local/samba/include/gen_ndr/ndr_dcerpc.h
* installing bin/default/include/public/gen_ndr/dcerpc.h as /usr/local/samba/include/gen_ndr/dcerpc.h
* installing bin/default/include/public/gen_ndr/ndr_drsuapi.h as /usr/local/samba/include/gen_ndr/ndr_drsuapi.h
* installing bin/default/include/public/gen_ndr/drsuapi.h as /usr/local/samba/include/gen_ndr/drsuapi.h
* installing bin/default/include/public/ndr/ndr_drsuapi.h as /usr/local/samba/include/ndr/ndr_drsuapi.h
* installing bin/default/include/public/gen_ndr/ndr_drsblobs.h as /usr/local/samba/include/gen_ndr/ndr_drsblobs.h
* installing bin/default/include/public/gen_ndr/drsblobs.h as /usr/local/samba/include/gen_ndr/drsblobs.h
* installing bin/default/include/public/ndr/ndr_drsblobs.h as /usr/local/samba/include/ndr/ndr_drsblobs.h
* installing bin/default/include/public/gen_ndr/krb5pac.h as /usr/local/samba/include/gen_ndr/krb5pac.h
* installing bin/default/include/public/gen_ndr/ndr_krb5pac.h as /usr/local/samba/include/gen_ndr/ndr_krb5pac.h
* installing bin/default/include/public/gen_ndr/samr.h as /usr/local/samba/include/gen_ndr/samr.h
* installing bin/default/include/public/gen_ndr/ndr_samr.h as /usr/local/samba/include/gen_ndr/ndr_samr.h
* installing bin/default/include/public/gen_ndr/lsa.h as /usr/local/samba/include/gen_ndr/lsa.h
* installing bin/default/include/public/gen_ndr/netlogon.h as /usr/local/samba/include/gen_ndr/netlogon.h
* installing bin/default/include/public/gen_ndr/atsvc.h as /usr/local/samba/include/gen_ndr/atsvc.h
* installing bin/default/include/public/gen_ndr/ndr_atsvc.h as /usr/local/samba/include/gen_ndr/ndr_atsvc.h
* installing bin/default/include/public/gen_ndr/ndr_svcctl.h as /usr/local/samba/include/gen_ndr/ndr_svcctl.h
* installing bin/default/include/public/gen_ndr/svcctl.h as /usr/local/samba/include/gen_ndr/svcctl.h
* installing bin/default/include/public/gen_ndr/nbt.h as /usr/local/samba/include/gen_ndr/nbt.h
* installing bin/default/include/public/gen_ndr/ndr_nbt.h as /usr/local/samba/include/gen_ndr/ndr_nbt.h
* installing bin/default/include/public/ndr/ndr_nbt.h as /usr/local/samba/include/ndr/ndr_nbt.h
* installing bin/default/include/public/gen_ndr/ndr_svcctl_c.h as /usr/local/samba/include/gen_ndr/ndr_svcctl_c.h
* installing bin/default/include/public/ndr/ndr_svcctl.h as /usr/local/samba/include/ndr/ndr_svcctl.h
* installing bin/default/include/public/gen_ndr/misc.h as /usr/local/samba/include/gen_ndr/misc.h
* installing bin/default/include/public/gen_ndr/ndr_misc.h as /usr/local/samba/include/gen_ndr/ndr_misc.h
* installing bin/default/include/public/ndr.h as /usr/local/samba/include/ndr.h
* installing bin/default/include/public/rpc_common.h as /usr/local/samba/include/rpc_common.h
* installing bin/default/include/public/ldap-util.h as /usr/local/samba/include/ldap-util.h
* installing bin/default/include/public/smb_composite.h as /usr/local/samba/include/smb_composite.h
* installing bin/default/include/public/smb_cli.h as /usr/local/samba/include/smb_cli.h
* installing bin/default/include/public/smb_request.h as /usr/local/samba/include/smb_request.h
* installing bin/default/include/public/smb_raw_signing.h as /usr/local/samba/include/smb_raw_signing.h
* installing bin/default/include/public/smb_cliraw.h as /usr/local/samba/include/smb_cliraw.h
* installing bin/default/include/public/smb_raw_interfaces.h as /usr/local/samba/include/smb_raw_interfaces.h
* installing bin/default/include/public/smb_raw.h as /usr/local/samba/include/smb_raw.h
* installing bin/default/include/public/smb_raw_trans2.h as /usr/local/samba/include/smb_raw_trans2.h
* installing bin/default/include/public/smb2.h as /usr/local/samba/include/smb2.h
* installing bin/default/include/public/read_smb.h as /usr/local/samba/include/read_smb.h
* installing bin/default/include/public/smb_common.h as /usr/local/samba/include/smb_common.h
* installing bin/default/include/public/smb2_constants.h as /usr/local/samba/include/smb2_constants.h
* installing bin/default/include/public/smb_constants.h as /usr/local/samba/include/smb_constants.h
* installing bin/default/include/public/smb_signing.h as /usr/local/samba/include/smb_signing.h
* installing bin/default/include/public/smb_seal.h as /usr/local/samba/include/smb_seal.h
* installing bin/default/include/public/smb2_create_blob.h as /usr/local/samba/include/smb2_create_blob.h
* installing bin/default/include/public/smb2_signing.h as /usr/local/samba/include/smb2_signing.h
* installing bin/default/include/public/smb_util.h as /usr/local/samba/include/smb_util.h
* installing bin/default/include/public/smb_unix_ext.h as /usr/local/samba/include/smb_unix_ext.h
* installing bin/default/include/public/core/error.h as /usr/local/samba/include/core/error.h
* installing bin/default/include/public/core/ntstatus.h as /usr/local/samba/include/core/ntstatus.h
* installing bin/default/include/public/core/doserr.h as /usr/local/samba/include/core/doserr.h
* installing bin/default/include/public/core/werror.h as /usr/local/samba/include/core/werror.h
* installing bin/default/include/public/ldap_message.h as /usr/local/samba/include/ldap_message.h
* installing bin/default/include/public/ldap_errors.h as /usr/local/samba/include/ldap_errors.h
* installing bin/default/include/public/ldap_ndr.h as /usr/local/samba/include/ldap_ndr.h
* installing bin/default/include/public/domain_credentials.h as /usr/local/samba/include/domain_credentials.h
* installing bin/default/include/public/policy.h as /usr/local/samba/include/policy.h
* installing bin/default/include/public/roles.h as /usr/local/samba/include/roles.h
* installing bin/default/include/public/netapi.h as /usr/local/samba/include/netapi.h
* installing bin/default/include/public/smb_share_modes.h as /usr/local/samba/include/smb_share_modes.h
* installing bin/default/include/public/passdb.h as /usr/local/samba/include/passdb.h
* installing bin/default/include/public/machine_sid.h as /usr/local/samba/include/machine_sid.h
* installing bin/default/include/public/lookup_sid.h as /usr/local/samba/include/lookup_sid.h
* installing bin/default/include/public/smbldap.h as /usr/local/samba/include/smbldap.h
* installing bin/default/include/public/smb_ldap.h as /usr/local/samba/include/smb_ldap.h
* installing bin/default/include/public/smbconf.h as /usr/local/samba/include/smbconf.h
* installing bin/default/include/public/libsmbclient.h as /usr/local/samba/include/libsmbclient.h
[ 722/4072] Compiling lib/ldb/common/ldb.c
../lib/ldb/common/ldb.c: In function ‘ldb_init’:
../lib/ldb/common/ldb.c:116:3: warning: ‘tevent_loop_allow_nesting’ is deprecated (declared at default/include/public/tevent.h:1609) [-Wdeprecated-declarations]
tevent_loop_allow_nesting(ev_ctx);
^
[ 737/4072] Compiling dynconfig/dynconfig.c
[2081/4072] Compiling source4/heimdal/lib/krb5/expand_path.c
[2082/4072] Compiling source4/heimdal/lib/krb5/plugin.c
[2083/4072] Compiling source4/heimdal/lib/krb5/context.c
[2413/4072] Compiling libcli/smbreadline/smbreadline.c
../libcli/smbreadline/smbreadline.c: In function ‘smb_readline’:
../libcli/smbreadline/smbreadline.c:144:20: error: ‘Function’ undeclared (first use in this function)
rl_event_hook = (Function *)callback;
^
../libcli/smbreadline/smbreadline.c:144:20: note: each undeclared identifier is reported only once for each function it appears in
../libcli/smbreadline/smbreadline.c:144:30: error: expected expression before ‘)’ token
rl_event_hook = (Function *)callback;
^
Waf: Leaving directory `/home/felipe/samba-4.0.5/bin'
Build failed: -> task failed (err #1):
{task: cc smbreadline.c -> smbreadline_1.o}
make: ** [install] Erro 1
root@rst03:~/samba-4.0.5#







  


2. MELHOR RESPOSTA

Wagner Souza
wagnerfs

(usa Fedora)

Enviado em 06/02/2016 - 11:17h

Provavelmente deve estar faltando dependências ou até mesmo o pacote de compilação. Tendo em vista que vocês está seguindo o passo a passo de um artigo aqui do VOL, posta essa tua dúvida nos comentários do artigo que o autor pode te ajudar melhor.
_________________________
Wagner F. de Souza
Técnico/Instrutor de Informática
"GNU/Linux for human beings."
LPI ID: LPI000297782


3. Re: Erro ao compilar Samba [RESOLVIDO]

Luís Fernando C. Cavalheiro
lcavalheiro

(usa Slackware)

Enviado em 06/02/2016 - 12:31h

Em primeiro lugar, uma pergunta: cara, pra quê compilar o Samba se sua distro providencia pacotes prontos?
--
Dino®
Vi veri universum vivus vici
Public GPG signature: 0x246A590B
Só Slackware é GNU/Linux e Patrick Volkerding é o seu Profeta


4. 3. RE: ERRO AO COMPILAR SAMBA

Perfil removido
removido

(usa Nenhuma)

Enviado em 06/02/2016 - 14:12h

Resolvi compilar para teste mesmo.
Olha que estranho... no 14.04.03 esta com erro, mas no 15.04 foi de primeira a compilação.



5. Re: Erro ao compilar Samba [RESOLVIDO]

Wagner Souza
wagnerfs

(usa Fedora)

Enviado em 07/02/2016 - 13:14h

Provavelmente deve ser alguma dependência que não é satisfeita na versão anterior.

Caso a sua dúvida tenha sido esclarecido, por gentileza, encerrar o tópico e atribuir a melhor resposta a alguèm.
_________________________
Wagner F. de Souza
Técnico/Instrutor de Informática
"GNU/Linux for human beings."
LPI ID: LPI000297782



6. Tópico: Erro ao compilar Samba [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 11/02/2016 - 11:04h

Mudei a versão do Samba.
Baixei a 4.3.0 e consegui compilar sem erro.



7. Re: Erro ao compilar Samba [RESOLVIDO]

Cleber Soares
clebersoares

(usa Debian)

Enviado em 21/09/2016 - 17:47h

Boa noite a todos, conseguir resolver esse problema.

Tem que remover o arquivo docbook-xsl
#dpkg -r docbook-xsl

depois
via wget baixa e instala esse pate
wget http://ftp.br.debian.org/debian/pool/main/d/docbook-xsl/docbook-xsl-ns_1.79.1+dfsg-2_all.deb
dpkg -i docbook-xsl-ns_1.79.1+dfsg-2_all.deb
e tente copilar novamente.

valeuuuu






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts