I have a machine running osx 10.6 and I can't get openresty to compile against a custom OpenSSL version via source. it keeps generating issues over undefined ssl symbols in the various modules. vanilla nginx will compile against openssl source. I was able to install homebrew openssl and compile against that too, but I can't get it to compile against a "user installed" openssl.
what didn't work:
* installing a versioned openssl
./config --prefix=/usr/local/openssl/openssl-1.0.2j --openssldir=/usr/local/openssl/openssl-1.0.2j/config
make depend && make && sudo make install
* installing a versioned openssl with the openresty patch applied
patch -p1 < ~/build/openresty-1.11.2.2/patches/openssl-1.0.2h-sess_set_get_cb_yield.patch
./config --prefix=/usr/local/openssl/openssl-1.0.2j --openssldir=/usr/local/openssl/openssl-1.0.2j/config
make depend && make && sudo make install
* configuring openresty with openssl source
./configure --with-openssl=../openssl-1.0.2j
* configuring openresty with openssl libraries
./configure --with-cc-opt="-I/usr/local/openssl/openssl-1.0.2j/include" --with-ld-opt="-L/usr/local/openssl/openssl-1.0.2j/lib"
* configuring openresty with source and openssl libraries
./configure --with-openssl=../openssl-1.0.2j --with-cc-opt="-I/usr/local/openssl/openssl-1.0.2j/include" --with-ld-opt="-L/usr/local/openssl/openssl-1.0.2j/lib"
I tried a few other variations, and everything against openssl-1.0.2h too. nothing seems to work.
has anyone recently been able to do this from scratch?
i need to avoid using homebrew, as this machine needs versioned installations of openssl and openresty for testing and deployment concerns