I've solved the problem, but it would be nice if somebody could update the
Configure script so it doesn't happen again.  The persistent problem imho is
that the shared library linking is persistently wrong.  I've seen it on all
of 0.9.6 and now on 0.9.7.  I am currently trying 0.9.7c.

problem number one:  +O4 optimization causes the HP c compiler to bomb.
patched Configure to +O2, seems ok.  This is a small thing.

The big problem:

Try to run openssl, get libssl.sl.0.9.7 not found.

looking up the shared library usage using ldd on /usr/local/bin/openssl
persistently reveals a libcrypto or libssl not found.

adding /usr/local/lib to LD_LIBRARY_PATH fixes the problem (for that
session).

Looking up the ld man page suggests that specifying +b: on the ld command
line should do the trick, provided -L /usr/local/lib is also on the command
line.

Ok, patched in +b: into the hpux64 line, actually as "+b\\:".

Had to patch the split line too, using a negative look-behind assertion,
plus a map to mop up the backslashes, cause otherwise it would have split on
the colon I'm trying to have passed to ld.

Had to put in -L/usr/local/lib and +b: twice, once for libssl and libcrypto,
and once for openssl.

yes, the openssl command now works.

I've attached the patch for Configure, if anybody's interested.

cheers
rob janes (orb najes)
[EMAIL PROTECTED] (unscramble to win, spambots)





----------------------------------------------------------------------------
This electronic message contains information from Primus Telecommunications
Canada Inc. ("PRIMUS") , which may be legally privileged and confidential.
The information is intended to be for the use of the individual(s) or entity
named above. If you are not the intended recipient, be aware that any
disclosure, copying, distribution or use of the contents of this information
is prohibited. If you have received this electronic message in error, please
notify us by telephone or e-mail (to the number or address above)
immediately. Any views, opinions or advice expressed in this electronic
message are not necessarily the views, opinions or advice of PRIMUS.
It is the responsibility of the recipient to ensure that
any attachments are virus free and PRIMUS bears no responsibility
for any loss or damage arising in any way from the use
thereof.The term "PRIMUS" includes its affiliates.
----------------------------------------------------------------------------
Pour la version en français de ce message, veuillez voir
 http://www.primustel.ca/fr/legal/cs.htm
----------------------------------------------------------------------------
*** Configure.orig      Sun Sep 28 10:07:01 2003
--- Configure   Thu Jan 15 11:46:36 2004
***************
*** 271,282 ****
  #
  # Chris Ruemmler <[EMAIL PROTECTED]>
  # Kevin Steves <[EMAIL PROTECTED]>
! "hpux-parisc-cc","cc:+O3 +Optrs_strongly_typed -Ae +ESlit -DB_ENDIAN -DBN_DIV2W 
-DMD32_XARRAY::-D_REENTRANT::-Wl,+s -ldld:MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL 
DES_RISC1 DES_INT::::::::::dl:hpux-shared:+Z::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
  "hpux-parisc2-cc","cc:+DA2.0 +DS2.0 +O3 +Optrs_strongly_typed -Ae +ESlit -DB_ENDIAN 
-DMD32_XARRAY::-D_REENTRANT::-Wl,+s -ldld:SIXTY_FOUR_BIT MD2_CHAR RC4_INDEX RC4_CHAR 
DES_UNROLL DES_RISC1 
DES_INT:asm/pa-risc2.o:::::::::dl:hpux-shared:+Z::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
! "hpux64-parisc2-cc","cc:+DD64 +O3 +Optrs_strongly_typed -Ae +ESlit -DB_ENDIAN 
-DMD32_XARRAY::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG MD2_CHAR RC4_INDEX RC4_CHAR 
DES_UNROLL DES_RISC1 
DES_INT:asm/pa-risc2W.o:::::::::dlfcn:hpux64-shared:+Z::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
  # Isn't the line below meaningless? HP-UX cc optimizes for host by default.
  # hpux-parisc1_0-cc with +DAportable flag would make more sense. <appro>
! "hpux-parisc1_1-cc","cc:+DA1.1 +DS1.1 +O3 +Optrs_strongly_typed -Ae +ESlit 
-DB_ENDIAN -DMD32_XARRAY::-D_REENTRANT::-Wl,+s -ldld:MD2_CHAR RC4_INDEX RC4_CHAR 
DES_UNROLL DES_RISC1 
DES_INT::::::::::dl:hpux-shared:+Z::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
  
  # HPUX 9.X config.
  # Don't use the bundled cc.  It is broken.  Use HP ANSI C if possible, or
--- 271,282 ----
  #
  # Chris Ruemmler <[EMAIL PROTECTED]>
  # Kevin Steves <[EMAIL PROTECTED]>
! "hpux-parisc-cc","cc:+O2 +Optrs_strongly_typed -Ae +ESlit -DB_ENDIAN -DBN_DIV2W 
-DMD32_XARRAY::-D_REENTRANT::-Wl,+s -ldld:MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL 
DES_RISC1 DES_INT::::::::::dl:hpux-shared:+Z::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
  "hpux-parisc2-cc","cc:+DA2.0 +DS2.0 +O3 +Optrs_strongly_typed -Ae +ESlit -DB_ENDIAN 
-DMD32_XARRAY::-D_REENTRANT::-Wl,+s -ldld:SIXTY_FOUR_BIT MD2_CHAR RC4_INDEX RC4_CHAR 
DES_UNROLL DES_RISC1 
DES_INT:asm/pa-risc2.o:::::::::dl:hpux-shared:+Z::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
! "hpux64-parisc2-cc","cc:+DD64 +O2 +Optrs_strongly_typed -Ae +ESlit -DB_ENDIAN 
-DMD32_XARRAY::-D_REENTRANT::-Wl,+b\\: -ldl:SIXTY_FOUR_BIT_LONG MD2_CHAR RC4_INDEX 
RC4_CHAR DES_UNROLL DES_RISC1 
DES_INT:asm/pa-risc2W.o:::::::::dlfcn:hpux64-shared:+Z:+b\\: 
-L/usr/local/lib:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
  # Isn't the line below meaningless? HP-UX cc optimizes for host by default.
  # hpux-parisc1_0-cc with +DAportable flag would make more sense. <appro>
! "hpux-parisc1_1-cc","cc:+DA1.1 +DS1.1 +O2 +Optrs_strongly_typed -Ae +ESlit 
-DB_ENDIAN -DMD32_XARRAY::-D_REENTRANT::-Wl,+s -ldld:MD2_CHAR RC4_INDEX RC4_CHAR 
DES_UNROLL DES_RISC1 
DES_INT::::::::::dl:hpux-shared:+Z::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
  
  # HPUX 9.X config.
  # Don't use the bundled cc.  It is broken.  Use HP ANSI C if possible, or
***************
*** 933,939 ****
  
  print "IsWindows=$IsWindows\n";
  
! my @fields = split(/\s*:\s*/,$table{$target} . ":" x 30 , -1);
  my $cc = $fields[$idx_cc];
  my $cflags = $fields[$idx_cflags];
  my $unistd = $fields[$idx_unistd];
--- 933,939 ----
  
  print "IsWindows=$IsWindows\n";
  
! my @fields = map { s/\\:/:/g; $_ } split(/\s*(?<!\\):\s*/,$table{$target} . ":" x 30 
, -1);
  my $cc = $fields[$idx_cc];
  my $cflags = $fields[$idx_cflags];
  my $unistd = $fields[$idx_unistd];

Reply via email to