Bug 10268 - 'configure --enable-gnutls' does not stop if gnutls headers are not available
Summary: 'configure --enable-gnutls' does not stop if gnutls headers are not available
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.1.1
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Björn Jacke
QA Contact: Samba QA Contact
Depends on:
Reported: 2013-11-14 11:24 UTC by Karolin Seeger
Modified: 2018-07-30 18:34 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Karolin Seeger 2013-11-14 11:24:55 UTC
'configure --enable-gnutls' does not stop if gnutls headers are not available.

When explicitly enabling a configure option, I would expect configure to fail if it cannot be built in.

Samba 4.0 and 4.1 are affected.
Comment 1 Karolin Seeger 2013-11-14 11:26:08 UTC
Could be converted like e.g. in commit 431eeef9 (build: fix --with-regedit to properly honour the yes/no/auto scheme).
Comment 2 Amit Kumar 2018-07-30 06:53:36 UTC
# ./configure --enable-gnutls

Checking for program krb5-config.heimdal                                          : not found
Checking for program krb5-config                                                  : /usr/bin/krb5-config
Checking for gnutls >= 3.4.7                                                      : not found
Checking for gnutls >= 3.0.0s                                                     : not found
Checking for gnutls >= 1.4.0 and broken versions                                  : not found
/root/samba-4.7.1/source4/lib/tls/wscript:51: error: Building the AD DC requires GnuTLS (eg libgnutls-dev, gnutls-devel) for ldaps:// support and for the BackupKey protocol

Looks fixed in samba-4.7.1. Can you please check.
Comment 3 Andrew Bartlett 2018-07-30 18:34:43 UTC
Fixed in master with a1f1db277a2c452b63b9fe2d67cabfe0df60223d for Samba 4.3 and backported into 4.2.0 as b39c15564554b3c7defc71ec900c6837593cec2b.