Hi,

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

In reply to RPC ONC by pierre31

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.