Operating System - HP-UX
1833479 Members
2994 Online
110052 Solutions
New Discussion

Re: RPC compilation problem

 
Sanjib Talukdar
Occasional Advisor

RPC compilation problem

All,
Is there any way to specify which RPC related system header files are to be included in the output files while compiling *.x files using rpcgen on HP UX 11.0?

We are facing the following problem:

On HP UX 10.20, the rpcgen tool includes the RPC related system header files from the directory /opt/datagate/include and our code was developed based on the above behaviour.
But on HP UX 11.0, the RPC related system headers are getting included from /usr/include directory and our source code is failing to compile, mostly with "Redeclaration errors".
The following is the comparision of the rpcgen tool on two platforms:
On HP UX 11.0 -
$>what /bin/rpcgen
/bin/rpcgen:
rpc_main.c: PHNE_17200
rpc_clntout.c $Revision: 1.2.211.1 $
rpc_cout.c $Revision: 1.2.211.1 $
rpc_hout.c $Revision: 1.2.211.1 $
rpc_parse.c $Revision: 1.2.211.1 $
rpc_scan.c $Revision: 1.2.211.1 $
rpc_svcout.c PHNE_25626
rpc_tblout.c $Revision: 1.2.211.1 $
On HP UX 10.20 -
$> what /bin/rpcgen
/bin/rpcgen:
rpc_main.c 1.3 90/07/25 4.1NFSSRC Copyr 1990 Sun Micro
rpc_hout.c 1.4 90/07/25 4.1NFSSRC Copyr 1990 Sun Micro
rpc_cout.c 1.3 90/07/25 4.1NFSSRC Copyr 1990 Sun Micro
rpc_parse.c 1.4 90/07/25 4.1NFSSRC Copyr 1990 Sun Micro
rpc_scan.c 1.3 90/07/25 4.1NFSSRC Copyr 1990 Sun Micro
rpc_util.c 1.3 90/07/25 4.1NFSSRC Copyr 1990 Sun Micro
rpc_svcout.c 1.3 90/07/25 4.1NFSSRC Copyr 1990 Sun Micro
rpc_clntout.c 1.3 90/07/25 4.1NFSSRC Copyr 1990 Sun Micro
rpc_tblout.c 1.1 90/07/26 4.1NFSSRC Copyr 1990 SMI

We don't want to modify the source code unless we really have to!
1 REPLY 1
G. Vrijhoeven
Honored Contributor

Re: RPC compilation problem

Hi,

You could check this site:

http://hpux.cs.utah.edu/hppd/hpux/Networking/Misc/rpc_eg-1.0/

HTH,

Gideon