pierre31 has asked for the wisdom of the Perl Monks concerning the following question:
I'would like to do ONC RPC in perl.
"rpcgen" at cpan (http://search.cpan.org/~jake/perlrpcgen-0.71a/) looks like outdatted (1997) and do not compile mainly due to a change in rpc lib.
Does anybody knows sthg about performing RPC ONC in perl, i can't find anything on the net ?
Thanks for your time
Pierre
Output of compilation :
$perl Makefile.PL Writing Makefile for RPC::ONC Writing Makefile for perlrpcgen $make Make[1]: Entering directory `/home/pierrem/perlrpcgen-0.71a/RPC' cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-s +trict-ali asing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +-O2 -DV ERSION=\"0.5a\" -DXS_VERSION=\"0.5a\" -fPIC "-I/usr/lib/perl/5.8/CORE" + ONC.c ONC.xs:15:25: rpc/svc_soc.h : Aucun fichier ou répertoire de ce type ONC.xs: Dans la fonction « constant »: ONC.xs:138: error: `RPC_CANTCONNECT' undeclared (first use in this fun +ction) ONC.xs:138: error: (Each undeclared identifier is reported only once ONC.xs:138: error: for each function it appears in.) ONC.xs:140: error: `RPC_XPRTFAILED' undeclared (first use in this func +tion) ONC.xs:142: error: `RPC_CANTCREATESTREAM' undeclared (first use in thi +s functio n) ONC.xs: Dans la fonction « XS_RPC__ONC__Client_clnt_create »: ONC.xs:182: error: incompatible type for argument 1 of `set_perl_error +' ONC.xs: Dans la fonction « XS_RPC__ONC__Auth_authsys_create_default »: ONC.xs:239: attention : affectation transforme un entier en pointeur s +ans trans typage ONC.xs: Dans la fonction « XS_RPC__ONC__authsys_parms_aup_time »: ONC.xs:339: error: dereferencing pointer to incomplete type ONC.xs: Dans la fonction « XS_RPC__ONC__authsys_parms_aup_machname »: ONC.xs:349: error: dereferencing pointer to incomplete type ONC.xs: Dans la fonction « XS_RPC__ONC__authsys_parms_aup_uid »: ONC.xs:359: error: dereferencing pointer to incomplete type ONC.xs: Dans la fonction « XS_RPC__ONC__authsys_parms_aup_gid »: ONC.xs:369: error: dereferencing pointer to incomplete type ONC.xs: Dans la fonction « XS_RPC__ONC__authsys_parms_aup_gids »: ONC.xs:382: error: dereferencing pointer to incomplete type ONC.xs:383: error: dereferencing pointer to incomplete type ONC.xs:384: error: dereferencing pointer to incomplete type make[1]: *** [ONC.o] Erreur 1 make[1]: Leaving directory `/home/pierrem/perlrpcgen-0.71a/RPC' make: *** [subdirs] Erreur 2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: RPC ONC
by Fletch (Bishop) on Apr 11, 2005 at 17:17 UTC | |
by pierre31 (Initiate) on Apr 11, 2005 at 22:37 UTC |