[Samba] Issue compiling Samba 4.11.6 with GNUTLS 3.6.12 (Not standard location)

Georg.Biberger at partner.bmw.de Georg.Biberger at partner.bmw.de
Fri Feb 28 17:12:16 UTC 2020


Hello,

I try to compile Samba 4.11.6 on an old SLES11 machine. There is an old GNUTLS installed.
Since I do not have root access and I have to use a newer GNUTLS-Version, I have installed gnutls-3.6.12 in a different location and set PKG_CONFIG_PATH appropriately. The configure script has run successfully, but when I run make (with verbose option), I get this error:

17:44:33 runner ['/usr/bin/gcc', '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', '-DHAVE_CONFIG_H=1', '-fPIC', '-D__STDC_WANT_LIB_EXT1__=1', '-D_REENTRANT', '-fstack-protector', '-fstack-clash-protection', '-DSTATIC_cli_composite_MODULES=NULL', '-DSTATIC_cli_composite_MODULES_PROTO=extern void __cli_composite_dummy_module_proto(void)', '-Isource4/libcli', '-I../../source4/libcli', '-Iinclude/public', '-I../../include/public', '-Isource4', '-I../../source4', '-Ilib', '-I../../lib', '-Isource4/lib', '-I../../source4/lib', '-Isource4/include', '-I../../source4/include', '-Iinclude', '-I../../include', '-Ilib/replace', '-I../../lib/replace', '-I.', '-I../..', '-Isource4/lib/events', '-I../../source4/lib/events', '-Ilib/util/charset', '-I../../lib/util/charset', '-Ilib/talloc', '-I../../lib/talloc', '-Ilib/crypto', '-I../../lib/crypto', '-Ilib/tevent', '-I../../lib/tevent', '-Idynconfig', '-I../../dynconfig', '../../source4/libcli/composite/composite.c', '-c', '-o/lfs/EDA/DATA/install/samba-4.11.6/bin/default/source4/libcli/composite/composite.c.4.o']
In file included from ../../source4/../libcli/smb/smb_common.h:30,
                 from ../../source4/libcli/raw/libcliraw.h:25,
                 from ../../source4/libcli/composite/composite.c:26:
../../libcli/smb/smb2_signing.h:30: error: expected specifier-qualifier-list before 'gnutls_hmac_hd_t'

Waf: Leaving directory `/lfs/EDA/DATA/install/samba-4.11.6/bin/default'
Build failed
-> task in 'cli_composite' failed with exit status 1:
        {task 39922456: c composite.c -> composite.c.4.o}
['/usr/bin/gcc', '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', '-DHAVE_CONFIG_H=1', '-fPIC', '-D__STDC_WANT_LIB_EXT1__=1', '-D_REENTRANT', '-fstack-protector', '-fstack-clash-protection', '-DSTATIC_cli_composite_MODULES=NULL', '-DSTATIC_cli_composite_MODULES_PROTO=extern void __cli_composite_dummy_module_proto(void)', '-Isource4/libcli', '-I../../source4/libcli', '-Iinclude/public', '-I../../include/public', '-Isource4', '-I../../source4', '-Ilib', '-I../../lib', '-Isource4/lib', '-I../../source4/lib', '-Isource4/include', '-I../../source4/include', '-Iinclude', '-I../../include', '-Ilib/replace', '-I../../lib/replace', '-I.', '-I../..', '-Isource4/lib/events', '-I../../source4/lib/events', '-Ilib/util/charset', '-I../../lib/util/charset', '-Ilib/talloc', '-I../../lib/talloc', '-Ilib/crypto', '-I../../lib/crypto', '-Ilib/tevent', '-I../../lib/tevent', '-Idynconfig', '-I../../dynconfig', '../../source4/libcli/composite/composite.c', '-c', '-o/lfs/EDA/DATA/install/samba-4.11.6/bin/default/source4/libcli/composite/composite.c.4.o']
make: *** [all] Error 1

It looks like, with this compile that the old GNUTLS includes are used where gnutls_hmac_hd_t is not defined.
How can I tell the samba build system to use the new GNUTLS installation with this compile?

Kind regards

Georg Biberger

#GernPerDu
#CallMeByMyFirstName

Biberger und Partner
Kobellstraße 1
80336 München
--------------------------------------------------------------------------------------------------------
Biberger und Partner Diplom-Informatiker Partnerschaftsgesellschaft
Partner: Anne Feldmeier, Georg Biberger
Sitz und Registergericht: München PR 480
Umsatzsteuer-ID: DE206858618
--------------------------------------------------------------------------------------------------------
Erreichbarkeit bei der BMW Group:
Tel.: +49 89 382-49629
Mobil: +49 172 7719871
E-Mail: Georg.Biberger at partner.bmw.de<mailto:Georg.Biberger at partner.bmw.de>



More information about the samba mailing list