I'm attempting to compile PHP v5.2.5 from source (yes, I'm aware it is out of date, so is our security office's standards), and I'm coming up short in attempts at finding answers online. For the ./configure options, I'm using:
./configure --with-apx2 --with-mysql --with-ldap --enable-mbstring --enable-soap --with-openssl --enable-exif --with-curl --enable-sockets --with-zlib --libdir=/usr/lib64 --with-libdir=lib64
I've installed all necessary *-devel packages, so the configure completes successfully, but upon running make, I am presented with a host of openssl errors similar to
/data/php-5.2.5/ext/openssl/openssl.c:#### error: 'struct php_x509_request' has no member named 'priv_key'
Where #### is replaced with a 4 digit number, and 'priv_key' can range from anything such as 'section_name', to 'digest', to 'priv_key_bits'. The final error received before exiting is:
make: *** [ext/openssl/opensssl.lo] Error 1
I've confirmed that I do have openssl-devel installed. I also have gcc v4.4.5-6 and glibc-headers v2.12-1.25 installed (as I've heard those are often culprits, just not in this scenario apparently). What can I do to rid of these errors and finish compiling PHP? Thanks!