The standard openssl package for AIX includes libssl.a, not libssl.so. The search path should reflect that.