Apache 2.4.23 Undefined Reference to Crypto_Malloc_Init

Apache 2.4.23 undefined reference to CRYPTO_malloc_init?

Apache 2.4.23 undefined reference to CRYPTO_malloc_init?

OpenSSL 1.0.2 and earlier provided CRYPTO_malloc_init:

openssl-1.0.2h$ grep -R CRYPTO_malloc_init *
apps/apps.h: do { do_pipe_sig(); CRYPTO_malloc_init(); \
apps/apps.h: do { do_pipe_sig(); CRYPTO_malloc_init(); \
crypto/crypto.h:# define CRYPTO_malloc_init() CRYPTO_set_mem_functions(\
crypto/dh/dhtest.c: CRYPTO_malloc_init();
crypto/ecdh/ecdhtest.c: CRYPTO_malloc_init();
...

OpenSSL 1.1.0 and later do not appear to provide CRYPTO_malloc_init:

openssl-1.1.0b$ grep -R CRYPTO_malloc_init *
openssl-1.1.0b$

Also see Apache Issue 60061 - OpenSSL 1.1.0 support.

Does ActiveMQ-CPP 3.9.4 Support OpenSSL 1.1.0?

The client doesn't support OpenSSL 1.1.0 as reported on the ActiveMQ mailing lists. I don't think anyone bothered to open an issue to that effect though.

Unknown binaryTarget debian-openssl-3.0.x and no custom binaries were provided error Command failed with exit code 1

You need to upgrade your prisma version to atleast 3.13.0. Prisma has added support for OpenSSL 3.0 from version 3.13.0, Ubuntu 22.04 is using OpenSSL 3.0 by default which is causing this issue for you.

Related GitHub Issue: Support OpenSSL 3.0

Apache 2.4.1 undefined reference to `SSLv2_client_method'

You may have built openssl with SSLv2 disabled, some distributions have that disabled (Debian, starting from 7.0 -Wheezy- is one). Looking at the source, it looks like if you define the OPENSSL_NO_SSL2 preprocessor flag, apache won't call the SSLv2_client_method() function.

not found for architecture x86_64, macOS Sierra

For your case, edit or change files is not necessary.

$ cd /etc/ServerWeb/httpd
$ sudo ./configure --prefix=/usr/local/ServerWeb/httpd --enable-deflate --enable-so --enable-expires --enable-headers --enable-rewrite --with-apr=/etc/ServerWeb/httpd/srclib/apr --with-apr-util=/etc/ServerWeb/httpd/srclib/apr-util -with-pcre=/etc/pcre --with-z=/usr/include/zlib --enable-ssl --with-ssl=/etc/openssl
$

to change compiler you must use the flag CC

Example for your case:

$ sudo CC=clang ./configure  --prefix=/usr/local/ServerWeb/httpd  --enable-deflate  --enable-so  --enable-expires  --enable-headers  --enable-rewrite  --with-apr=/etc/ServerWeb/httpd/srclib/apr  --with-apr-util=/etc/ServerWeb/httpd/srclib/apr-util  -with-pcre=/etc/pcre  --with-z=/usr/include/zlib  --enable-ssl  --with-ssl=/etc/openssl
$

or CC=gcc, according the solution find it, you must no use spaces assigning the value flag.



Related Topics



Leave a reply



Submit