the pkg-config file gnutls.pc was found by configure and contains the right includedir path pointing to /usr/local/include: prefix=/usr/local exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include but compile aborts in source4/libcli/raw/smb_signing.c because gnutls/gnutls.h is not found, which is correctly installed in /usr/local/include/gnutls/gnutls.h though. [1234/3017] Compiling source4/libcli/composite/composite.c "../../libcli/smb/smb2_signing.h", line 24.10: 1506-296 (S) #include file <gnutls/gnutls.h> not found. "../../libcli/smb/smb2_signing.h", line 25.10: 1506-296 (S) #include file <gnutls/crypto.h> not found. "../../libcli/smb/smb2_signing.h", line 30.9: 1506-046 (S) Syntax error. Waf: Leaving directory `/home/samba/v4-11/bin/default' Build failed -> task in 'cli_composite' failed with exit status 1 (run with -v to display more information) make: 1254-004 The error code from the last command is 1.
I have a half finished patch that removes the includes from libcli/smb/smb2_signing.h and there we just use void *__hmac_hnd
The general fix for this kind of thing is to add a dependency, the smb_composite subsystem has no dependency on gnutls directly or indirectly. However removing a header I think might fix it, so I did this: https://gitlab.com/samba-team/samba/merge_requests/865
this went to master weeks ago already