This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlxs: Note that rpc.h is can be in different places
authorKarl Williamson <khw@cpan.org>
Mon, 2 Nov 2020 02:35:29 +0000 (19:35 -0700)
committerKarl Williamson <khw@cpan.org>
Wed, 2 Dec 2020 02:03:24 +0000 (19:03 -0700)
This replaces PR #18247

dist/ExtUtils-ParseXS/lib/perlxs.pod

index 6a48d7e..2dfbf7d 100644 (file)
@@ -2103,6 +2103,7 @@ File C<RPC.xs>: Interface to some ONC+ RPC bind library functions.
      #include "perl.h"
      #include "XSUB.h"
 
+     /* On some systems this should be <tirpc/rpc.h> */
      #include <rpc/rpc.h>
 
      typedef struct netconfig Netconfig;
@@ -2163,6 +2164,8 @@ File C<rpctest.pl>: Perl test program for the RPC extension.
      print "time = $a\n";
      print "netconf = $netconf\n";
 
+In Makefile.PL add -ltirpc and -I/usr/include/tirpc.
+
 =head1 CAVEATS
 
 XS code has full access to system calls including C library functions.