|Skip Navigation Links|
|Exit Print View|
|Oracle Solaris Cluster Data Services Developer's Guide Oracle Solaris Cluster|
Before you begin to develop your data service, you must install the Solaris Cluster development package (SUNWscdev) to have access to the Solaris Cluster header and library files. Although this package is already installed on all cluster nodes, you typically develop your data service on a separate, non-cluster development machine, rather than on a cluster node. In this typical case, you must use the pkgadd command to install the SUNWscdev package on your development machine.
Note - On the development machine, ensure that you are using the Developer or Entire Distribution software group of the Solaris 10 OS.
When compiling and linking your code, you must set particular options to identify the header and library files.
Note - You cannot mix compatibility-mode compiled C++ code and standard-mode compiled C++ code in the Solaris Operating System and Solaris Cluster products. Consequently, if you intend to create a C++ based data service for use on Solaris Cluster, you must use the standard mode to compile that data service.
When you have finished development (on a non-cluster node), you can transfer the completed data service to a cluster for testing.
The procedures in this section describe how to complete the following tasks:
Install the Solaris Cluster development package (SUNWscdev) and set the correct compiler and linker options.
Transfer the data service to a cluster.
This procedure describes how to install the SUNWscdev package and set the compiler and linker options for data service development.
# cd cd-rom-directory
# pkgadd -d . SUNWscdev
Specify the -I option to identify the Solaris Cluster header files, the -L option to specify the compile-time library search path on the development system, and the -R option to specify the library search path to the runtime linker in the cluster.
# Makefile for sample data service ... -I /usr/cluster/include -L /usr/cluster/lib -R /usr/cluster/lib ...
When you have completed the data service on a development machine, you must transfer the data service to a cluster for testing. To reduce the chance of error during the transfer, combine the data service code and the RTR file into a package. Then, install the package on the Solaris hosts on which you want to run the service.
Note - Agent Builder creates this package automatically.