Lance,

Thanks for your detailed answer.  Examples would be helpful but not
necessary.

Regards...

Rob


                                                                                       
                                      
                      L Nehring                                                        
                                      
                      <nehring@newparticle        To:       [EMAIL PROTECTED]  
                                      
                      s.com>                      cc:                                  
                                      
                      Sent by:                    Subject:  Re: creating shared libs 
on hp-ux 11                             
                      owner-openssl-users@                                             
                                      
                      openssl.org                                                      
                                      
                                                                                       
                                      
                                                                                       
                                      
                      01/22/2002 10:46 AM                                              
                                      
                      Please respond to                                                
                                      
                      openssl-users                                                    
                                      
                                                                                       
                                      
                                                                                       
                                      



Rob,

Shared libraries are built from PIC shared objects.  Archive libraries are
just collections of normally compiled objects (althought I've seen Oracle
put
PIC objects in them).   So compile-time linking is just put of the process
-
you must have given the appropriate PIC flags to the compiler first so that
you have objects capable of being linked into a shared library.  Trying to
convert an archive library to a shared library without recompiling the
source
code to PIC objects won't work.
Also, beware on HP-UX:  It does _not_ use the environment variable
"LD_LIBRARY_PATH" at runtime.  You can use the environment variable
"SHLIB_PATH" for the same purpose, but _only_ if it was enabled at
compile-time linking (and it is not by default).  You can also embed custom
lookup paths.  Look at the man pages for syntax of the the linker flag....
I
don't remember off the top of my head.   You can use the HP-UX command:
'chatr' to check out things in a compiled executable stub.  It will show
lookup criteria for shared libararies and other related
information.......more information than 'ldd', which is good since you
don't
have 'ldd' on HP-UX either. If I remember correctly 'chatr' also works
against shared libraries, which is nice when you need to see more
dependencies.  I you'd like an example, I can probably dig something up,
but
it'll take me a day or so.

r,
Lance Nehring
New Particles Corporation

Robert Pungello wrote:

> Hello,
>
> Has anyone successfully created shared libraries (.sl) on HP-UX given the
> libssl.a and libcrypto.a files produced as a result of building OpenSSL.
> I've been trying variations on the following with no luck:
>
> > ld -b  -t libssl.a -o libssl.sl -lc
>
> Any information or pointers would be most appreciated.  Thanks.
>
> Rob
>
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]



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

Reply via email to