We upgraded openssl manually to latest version on centos 5.8 64bit
wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz
tar -zxf openssl-1.0.1c.tar.gz
cd openssl-1.0.1c
./configure --prefix=/usr --sysconfdir=/etc/ssh --with-ssl-dir=/usr/src/openssl-1.0.1c --with-pam --with-libs=-ldl --without-zlib-version-check
make
make install
Now when we recompile apache/php it gives error -
---
type -lX11 -lXpm -lpng -lz -ljpeg -lssl -lcrypto -lcurl -lbz2 -lz -lpcre -lssl -lcrypto -lrt -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lcurl -lidn -lssl -lcrypto -lrt -lssl -lcrypto -ldl -lz -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lmysqlclient -lz -lcrypt -lnsl -lm -lmygcc -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxslt -lxml2 -lz -lm -lcrypt -o sapi/cli/php
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libcrypt.so when searching for -lcrypt
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libcrypt.a when searching for -lcrypt
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libz.a when searching for -lz
/usr/lib/libexpat.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
make: *** Waiting for unfinished jobs....
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libcrypt.so when searching for -lcrypt
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libcrypt.a when searching for -lcrypt
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libdl.a when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libm.a when searching for -lm
/usr/lib/libexpat.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
!! 'make -j2' failed with exit code '512' !!
!! Restoring original working apache !!
!! Executing '/scripts/initsslhttpd' !!
!! Restarting 'httpd' ... !!
!! 'httpd' restart complete. !!
Building global cache for cpanel...Done
!! Executing '/scripts/initfpsuexec' !!
!! Executing '/scripts/initsslhttpd' !!
!! Executing '/scripts/update_apachectl' !!
!! Executing '/scripts/enablefileprotect' !!
Compiling report...
Sending report. As some of the attached files may be quite large, this could take a few minutes. Thanks for your patience.
!! If you want to create a support ticket with cPanel regarding this please reference 'BuildAP Report Id': '9143163' !!
Report processed.
!! Feel free to submit a support ticket at https://tickets.cpanel.net/submit/index.cgi?reqtype=tickets !!
!! Verbose logfile is at '/usr/local/cpanel/logs/easy/apache/build.1350663793' !!
---
Any help would be appreciated, thank you.
wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz
tar -zxf openssl-1.0.1c.tar.gz
cd openssl-1.0.1c
./configure --prefix=/usr --sysconfdir=/etc/ssh --with-ssl-dir=/usr/src/openssl-1.0.1c --with-pam --with-libs=-ldl --without-zlib-version-check
make
make install
Now when we recompile apache/php it gives error -
---
type -lX11 -lXpm -lpng -lz -ljpeg -lssl -lcrypto -lcurl -lbz2 -lz -lpcre -lssl -lcrypto -lrt -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lcurl -lidn -lssl -lcrypto -lrt -lssl -lcrypto -ldl -lz -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lmysqlclient -lz -lcrypt -lnsl -lm -lmygcc -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxslt -lxml2 -lz -lm -lcrypt -o sapi/cli/php
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libcrypt.so when searching for -lcrypt
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libcrypt.a when searching for -lcrypt
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libz.a when searching for -lz
/usr/lib/libexpat.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
make: *** Waiting for unfinished jobs....
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libcrypt.so when searching for -lcrypt
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libcrypt.a when searching for -lcrypt
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libdl.a when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/local/ssl/lib/libm.a when searching for -lm
/usr/lib/libexpat.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
!! 'make -j2' failed with exit code '512' !!
!! Restoring original working apache !!
!! Executing '/scripts/initsslhttpd' !!
!! Restarting 'httpd' ... !!
!! 'httpd' restart complete. !!
Building global cache for cpanel...Done
!! Executing '/scripts/initfpsuexec' !!
!! Executing '/scripts/initsslhttpd' !!
!! Executing '/scripts/update_apachectl' !!
!! Executing '/scripts/enablefileprotect' !!
Compiling report...
Sending report. As some of the attached files may be quite large, this could take a few minutes. Thanks for your patience.
!! If you want to create a support ticket with cPanel regarding this please reference 'BuildAP Report Id': '9143163' !!
Report processed.
!! Feel free to submit a support ticket at https://tickets.cpanel.net/submit/index.cgi?reqtype=tickets !!
!! Verbose logfile is at '/usr/local/cpanel/logs/easy/apache/build.1350663793' !!
---
Any help would be appreciated, thank you.