FreeBSD Port: www/apache24 + LibreSSL 2.7.2 = Undefined symbol "OPENSSL_malloc_init" error, fail

David Gessel gessel at blackrosetech.com
Wed May 2 10:57:54 UTC 2018


Note: Filed at https://bz.apache.org/bugzilla/show_bug.cgi?id=62346

Apache24 seems to have some issues with LibreSSL 2.7+  that are not resolved by the patch.  On my machine, at least, I get:

Apache24 will not start:
httpd: Syntax error on line 130 of /usr/local/etc/apache24/httpd.conf: Cannot load libexec/apache24/mod_ssl.so into server: /usr/local/libexec/apache24/mod_ssl.so: Undefined symbol "OPENSSL_malloc_init"

The following innocuous seeming error reported during the build seems relevant

--- mod_ssl.slo ---
mod_ssl.c:404:5: warning: implicit declaration of function 'OPENSSL_malloc_init' is invalid in C99 [-Wimplicit-function-declaration]
    OPENSSL_malloc_init();


mod_ssl.c: +/- 405:
    /* We must register the library in full, to ensure our configuration
     * code can successfully test the SSL environment.
     */
#if MODSSL_USE_OPENSSL_PRE_1_1_API
    (void)CRYPTO_malloc_init();
#else
    OPENSSL_malloc_init();
#endif
    ERR_load_crypto_strings();
    SSL_load_error_strings();
    SSL_library_init();
#if HAVE_ENGINE_LOAD_BUILTIN_ENGINES
    ENGINE_load_builtin_engines();
#endif
    OpenSSL_add_all_algorithms();
    OPENSSL_load_builtin_modules();


apache24-2.4.33 
libressl-2.7.2_1
FreeBSD 10.3-RELEASE-p28 #0 r330946



More information about the freebsd-apache mailing list