HP DCE/9000 Application Development Tools for HP-UX 11i Release Note

17
HP DCE/9000 Version 1.8 Application Development Tools for HP-UX 11i Release Note
Developing DCE Applications with HP DCE/9000
Source code that is built into applications that use the CDS, RPC, or security APIs must
include <pthread.h>. This is necessary because the DCE RPC runtime library creates a
small number of private threads, on both the client and server sides of an application.
The DCE header files should be included as <dce/
header.h
>. Because names of some of
the DCE header files conflict with those in -/usr/include, you should avoid using the
-I/usr/include/dce C preprocessor option to include DCE header files.
DCE applications must always link with libdce. When linked with other libraries, libdce
must be linked first, as follows:-ldce
other_libraries
DCE applications that require kernel thread support needed to link to libcektc as
follows:- ldcekt
DCE applications requiring 64 bit, kernel thread support need to link to libdcekt after
compiling the binaries using the guidelines specified in
http://www.software.hp.com/STK”. This site contains the 64 bit porting guidelines, 64
bit compiler and linker changes needed to port the applications of 64 bit.
Do not link in libc explicitly when building a DCE application.
If you link in libdce, libcma is automatically linked in; if you are using libcma without
libdce, you must link libcma first, as follows:-lcma
other_libraries
libdce and libc must be either both shared or both archived library versions; a mixed
environment with one of the libraries the shared version and the other the archived
version is not supported.
libcma and libc must be either both shared or both archived library versions; a mixed
environment with one of the libraries the shared version and the other the archived
version is not supported.
NOTE At HP DCE 1.8, both libdce and libcma were versioned for compatibility
reasons. libdce.1 and libcma.1 are the latest patched HP DCE 1.5 libraries.
libdce.2 and libcma.2 support HP DCE 1.8 on HP-UX 11i.
Shared applications built on HP DCE 1.7 may have to recompile to run on HP
DCE 1.8.
Notes on Debugging HP DCE Applications
The following are tips on debugging HP DCE applications. Also see
Programming with
Threads on HP-UX (B2355-90060)
for additional information about debugging HP DCE