mod_ssl.so: Undefined symbol “RAND_egd”

When you compile Apache 2.4.x & OpenSSL 1.1.x on FreeBSD from source (ports), and you also use “pkg” to install or upgrade applications, you’ll run into all sorts of random errors – one of them is mod_ssl.so: Undefined symbol “RAND_egd”

To fix the problem, try this remedy which seems to work:

cd /usr/ports/security/openssl111/
make deinstall clean
make install clean

add this line to /etc/make.conf 
DEFAULT_VERSIONS+=ssl=openssl111

then continue...

cd /usr/ports/devel/apr1
make deinstall clean
make install clean

cd /usr/ports/www/apache24/
make deinstall clean
make install clean