On 2009.05.20 at 06:16:49 -0700, jo wrote: > > that is definitely better but now it fails in make test: > > *** Testing openssl-0.9.8k (can take a while) ..failed > *** Error: openssl-0.9.8k build error - make test failed > exec(): 0509-036 Cannot load program ./destest because of the following > errors: > 0509-022 Cannot load module ../util/../libcrypto.so. > 0509-150 Dependent module libgcc_s.a(shr.o) could not be loaded. > 0509-022 Cannot load module libgcc_s.a(shr.o). > 0509-026 System error: A file or directory in the path name does not > exist. > make[1]: *** [test_des] Error 255
This is rather your environment problem, than openssl problem, so I cannot give you definite solution - I'm not familiar with AIX. But from experience with other systems: 1. Recent versions of GCC (3.x and above) produce bineries which depend on some shared library, distributed with GCC. It is named libgcc_s (on most systems - libgcc_s.so.1, on your system it seems to be libgcc_s.a(shr.o) 2. There are two common ways to specify where dynamic linker searches for the dynamic libraries: 1. Set some environment variable (PATH on Windows, LD_LIBRARY_PATH on systems which use ELF executable format - Linux, Solaris, FreeBSD etc) to the list of directories which include directory which contains neccessary file. In your case it is probably /usr/local/lib, judging from that gcc itself is in /usr/local/bin. This solution is quick and dirty, it would make tests run without rebuild, but it is unacceptable for long-term production-use applications. 2. Use some linker switch to specify dynamic library search path to be hardcoded into executable. On most system it is -R/path. To pass this switch to linker you have to specify -Wl,-R/usr/local/lib in the gcc command line. To make OpenSSL makefile to pass this flag to gcc you can just add it to ./Configure command line. Or may be your GCC knows about this flag, and passing -Wl is not neccessary -R/usr/local/lib would suffice as it is so on Solaris. But I'm not sure that on AIX it is -R. Read your ld(1) manual ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org