Bug 8745 - Compile error in source4/lib/tls/tls.c
Summary: Compile error in source4/lib/tls/tls.c
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: Build (show other bugs)
Version: unspecified
Hardware: x86 FreeBSD
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Tridgell
QA Contact: samba4-qa@samba.org
Depends on:
Reported: 2012-02-06 19:03 UTC by Christoph Theis
Modified: 2012-02-19 20:03 UTC (History)
2 users (show)

See Also:

Log of configure and make (867.81 KB, application/zip)
2012-02-06 19:03 UTC, Christoph Theis
no flags Details
Output of configure (380.62 KB, application/x-zip-compressed)
2012-02-15 18:05 UTC, Christoph Theis
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Theis 2012-02-06 19:03:48 UTC
Created attachment 7298 [details]
Log of configure and make

Using FreeBSD 9.0. 
With current (todays) version from git I get a compile error in source4/lib/tls/tls.c: error: gnutls/gnutls.h: No such file or directory
On FreeBSD gnutls is installed via the ports and is located in /usr/local/include
tls.c did compile with alpha-17 and with "current as of 17.01.2012"

Logfiles from configure and make are attached.
Comment 1 Matthias Dieter Wallnöfer 2012-02-07 08:19:28 UTC
Jelmer, do you have a clue?
Comment 2 Matthias Dieter Wallnöfer 2012-02-12 09:59:06 UTC

do you know how to best influence on the GNUTLS include path?


if you copy the GNUTLS headers into "/usr/include" everything else does work? When testing this do not forget to launch another time "./configure" in order to analyse the outputs regarding GNUTLS.

You could paste the "configure" differences here as well which could help us to chase it down faster.
Comment 3 Christoph Theis 2012-02-15 18:05:44 UTC
Created attachment 7324 [details]
Output of configure

I linked /usr/local/include/gnutls to /usr/include and /usr/local/lib/libgnutls* to /usr/lib. I could build samba then (with a hack for the missing utmp.h). The output of configure.developer is attached.
Comment 4 Matthias Dieter Wallnöfer 2012-02-19 18:55:47 UTC
I have committed a patch which includes the GNUTLS headers more consistently: http://gitweb.samba.org/samba.git/?p=samba.git;a=commitdiff;h=32c82fe69b588fe18674c0bda49cd7fc0f73f50a. Probably it does not change anything but to be sure please retry (with GNUTLS headers only under /usr/local/include and reconfiguration).
Comment 5 Christoph Theis 2012-02-19 19:39:01 UTC
Now, it did compile. Thanks a lot!
Comment 6 Matthias Dieter Wallnöfer 2012-02-19 20:03:27 UTC
Thanks for your quick response!