On Mon, Aug 18, 2003 at 08:19:39PM -0700, Josh Chamas wrote: > Hi, > > I recently ran into a problem building Crypt::SSLeay against > perl 5.6.1 and openssl 0.9.7b on HP-UX 10.20. The problem was > that for the standard cc compiler on that platform, the "+z" CC_FLAG > needed to be added to the Makefile for the build of openssl so that > it could build the shared library correctly for perl, which was also > compiling modules with the +z flag. > > This seems to be a widespread complaint against the HP-UX CC compiler > when building various cross project modules. It might be good to have > that be a standard option when compiling openssl on HP-UX 10.2x. I cannot > speak towards whether this problem exists on HP-UX 11. > > BTW, the original error message when building Crypt::SSLeay looked like: > > ld: Invalid loader fixup for symbol "$0034001C". > > and perl was trying to compile Crypt::SSLeay like this: > > cc -c -I/usr/local/ssl/include -D_HPUX_SOURCE -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64 -Ae -O > -DVERSION=\"0.51\" -DXS_VERSION=\"0.51\" +z > -I/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE SSLeay.c
Your observation is technically correct. However: the problem you describe only appears if Crypt:SSLeay is linked against a static libcrypto.a/libssl.a. By adding "+z" (or +Z), all modules inside libcrypto.a/libssl.a become relocatable and can be linked into a very large perl module. I would rather recommend to build shared libraries (HP-UX 10.20 is supported: I am using it myself :-) 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 Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]