On Wed, 20 Feb 2002, Reiner Buehl wrote: > 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".
i tried compiling with the HP cc and gcc. the HP cc seems to produce a faster OpenSSL so i'd like to prefer that over gcc. i've succesfully built OpenSSL v0.9.6c with HP cc for both hpux-parisc-cc and hpux-parisc2-cc targets. the strange thing is that when i try compiling Net::SSLeay against OpenSSL built for hpux-parisc-cc target the compilation goes without any glitches but when i try compiling against hpux-parisc2-cc OpenSSL i run into problems. i tried adding +z and +Ae which you suggested using the following configuration command: /opt/local/perl-5.005_03/bin/perl Makefile.PL /opt/local/openssl-noidea/0.9.6c-cc-pa2 CCFLAGS='-D_HPUX_SOURCE -Ae -I/usr/local/include' CCCDLFLAGS=+z but this still results in the same problem: /opt/local/perl-5.005_03/bin/perl -I/opt/local/perl-5.005_03/lib/5.00503/PA-RISC2.0 -I/opt/local/perl-5.005_03/lib/5.00503 /opt/local/perl-5.005_03/lib/5.00503/ExtUtils/xsubpp -typemap /opt/local/perl-5.005_03/lib/5.00503/ExtUtils/typemap -typemap typemap SSLeay.xs >xstmp.c && mv xstmp.c SSLeay.c cc -c -I/opt/local/openssl-noidea/0.9.6c-cc-pa2/include -D_HPUX_SOURCE -Ae -I/usr/local/include -O -DVERSION=\"1.13\" -DXS_VERSION=\"1.13\" +z -I/opt/local/perl-5.005_03/lib/5.00503/PA-RISC2.0/CORE SSLeay.c Running Mkbootstrap for Net::SSLeay () chmod 644 SSLeay.bs LD_RUN_PATH="/opt/local/openssl-noidea/0.9.6c-cc-pa2/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-pa2 -L/opt/local/openssl-noidea/0.9.6c-cc-pa2/lib -lssl -lcrypto ld: DP relative code in file /opt/local/openssl-noidea/0.9.6c-cc-pa2/lib/libcrypto.a(pa-risc2.o) - shared library must be position independent. Use +z or +Z to recompile. *** Error exit code 1 i've also tried it with the +Z flag instead of +z but the result is the same. the OpenSSL hpux-parisc2-cc uses the following compiler options: +Z -DTHREADS -D_REENTRANT -DDSO_DL -DNO_IDEA +DA2.0 +DS2.0 +O3 +Optrs_strongly_typed +Olibcalls -Ae +ESlit -DB_ENDIAN -DMD32_XARRAY -- aspa ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]