"chatr" is also useful for changing the information after the fact, so if someone forgets to enable dynamic library search (via "SHLIB_PATH") or hardcodes a path during the build, you can use "chatr" to modify these attributes and get your system working.
L Nehring wrote: > > 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 > > > -- Tom Anderson | Ex ignorantia ad sapientiam Director, Testing and Tools | e tenbris ad lucem! [EMAIL PROTECTED] | - someone famous i'm sure! ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]