it builds cleanly for me.
these are some install notes i made a few years ago; they should work with the current versions of each software
prce
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
cd ~/build
# get ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.39.tar.bz2
tar -zxf pcre-8.39.tar.bz2
cd pcre-8.39
./configure --prefix=/usr/local/pcre/pcre-8.39
make
make check
sudo make install
openssl
wget https://www.openssl.org/source/openssl-1.0.2j.tar.gz
tar -xzvf openssl-1.0.2j.tar.gz
cd ~/build/openssl-1.0.2j
export KERNEL_BITS=64
./config --prefix=/usr/local/openssl/openssl-1.0.2j --openssldir=/usr/local/openssl/openssl-1.0.2j/config
make depend && make
make test
sudo make install
openresty
cd ~/build
wget https://openresty.org/download/openresty-1.11.2.2.tar.gz
tar xzvf openresty-1.11.2.2.tar.gz
cd ~/build/openresty-1.11.2.2
./configure \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--lock-path=/var/lock/nginx.lock \
--pid-path=/var/run/nginx.pid \
--with-openssl=../openssl-1.0.2j \
--with-pcre=../pcre-8.39
make
make test
sudo make install