Le 20/12/2021 à 09:58, Stefan Eissing a écrit :


Am 19.12.2021 um 10:36 schrieb Christophe JAILLET 
<christophe.jail...@wanadoo.fr>:

Hi,

I've been able to build mod_tls

Basically, I've done:

sudo apt install cargo
sudo apt install cbindgen

git clone https://github.com/rustls/rustls-ffi.git git_rustls-ffi
sudo make install

I have:
/usr/local/lib/libcrustls.a
/usr/local/lib/librustls.a
/usr/local/include/crustls.h
/usr/local/include/rustls.h


pytest is also (apparently correctly) installed.
pytest test/modules/http2 works fine.


However, when I 'pytest test/modules/tls', I get:

Syntax error on line 31 of 
XXX/svn_httpd_2.4.x/test/gen/apache/conf/modules.conf: Cannot load 
XXX/httpd-2.4/modules/mod_tls.so into server: XXX/httpd-2.4/modules/mod_tls.so: 
undefined symbol: fmaf


My understanding is that mod_tls is correctly compiled, but that there is a 
missing library somewhere.

Does it ring some bell to s.o.?

The issue came up here: https://github.com/rustls/rustls-ffi/issues/133



Hi,

Rebuilding with the following patch made the trick for me.

You know all that much better than me, so I let you see if it should be applied on trunk/2.4.x.

CJ


Index: modules/tls/config2.m4
===================================================================
--- modules/tls/config2.m4      (révision 1896121)
+++ modules/tls/config2.m4      (copie de travail)
@@ -141,7 +141,7 @@
MOD_TLS_LINK_LIBS="-lrustls -framework Security -framework Foundation"
                 ;;
              *)
-                MOD_TLS_LINK_LIBS="-lrustls"
+                MOD_TLS_LINK_LIBS="-lrustls -lm"
                 ;;
            esac
            # The only symbol which needs to be exported is the module


Reply via email to