On Fri, Feb 22, 2002 at 05:38:48PM +0200, Marko Asplund wrote:
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
From this error message it seems, that the code in pa-risc2.o is not
position independent. pa-risc2.s is assembler source and its compilation
is not affected by the +Z class of flags.
Did you try the no-asm setting?
[According to the file it was contributed by Chris Ruemmler. Maybe we should
contact him or is there anybody else out there knowing PA-RISC assembler?]
Best regards,
Lutz
--
Lutz Jaenicke [EMAIL PROTECTED]
http://www.aet.TU-Cottbus.DE/personen/jaenicke/
BTU Cottbus, Allgemeine Elektrotechnik
Universitaetsplatz 3-4, D-03044 Cottbus
__
OpenSSL Project http://www.openssl.org
User Support Mailing List[EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]