critical impact:
Network Information Service client interface - requires additional header files (CrCh36)
Problem description
The required header files for using the Network Information Service (NIS) client interface routines is different on Tru64 UNIX and HP-UX.
This package of functions provides an interface to the Network Information Service (NIS) database lookup service. On Tru64 UNIX, an application needs only to include the <rpcsvc/ypclnt.h> header file. On HP-UX, additional header files are required.
Identifiers
 yp_all |
 yp_next |
 yp_bind |
 yp_order |
 yp_first |
 yp_unbind |
 yp_get_default_domain |
 yperr_string |
 yp_master |
 ypprot_err |
 yp_match |
|
See also
Solution description
Modify your code to include additional header files and link with the Network Information Service Library (NSL).
On HP-UX, you must include the following standard header files in your application as follows:
#include <rpcsvc/ypclnt.h>
#include <sys/types.h>
#include <rpc/rpc.h>
#include <rpcsvc/yp_prot.h>
Link with NSL (/usr/lib/libnsl) by adding -lnsl to your link command line.
Review the applicable manpages and code for more information. See also
Problem summary
| classifications |
source types |
OS release |
severity |
type |
| NW |
C, C++ |
any HP-UX 11i version |
critical |
changed |
|