HP-UX configuration notes

Thread Local Storage in shared libraries

On HP-UX, the shared library loader cannot load libraries using Thread Local Storage (TLS), like Oracle libclntsh. In order to use shared libraries with TLS, you must use the LD_PRELOAD_ONCE environment variable. For more details, search for "shl_load + Thread Local Storage" on the HP support site.

PostgreSQL on HP-UX LP64

On HP-UX LP64, the PostgreSQL database driver should be linked with the libxnet.sl library if you want to use networking. You can force the usage of libxnet by setting the LD_PRELOAD_ONCE environment variable to /lib/pa20_64/libxnet.sl.

Java™ Interface

When using the Java Interface with the HotSpot JVM on HP/UX:

If you get an error when fglcomp or fglrun try to load the libjvm library, use the LD_PRELOAD environment variable:

$ LD_PRELOAD=libjvm.sl
$ export LD_PRELOAD

Using LD_PREPLOAD can make other applications fail. LD_PRELOAD should only be set for the runtime system. If you need to run other applications in the same environment as your application programs, you can set the LD_PRELOAD_ONCE or JAVA_PRELOAD_ONCE variable in the shell scripts found in FGLDIR/bin.