Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Nov 2019 17:03:55 +0100
From:      =?UTF-8?Q?Morgan_Wesstr=c3=b6m?= <freebsd-database@pp.dyndns.biz>
To:        freebsd-ports@freebsd.org
Subject:   Re: Samba 4.10.10 can't find gnutls headers on one machine
Message-ID:  <61586b13-223c-a491-c242-bda836ada738@pp.dyndns.biz>
In-Reply-To: <600ec0ad-e21d-a651-dfe0-063c7fd9517f@pp.dyndns.biz>
References:  <600ec0ad-e21d-a651-dfe0-063c7fd9517f@pp.dyndns.biz>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2019-11-21 16:37, Morgan Wesström wrote:
> Dear list,
> 
> I need some help to figure out what I broke on my system. I have two 
> (almost) identical machines, one running 12.1-RELEASE and one waiting to 
> be upgraded and is still on 12.0-RELEASE-p10. Configuration and software 
> wise I try to keep them identical.

Some additional info that should've been included with my initial post 
(I apologize for that). I have removed Samba with pkg delete and then 
run pkg autoremove. Recompiled everything on the machine and the tried 
to reinstall Samba but it still fails. Both machines actually do find 
gnutls but complains of some features not found on the broken machine.

WORKING MACHINE:
Checking for gnutls >= 3.4.7          : yes
Checking for library gnutls          : yes
Checking for header gnutls/gnutls.h          : yes
Checking for gnutls_global_init          : ok
Checking for gnutls_certificate_verify_peers3          : ok
Checking for header gnutls/x509.h          : yes
Checking for declaration of GNUTLS_CERT_EXPIRED          : no
Checking for declaration of GNUTLS_CERT_EXPIRED (as enum)          : yes
Checking for declaration of GNUTLS_CERT_NOT_ACTIVATED          : no
Checking for declaration of GNUTLS_CERT_NOT_ACTIVATED (as enum) 
: yes
Checking for declaration of GNUTLS_CERT_UNEXPECTED_OWNER          : no
Checking for declaration of GNUTLS_CERT_UNEXPECTED_OWNER (as enum) 
    : yes
Checking for variable gnutls_x509_crt_set_version          : yes
Checking for variable gnutls_x509_crt_set_subject_key_id          : yes
Checking for gnutls_datum          : yes
Checking for gnutls_datum_t          : yes
Checking for library gcrypt          : yes
Checking for header gcrypt.h          : yes
Checking for gcry_control          : ok
Checking for library gpg-error          : yes
Checking for gpg_err_code_from_errno          : ok
Checking for gnutls_aead_cipher_init          : ok

BROKEN MACHINE:
Checking for gnutls >= 3.4.7          : yes
Checking for library gnutls          : no
Checking for header gnutls/gnutls.h          : yes
Checking for gnutls_global_init          : not found
Checking for macro gnutls_global_init          : not found
Checking for library gnutls          : no
Checking for gnutls_certificate_verify_peers3          : not found
Checking for macro gnutls_certificate_verify_peers3          : not found
Checking for header gnutls/x509.h          : yes
Checking for declaration of GNUTLS_CERT_EXPIRED          : no
Checking for declaration of GNUTLS_CERT_EXPIRED (as enum)          : yes
Checking for declaration of GNUTLS_CERT_NOT_ACTIVATED          : no
Checking for declaration of GNUTLS_CERT_NOT_ACTIVATED (as enum) 
: yes
Checking for declaration of GNUTLS_CERT_UNEXPECTED_OWNER          : no
Checking for declaration of GNUTLS_CERT_UNEXPECTED_OWNER (as enum) 
    : yes
Checking for variable gnutls_x509_crt_set_version          : yes
Checking for variable gnutls_x509_crt_set_subject_key_id          : yes
Checking for gnutls_datum          : yes
Checking for gnutls_datum_t          : yes
Checking for library gcrypt          : yes
Checking for header gcrypt.h          : yes
Checking for gcry_control          : ok
Checking for library gpg-error          : yes
Checking for gpg_err_code_from_errno          : ok
Checking for library gnutls          : no
Checking for gnutls_aead_cipher_init          : not found
Checking for macro gnutls_aead_cipher_init          : not found
No gnutls support for AEAD encryption

Compilation then fails after a while:

[1384/3559] Linking bin/default/source4/auth/kerberos/libauthkrb5-samba4.so
runner ['cc', 
'-Wl,--version-script=/usr/ports/net/samba410/work/samba-4.10.10/bin/default/source4/auth/kerberos/authkrb5.vscript', 
'-shared', 'source4/auth/kerberos/krb5_init_contex
t.c.1.o', 'source4/lib/tls/tls.c.1.o', 'source4/lib/tls/tlscert.c.1.o', 
'source4/lib/tls/tls_tstream.c.1.o', 'auth/kerberos/gssapi_pac.c.1.o', 
'auth/kerberos/kerberos_pac.c.1.o', 'au
th/kerberos/gssapi_helper.c.1.o', 'source4/lib/stream/packet.c.1.o', 
'source4/auth/kerberos/kerberos_pac.c.2.o', 
'-o/usr/ports/net/samba410/work/samba-4.10.10/bin/default/source4/aut
h/kerberos/libauthkrb5-samba4.so', '-Wl,-Bstatic', '-Wl,-Bdynamic', 
'-L/usr/ports/net/samba410/work/samba-4.10.10/bin/default/lib/dbwrap', 
'-L/usr/ports/net/samba410/work/samba-4.10.
10/bin/default/lib/tdb_wrap', 
'-L/usr/ports/net/samba410/work/samba-4.10.10/bin/default/source4/cluster', 
'-L/usr/ports/net/samba410/work/samba-4.10.10/bin/default/source3', '-L/usr/
ports/net/samba410/work/samba-4.10.10/bin/default/source4/lib/messaging', 
'-L/usr/ports/net/samba410/work/samba-4.10.10/bin/default/lib/socket', 
'-L/usr/ports/net/samba410/work/samba
-4.10.10/bin/default/source4/lib/events', 
'-L/usr/ports/net/samba410/work/samba-4.10.10/bin/default/libcli/security', 
'-L/usr/ports/net/samba410/work/samba-4.10.10/bin/default/lib/ld
b', 
'-L/usr/ports/net/samba410/work/samba-4.10.10/bin/default/lib/replace', 
'-L/usr/ports/net/samba410/work/samba-4.10.10/bin/default/auth', 
'-L/usr/ports/net/samba410/work/samba-4.1
0.10/bin/default/libcli/util', 
'-L/usr/ports/net/samba410/work/samba-4.10.10/bin/default/lib', 
'-L/usr/ports/net/samba410/work/samba-4.10.10/bin/default/librpc', 
'-L/usr/ports/net/sa
mba410/work/samba-4.10.10/bin/default/lib/util', 
'-L/usr/ports/net/samba410/work/samba-4.10.10/bin/default/source4/heimdal_build', 
'-L/usr/ports/net/samba410/work/samba-4.10.10/bin/d
efault/lib/param', 
'-L/usr/ports/net/samba410/work/samba-4.10.10/bin/default/lib/krb5_wrap', 
'-L/usr/local/lib', '-L/usr/local/lib', '-L/usr/local/lib', 
'-L/usr/local/lib', '-lkrb5sa
mba-samba4', '-lsamba-hostconfig', '-lgssapi-samba4', '-ltevent-util', 
'-lroken-samba4', '-lndr', '-lndr-nbt', '-lsamba-sockets-samba4', 
'-lasn1-samba4', '-lsamba-errors', '-lcommon-
auth-samba4', '-lreplace-samba4', '-lldb', '-lndr-krb5pac', 
'-lsamba-util', '-lcom_err-samba4', '-lkrb5-samba4', 
'-lserver-role-samba4', '-lhcrypto-samba4', '-lwind-samba4', '-lsamba
-security-samba4', '-liov-buf-samba4', '-levents-samba4', 
'-lsocket-blocking-samba4', '-linterfaces-samba4', 
'-lsamba-debug-samba4', '-lMESSAGING-SEND-samba4', '-lndr-samba-samba4',
'-lserver-id-db-samba4', '-lndr-standard', '-ltime-basic-samba4', 
'-lsys-rw-samba4', '-lutil-setid-samba4', '-lgenrand-samba4', 
'-lhx509-samba4', '-lheimbase-samba4', '-lmessages-uti
l-samba4', '-lcluster-samba4', '-lmessages-dgm-samba4', 
'-lasn1util-samba4', '-lutil-tdb-samba4', '-ltdb-wrap-samba4', 
'-ldbwrap-samba4', '-lmsghdr-samba4', '-lz', '-lexecinfo', '-lp
thread', '-lmd', '-liconv', '-lutil', '-ltevent', '-ltalloc', 
'-ljansson', '-lcrypt', '-lgcrypt', '-ltalloc', '-ltdb', 
'-fstack-protector-strong', '-fuse-ld=bfd', '-L/usr/local/lib', 
'-Wl,-z,relro,-z,now', '-Wl,-no-undefined', '-Wl,--export-dynamic', 
'-Wl,--as-needed']
source4/lib/tls/tls.c.1.o: In function `tls_initialise':
tls.c:(.text+0x1d7): undefined reference to `gnutls_global_init'
tls.c:(.text+0x1eb): undefined reference to 
`gnutls_certificate_allocate_credentials'
tls.c:(.text+0x209): undefined reference to 
`gnutls_certificate_set_x509_trust_file'
tls.c:(.text+0x233): undefined reference to 
`gnutls_certificate_set_x509_crl_file'
tls.c:(.text+0x256): undefined reference to 
`gnutls_certificate_set_x509_key_file'
tls.c:(.text+0x271): undefined reference to `gnutls_dh_params_init'

<snip>

source4/lib/tls/tls_tstream.c.1.o: In function 
`tstream_tls_retry_disconnect':
tls_tstream.c:(.text+0x297d): undefined reference to `gnutls_bye'
tls_tstream.c:(.text+0x299f): undefined reference to `gnutls_error_is_fatal'
tls_tstream.c:(.text+0x2a2b): undefined reference to `gnutls_strerror'
tls_tstream.c:(.text+0x2a75): undefined reference to `gnutls_strerror'
cc: error: linker command failed with exit code 1 (use -v to see invocation)

Waf: Leaving directory 
`/usr/ports/net/samba410/work/samba-4.10.10/bin/default'
Build failed
  -> task in 'authkrb5' failed with exit status 1:


/Morgan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?61586b13-223c-a491-c242-bda836ada738>