i get this error when compiling samba 4 [3712/3935] Linking default/source4/rpc_server/libdcerpc-server.so default/source4/rpc_server/backupkey/dcesrv_backupkey_21.o: In function `get_pk_from_raw_keypair_params': dcesrv_backupkey.c:(.text+0xb5e): undefined reference to `gnutls_x509_privkey_import_rsa_raw2' default/source4/rpc_server/backupkey/dcesrv_backupkey_21.o: In function `get_and_verify_access_check': dcesrv_backupkey.c:(.text+0xe62): undefined reference to `gnutls_cipher_get_iv_size' default/source4/rpc_server/backupkey/dcesrv_backupkey_21.o: In function `self_sign_cert': dcesrv_backupkey.c:(.text+0x22c2): undefined reference to `gnutls_x509_crt_set_dn' dcesrv_backupkey.c:(.text+0x237c): undefined reference to `gnutls_x509_crt_set_issuer_dn' dcesrv_backupkey.c:(.text+0x24d7): undefined reference to `gnutls_privkey_export_x509' dcesrv_backupkey.c:(.text+0x284e): undefined reference to `gnutls_x509_crt_set_subject_unique_id' dcesrv_backupkey.c:(.text+0x28ff): undefined reference to `gnutls_x509_crt_set_issuer_unique_id' default/source4/rpc_server/backupkey/dcesrv_backupkey_21.o: In function `generate_bkrp_cert': dcesrv_backupkey.c:(.text+0x2cd8): undefined reference to `gnutls_x509_crt_export2' dcesrv_backupkey.c:(.text+0x2e5d): undefined reference to `gnutls_privkey_export_rsa_raw' collect2: error: ld returned 1 exit status Waf: Leaving directory `/usr/local/src/samba/samba-4.8.0pre1-GIT-3b16bfe/bin' Build failed: -> task failed (err #1): {task: cc_link dcesrv_wkssvc_14.o,server_info_3.o,forward_3.o,reply_3.o,dcesrv_auth_3.o,loadparm_3.o,dcesrv_backupkey_21.o,dcerpc_server_5.o,dcesrv_mgmt_5.o,handles_5.o,dcerpc_netlogon_18.o,dcesrv_samr_16.o,samr_password_16.o,dcesrv_eventlog6_25.o,sid_helper_1.o,dcerpc_dnsserver_26.o,dnsutils_26.o,dnsdata_26.o,dnsdb_26.o,dcesrv_drsuapi_23.o,updaterefs_23.o,getncchanges_23.o,addentry_23.o,writespn_23.o,drsutil_23.o,ndr_backupkey_c_163.o,rpc_echo_11.o,dcesrv_browser_24.o,dcesrv_remote_13.o,dcesrv_lsa_19.o,lsa_init_19.o,lsa_lookup_19.o,dcesrv_unixinfo_15.o,rpc_epmapper_12.o -> libdcerpc-server.so} distcheck failed with code 1 i put ./configure & make & make install How can i compiling corretly? -- AVISO LEGAL El contenido de este correo electrónico, incluidos los anexos que pudiera tener es privado. Si usted no es el destinatario adecuado, no le está permitido usarlo, copiarlo o difundirlo por cualquier medio, están prohibidas por la ley: sírvase en consecuencia devolverlo al remitente y eliminarlo. PLEASE NOTE This email and any attachments may contain confidential or privileged. Any unauthorized copying, use or distribution of this information is strictly prohibited by applicable law.
On Fri, 17 Nov 2017 18:19:08 +0100 Francesc Peñalvez via samba <samba at lists.samba.org> wrote:> i get this error when compiling samba 4 > > [3712/3935] Linking default/source4/rpc_server/libdcerpc-server.so > default/source4/rpc_server/backupkey/dcesrv_backupkey_21.o: In > function `get_pk_from_raw_keypair_params': > dcesrv_backupkey.c:(.text+0xb5e): undefined reference to > `gnutls_x509_privkey_import_rsa_raw2' > default/source4/rpc_server/backupkey/dcesrv_backupkey_21.o: In > function `get_and_verify_access_check': > dcesrv_backupkey.c:(.text+0xe62): undefined reference to > `gnutls_cipher_get_iv_size' > default/source4/rpc_server/backupkey/dcesrv_backupkey_21.o: In > function `self_sign_cert': > dcesrv_backupkey.c:(.text+0x22c2): undefined reference to > `gnutls_x509_crt_set_dn' > dcesrv_backupkey.c:(.text+0x237c): undefined reference to > `gnutls_x509_crt_set_issuer_dn' > dcesrv_backupkey.c:(.text+0x24d7): undefined reference to > `gnutls_privkey_export_x509' > dcesrv_backupkey.c:(.text+0x284e): undefined reference to > `gnutls_x509_crt_set_subject_unique_id' > dcesrv_backupkey.c:(.text+0x28ff): undefined reference to > `gnutls_x509_crt_set_issuer_unique_id' > default/source4/rpc_server/backupkey/dcesrv_backupkey_21.o: In > function `generate_bkrp_cert': > dcesrv_backupkey.c:(.text+0x2cd8): undefined reference to > `gnutls_x509_crt_export2' > dcesrv_backupkey.c:(.text+0x2e5d): undefined reference to > `gnutls_privkey_export_rsa_raw' > collect2: error: ld returned 1 exit status > Waf: Leaving directory > `/usr/local/src/samba/samba-4.8.0pre1-GIT-3b16bfe/bin' > Build failed: -> task failed (err #1): > {task: cc_link > dcesrv_wkssvc_14.o,server_info_3.o,forward_3.o,reply_3.o,dcesrv_auth_3.o,loadparm_3.o,dcesrv_backupkey_21.o,dcerpc_server_5.o,dcesrv_mgmt_5.o,handles_5.o,dcerpc_netlogon_18.o,dcesrv_samr_16.o,samr_password_16.o,dcesrv_eventlog6_25.o,sid_helper_1.o,dcerpc_dnsserver_26.o,dnsutils_26.o,dnsdata_26.o,dnsdb_26.o,dcesrv_drsuapi_23.o,updaterefs_23.o,getncchanges_23.o,addentry_23.o,writespn_23.o,drsutil_23.o,ndr_backupkey_c_163.o,rpc_echo_11.o,dcesrv_browser_24.o,dcesrv_remote_13.o,dcesrv_lsa_19.o,lsa_init_19.o,lsa_lookup_19.o,dcesrv_unixinfo_15.o,rpc_epmapper_12.o > -> libdcerpc-server.so} > distcheck failed with code 1 > > i put ./configure & make & make install > > > How can i compiling corretly? > >It looks like your version of gnutls lib isn't new enough. Is there some reason why you are trying to build Samba from git on an old version of debian ? Rowland
Try it with gnutls from wheezy backports. Am 17.11.2017 um 18:19 schrieb Francesc Peñalvez via samba:> i get this error when compiling samba 4 > > [3712/3935] Linking default/source4/rpc_server/libdcerpc-server.so > default/source4/rpc_server/backupkey/dcesrv_backupkey_21.o: In > function `get_pk_from_raw_keypair_params': > dcesrv_backupkey.c:(.text+0xb5e): undefined reference to > `gnutls_x509_privkey_import_rsa_raw2' > default/source4/rpc_server/backupkey/dcesrv_backupkey_21.o: In > function `get_and_verify_access_check': > dcesrv_backupkey.c:(.text+0xe62): undefined reference to > `gnutls_cipher_get_iv_size' > default/source4/rpc_server/backupkey/dcesrv_backupkey_21.o: In > function `self_sign_cert': > dcesrv_backupkey.c:(.text+0x22c2): undefined reference to > `gnutls_x509_crt_set_dn' > dcesrv_backupkey.c:(.text+0x237c): undefined reference to > `gnutls_x509_crt_set_issuer_dn' > dcesrv_backupkey.c:(.text+0x24d7): undefined reference to > `gnutls_privkey_export_x509' > dcesrv_backupkey.c:(.text+0x284e): undefined reference to > `gnutls_x509_crt_set_subject_unique_id' > dcesrv_backupkey.c:(.text+0x28ff): undefined reference to > `gnutls_x509_crt_set_issuer_unique_id' > default/source4/rpc_server/backupkey/dcesrv_backupkey_21.o: In > function `generate_bkrp_cert': > dcesrv_backupkey.c:(.text+0x2cd8): undefined reference to > `gnutls_x509_crt_export2' > dcesrv_backupkey.c:(.text+0x2e5d): undefined reference to > `gnutls_privkey_export_rsa_raw' > collect2: error: ld returned 1 exit status > Waf: Leaving directory > `/usr/local/src/samba/samba-4.8.0pre1-GIT-3b16bfe/bin' > Build failed: -> task failed (err #1): > {task: cc_link > dcesrv_wkssvc_14.o,server_info_3.o,forward_3.o,reply_3.o,dcesrv_auth_3.o,loadparm_3.o,dcesrv_backupkey_21.o,dcerpc_server_5.o,dcesrv_mgmt_5.o,handles_5.o,dcerpc_netlogon_18.o,dcesrv_samr_16.o,samr_password_16.o,dcesrv_eventlog6_25.o,sid_helper_1.o,dcerpc_dnsserver_26.o,dnsutils_26.o,dnsdata_26.o,dnsdb_26.o,dcesrv_drsuapi_23.o,updaterefs_23.o,getncchanges_23.o,addentry_23.o,writespn_23.o,drsutil_23.o,ndr_backupkey_c_163.o,rpc_echo_11.o,dcesrv_browser_24.o,dcesrv_remote_13.o,dcesrv_lsa_19.o,lsa_init_19.o,lsa_lookup_19.o,dcesrv_unixinfo_15.o,rpc_epmapper_12.o > -> libdcerpc-server.so} > distcheck failed with code 1 > > i put ./configure & make & make install > > > How can i compiling corretly? > >