OpenSSL error when compiling Apache HTTPD - undefined reference to `SSL_in_init'

Solution 1:

This looks like the openssl header files can be found for configure and compile but not the biggest nary/compiled libraries at like link time.
Possibly You possible pointet to the headers of openssl and configure or make was able to detect them in that non default location, but You never compiled binaries or do not have them in a path the linker is going through by default. So Your full configure and if applicable installation commands can be helpful to give You complete answer in addition to configure and make commands and output used to compile the openssl belonging to the header files in /usr/local/include/openssl.

You probably need to specify the Openssl Libdir in configure (using LDFLAGS env var for example) if You want to include libraries installed in non default path at link time.