Re: an experiment using mbed TLS
eocene <[email protected]>
| Newsgroups | gmane.comp.web.dillo.devel |
|---|---|
| Message-ID | <[email protected]> |
I wrote: > Nick wrote: > > OK, what do I need to do to build this after an hour of head scratching: > > > > checking mbedtls/ssl.h usability... no > > checking mbedtls/ssl.h presence... yes > > configure: WARNING: mbedtls/ssl.h: present but cannot be compiled > > configure: WARNING: mbedtls/ssl.h: check for missing prerequisite > > headers? configure: WARNING: mbedtls/ssl.h: see the Autoconf > > documentation configure: WARNING: mbedtls/ssl.h: section "Present > > But Cannot Be Compiled" configure: WARNING: mbedtls/ssl.h: proceeding > > with the compiler's result checking for mbedtls/ssl.h... no > > configure: WARNING: *** mbed TLS 2 not found. Disabling SSL/HTTPS/TLS > > support. *** > > IIRC, Jeremy was the closest we had to an autoconf expert, but he hasn't > been around. > > Is anything interesting in the mbedtls region of the config.log file? > > I don't remember ever seeing quite that sort of set of warnings out > of autoconf before. I was able to reproduce the problem by uninstalling mbed tls and then pointing to it during configuration with CPPFLAGS to the include dir and LDFLAGS to the lib dir. Making the attached changes makes it succeed, although I've only gotten just that far at the moment and haven't looked into whether it's an error on their part or what... _______________________________________________ Dillo-dev mailing list [email protected] http://lists.dillo.org/cgi-bin/mailman/listinfo/dillo-dev
mbedtls_platform.diff
(text/x-diff, 796 B)
diff -r 8dedbcb54a36 configure.ac
--- a/configure.ac Sun Jul 03 17:39:42 2016 +0000
+++ b/configure.ac Sun Jul 03 20:30:51 2016 +0000
@@ -294,7 +294,8 @@
dnl --------------------------
dnl
if test "x$enable_ssl" = "xyes"; then
- AC_CHECK_HEADER(mbedtls/ssl.h, ssl_ok=yes, ssl_ok=no)
+ AC_CHECK_HEADER(mbedtls/ssl.h, ssl_ok=yes, ssl_ok=no,
+ [#include <mbedtls/platform.h>])
if test "x$ssl_ok" = "xyes"; then
old_libs="$LIBS"
diff -r 8dedbcb54a36 src/IO/tls.c
--- a/src/IO/tls.c Sun Jul 03 17:39:42 2016 +0000
+++ b/src/IO/tls.c Sun Jul 03 20:30:51 2016 +0000
@@ -42,6 +42,7 @@
#include "tls.h"
#include "Url.h"
+#include <mbedtls/platform.h>
#include <mbedtls/ssl.h>
#include <mbedtls/ctr_drbg.h> /* random number generator */
#include <mbedtls/entropy.h>