HP Tru64 UNIX (OSF1)

Refer to the topic UNIX Installation Procedures for installation procedures common to all UNIX platforms.

Extracting Distribution Files

Mount the CDROM distribution using the command

# mount <mount point>

as root. The file /etc/fstab contains definitions for CDROM mount points if they exist. Otherwise, consult the manual page for mount for details on setting up the CDROM mount point. Once the CDROM is mounted, follow the instructions for extracting and installing the software distribution in UNIX Installation Procedures.

Compilation

Source Modifications

None Required

Predefined Constants

Certain predefined constants are required for successful programming with the PI-API. Your compiler may automatically define these or provide a means to define constants for all compiled modules. If not, these defines must be included in your source before the PI-API header files are included.

For this platform the required constants are:

-Dalpha

Processor - used for endianism

-Dosf1

Preprocessor definition for some PI-API header files.

Compile Flags

-std1

Enforce ANSI C standard

-ieee

Use IEEE floating point NaN’s and

denormalized numbers.

Linking

Link with cc which calls ld. If the program’s modules are in C++ compile and link with cxx.

call_shared

Create a dynamic executable (one that uses shared libraries)

non_shared

Create a static executable.

Link with libraries

-lpiapi -lm -lots -lcxx

System Files Redistributed

Most of the required files come on the base system CD. The proper subsets need to be installed to support C++ linking. The files required and their subsets are listed below:

Subset

File

CXXBASEA132

/usr/lib/cmplrs/cxx/_main.o

CXXBASEA132

/usr/lib/cmplrs/cxx/demangle

CXXSHRDA305

/usr/shlib/libcxx.so

OSFBASE320

/usr/shlib/libm.so

OSFCMPLRS320

/usr/lib/cmplrs/cc/crt0.o

OSFCMPLRS320

/usr/lib/cmplrs/cc/libexc_init.a

One additional subset, cxxshrdae01307, is now required for programs compiled with the latest release of the C++ compiler. As the PI-API library is built with this compiler, this subset is distributed with the OSF PI-API and can be found in the PIHOME/lib directory after installation. The subset provides runtime support for this new compiler.

Enabling Operational Intelligence