Ok, this is the error I get when trying to compile OpenSSL 0.9.8 and PHP 4.4.0:
chmod 755 /var/tmp/php-4.4.0-root/usr/lib/httpd/modules/libphp4.so
Installing PHP CLI binary: /var/tmp/php-4.4.0-root/usr/bin/
Installing PHP CLI man page: /var/tmp/php-4.4.0-root/usr/share/man/man1/
Installing shared extensions: /var/tmp/php-4.4.0-root/usr/lib/php4/
Installing PEAR environment: /var/tmp/php-4.4.0-root/usr/share/pear/
/usr/src/openna/BUILD/php-4.4.0/sapi/cli/php: error while loading shared libraries: libssl.so.0.9.7: cannot open shared object file: No such file or directory
make[1]: *** [install-pear-installer] Error 127
make: *** [install-pear] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.70944 (%install)