Hello, it seems like you are using the wrong compiler flags. Try adding "-Ae +z" to your CFLAGS for the HP Ansi C-Compiler. Note that the standard compiler that ships with the OS can not be used! If you do not have the HP Ansi CC use gcc and replace the flags mentioned above by "-fPIC".
Best regards, Reiner. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Marko Asplund > Sent: Tuesday, February 19, 2002 4:34 PM > To: [EMAIL PROTECTED] > Subject: HP-UX & application linking problems > > > > i'm trying to build Net::SSLeay v1.13 with OpenSSL v0.9.6c on HP-UX > B.11.00. first the compilation fails because the compiler doesn't > understand long long type used in include/openssl/bn.h include file. after > fixing this the compilation goes fine but linking fails with the following > error message (full typescript attached): > > ... > LD_RUN_PATH="/opt/local/openssl-noidea/0.9.6c-cc/lib" ld -o > blib/arch/auto/Net/SSLeay/SSLeay.sl -b -L/usr/local/lib SSLeay.o > -L/opt/local/openssl-noidea/0.9.6c-cc > -L/opt/local/openssl-noidea/0.9.6c-cc/lib -lssl -lcrypto > ld: DP relative code in file > /opt/local/openssl-noidea/0.9.6c-cc/lib/libcrypto.a(pa-risc2.o) - > shared library must be position independent. Use +z or +Z to recompile. > *** Error exit code 1 > > Stop. > > can someone explain why the linker fails here? the OpenSSL object files > were compiled with the '+Z' option and '+z' option was used when compiling > SSLeay.o. > > -- > aspa > > ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
