We have this working on HPUX ia64 in both 32 and 64 bit modes.
You'll have to manually "Configure" anyway, there are three supported
modes, 32 bit , 64 bit, and pa_risc, all of which are supported by the base
OS. Autodetection is going to give the wrong answer 2 times in 3.

The IBM patch with the code in it is available, but it's too big to post to
this list.

Peter

Peter Waltenberg
Team Lead
IBM Crypto for C Team
IBM/Tivoli Gold Coast Office
Phone: +61-7-55524016



                                                                                       
                                                             
                      Andy Polyakov                                                    
                                                             
                      <[EMAIL PROTECTED]        To:       [EMAIL PROTECTED]            
                                                       
                      .se>                      cc:       [EMAIL PROTECTED]            
                                                                 
                      Sent by:                  Subject:  Re: [openssl.org #772] 
32/64-bit detection on HPUX 11.11                                  
                      owner-openssl-dev@                                               
                                                             
                      openssl.org                                                      
                                                             
                                                                                       
                                                             
                                                                                       
                                                             
                      19/11/2003 07:40                                                 
                                                             
                      PM                                                               
                                                             
                      Please respond to                                                
                                                             
                      openssl-dev                                                      
                                                             
                                                                                       
                                                             
                                                                                       
                                                             




> > rt> > Now, the really cool thing would be if someone (you?) could
provide us
> > rt> > with some sh code that identifies 64bit HP/UX so we could set
that up
> > rt> > in the script 'config'.
> > rt>
> > rt> ??? 'config' tells apart 32- and 64-bit HP/UX kernels since long
time
> > rt> ago. Look for 'getconf KERNEL_BITS'.
> >
> > Oh?  So how come 64-bit people get a build that tries to go for
> > 32-bit?  What have we missed?  I haven't looked yet, but I might
> > tonight, if I remember...
>
> Actually the problem doesn't seem to be the kernel but the compiler
> used. The original requestor uses a gcc version 3.3.2. The 32/64 bit
> decision is made by running the GCC in question and looking for
> __LP64__ in the output (lines 410-418 in 0.9.7-CVS).

Background for this __LP64__ decision was that [at least earlier
versions of] gcc did not support multiple ABI on HP-UX. Meaning that if
'gcc -v -E -x c /dev/null' without extra arguments exhibits __LP64__ in
its output, then you have *no* other option, but to produce 64-bit
build. And vice versa. In other words './config' otherwise assumes that
gcc is not capable of producing 64-bit code and goes for 32-bit build
regarless kernel "bit-ness." The relevant question is of requestor can
confirm that gcc can *now* generate *both* 32- and 64-bit code? What's
the switch? -m64 as on most of other plaforms or something else? Does
'./Configure hpux64-parisc-gcc -m64' work? Note the commentary section
above hpux64-parisc-gcc... A.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]



______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to