Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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!

share|improve this question
    
We're going to need a lot more of the error output than that... –  Ignacio Vazquez-Abrams Jul 5 '11 at 15:06
    
Therein lies the problem. The server that the compiling is failing on is an air-gapped network. Alas, after attempting again with nothing changing from the last, it decided to complete the make and installed completely. I'm boggled at this point... –  Scott Jul 5 '11 at 15:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.