<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <p>I have tried below command, but still didn't work.</p>
    <p><br>
    </p>
    <p>../configure CPPFLAGS="-I/usr/local/include/rpc"<br>
    </p>
    <p><br>
    </p>
    <pre class="moz-signature" cols="72">-- 
FuLong Wang
<a class="moz-txt-link-abbreviated" href="mailto:fulong.wang@cn.ibm.com">fulong.wang@cn.ibm.com</a>
IBM China Systems Lab, Beijing, China
_______________________________________________</pre>
    <div class="moz-cite-prefix">On 3/30/20 11:57, FuLong Wang wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:47b30b99-eb4c-faa6-fb09-8282bf6e32b9@linux.vnet.ibm.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p>Hello Experts,</p>
      <p>I'm trying to compiling libvirt 6.0.0 on an CentOS 8 env by
        following the guide here. (<a
          href="https://libvirt.org/compiling.html#compiling"
          moz-do-not-send="true">https://libvirt.org/compiling.html#compiling</a>)</p>
      <p>When running the configure command, i encountered the issue of
        showing "configure: error: Unable to find <rpc/rpc.h>": </p>
      <p><br>
      </p>
      <p>How can i let the configure command to realize the non-standard
        header file location of portablexdr library?<br>
      </p>
      <p>Could anyone kindly give some clue to resolve this?</p>
      <p><br>
      </p>
      <p>Thanks in advance!</p>
      <p><br>
      </p>
      <p>Install portablexdr was successfull.<br>
      </p>
      <table width="70%" cellspacing="2" cellpadding="2" border="1">
        <tbody>
          <tr>
            <td valign="top">[root@centos8 portablexdr-4.9.1]# make
              install<br>
              make  install-am<br>
              make[1]: Entering directory '/root/portablexdr-4.9.1'<br>
              make[2]: Entering directory '/root/portablexdr-4.9.1'<br>
              test -z "/usr/local/lib" || /usr/bin/mkdir -p
              "/usr/local/lib"<br>
               /bin/sh ./libtool   --mode=install /usr/bin/install -c 
              'libportablexdr.la' '/usr/local/lib/libportablexdr.la'<br>
              libtool: install: /usr/bin/install -c
              .libs/libportablexdr.so.0.0.0
              /usr/local/lib/libportablexdr.so.0.0.0<br>
              libtool: install: (cd /usr/local/lib && { ln -s -f
              libportablexdr.so.0.0.0 libportablexdr.so.0 || { rm -f
              libportablexdr.so.0 && ln -s
              libportablexdr.so.0.0.0 libportablexdr.so.0; }; })<br>
              libtool: install: (cd /usr/local/lib && { ln -s -f
              libportablexdr.so.0.0.0 libportablexdr.so || { rm -f
              libportablexdr.so && ln -s libportablexdr.so.0.0.0
              libportablexdr.so; }; })<br>
              libtool: install: /usr/bin/install -c
              .libs/libportablexdr.lai /usr/local/lib/libportablexdr.la<br>
              libtool: install: /usr/bin/install -c
              .libs/libportablexdr.a /usr/local/lib/libportablexdr.a<br>
              libtool: install: chmod 644
              /usr/local/lib/libportablexdr.a<br>
              libtool: install: ranlib /usr/local/lib/libportablexdr.a<br>
              libtool: finish:
              PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/sbin"
              ldconfig -n /usr/local/lib<br>
----------------------------------------------------------------------<br>
              Libraries have been installed in:<br>
                 /usr/local/lib<br>
              <br>
              If you ever happen to want to link against installed
              libraries<br>
              in a given directory, LIBDIR, you must either use libtool,
              and<br>
              specify the full pathname of the library, or use the
              `-LLIBDIR'<br>
              flag during linking and do at least one of the following:<br>
                 - add LIBDIR to the `LD_LIBRARY_PATH' environment
              variable<br>
                   during execution<br>
                 - add LIBDIR to the `LD_RUN_PATH' environment variable<br>
                   during linking<br>
                 - use the `-Wl,-rpath -Wl,LIBDIR' linker flag<br>
                 - have your system administrator add LIBDIR to
              `/etc/ld.so.conf'<br>
              <br>
              See any operating system documentation about shared
              libraries for<br>
              more information, such as the ld(1) and ld.so(8) manual
              pages.<br>
----------------------------------------------------------------------<br>
              test -z "/usr/local/bin" || /usr/bin/mkdir -p
              "/usr/local/bin"<br>
                /bin/sh ./libtool   --mode=install /usr/bin/install -c
              'portable-rpcgen' '/usr/local/bin/portable-rpcgen'<br>
              libtool: install: /usr/bin/install -c portable-rpcgen
              /usr/local/bin/portable-rpcgen<br>
              test -z "/usr/local/include" || /usr/bin/mkdir -p
              "/usr/local/include"<br>
              <b> /bin/sh /root/portablexdr-4.9.1/install-sh -c -m 644
                'rpc/rpc.h' '/usr/local/include/rpc/rpc.h'</b><b><br>
              </b><b> /bin/sh /root/portablexdr-4.9.1/install-sh -c -m
                644 'rpc/types.h' '/usr/local/include/rpc/types.h'</b><b><br>
              </b><b> /bin/sh /root/portablexdr-4.9.1/install-sh -c -m
                644 'rpc/xdr.h' '/usr/local/include/rpc/xdr.h'</b><br>
              make[2]: Leaving directory '/root/portablexdr-4.9.1'<br>
              make[1]: Leaving directory '/root/portablexdr-4.9.1'<br>
              [root@centos8 portablexdr-4.9.1]#</td>
          </tr>
        </tbody>
      </table>
      <p><br>
      </p>
      <p><br>
      </p>
      <p>configure command report can't find the <rpc/rpc.h><br>
      </p>
      <table width="1256" height="1164" cellspacing="2" cellpadding="2"
        border="1">
        <tbody>
          <tr>
            <td valign="top">checking for how to force completely
              read-only GOT table... -Wl,-z -Wl,relro -Wl,-z -Wl,now<br>
              checking for how to avoid indirect lib deps...
              -Wl,--no-copy-dt-needed-entries<br>
              checking for how to stop undefined symbols at link time...
              -Wl,-z -Wl,defs<br>
              checking sys/acl.h usability... no<br>
              checking sys/acl.h presence... no<br>
              checking for sys/acl.h... no<br>
              checking for aa_change_profile in -lapparmor... no<br>
              checking for pthread_mutexattr_init... yes<br>
              checking for pthread.h... (cached) yes<br>
              checking whether pthread_sigmask does anything... yes<br>
              checking for atomic ops implementation... gcc<br>
              checking for getxattr in -lattr... no<br>
              checking for audit_encode_nv_string in -laudit... no<br>
              checking for pkg-config... /usr/bin/pkg-config<br>
              checking pkg-config is at least version 0.9.0... yes<br>
              checking whether rl_completion_quote_character is
              declared... no<br>
              checking for BLKID... no<br>
              checking for capng_updatev in -lcap-ng... no<br>
              checking for CURL... no<br>
              checking for DBUS... no<br>
              checking for DEVMAPPER... no<br>
              checking for dm_task_run in -ldevmapper... no<br>
              checking for dlfcn.h... (cached) yes<br>
              checking for library containing dlopen... -ldl<br>
              checking for whether to install firewalld libvirt zone...
              no<br>
              checking for FUSE... no<br>
              checking for GLIB... yes<br>
              checking for GLUSTERFS... no<br>
              checking for GNUTLS... yes<br>
              checking for HAL... no<br>
              checking for LIBISCSI... no<br>
              checking whether to compile with macvtap support... yes<br>
              checking whether MACVLAN_MODE_PASSTHRU is declared... yes<br>
              checking for LIBNL... yes<br>
              checking for LIBNL_ROUTE... yes<br>
              checking for LIBPARTED... no<br>
              checking libpcap pcap-config >= 1.0.0 ... no<br>
              checking for LIBSSH... no<br>
              checking for LIBXML... yes<br>
              checking whether to compile with macvtap support... yes<br>
              checking whether MACVLAN_MODE_PASSTHRU is declared...
              (cached) yes<br>
              checking for NETCF... no<br>
              checking for gettext... yes<br>
              checking libintl.h usability... yes<br>
              checking libintl.h presence... yes<br>
              checking for libintl.h... yes<br>
              checking for xgettext... xgettext<br>
              checking for msgfmt... msgfmt<br>
              checking for msgmerge... msgmerge<br>
              checking msgfmt is GNU tool... yes<br>
              checking for numa_available in -lnuma... no<br>
              checking for numa_bitmask_isbitset in -lnuma... no<br>
              checking for OPENWSMAN... no<br>
              checking for PCIACCESS... no<br>
              checking for init script type... systemd<br>
              checking for pkcheck... /usr/bin/pkcheck<br>
              checking for pthread_mutexattr_init... (cached) yes<br>
              checking for pthread.h... (cached) yes<br>
              checking whether pthread_sigmask does anything... (cached)
              yes<br>
              checking whether rl_completion_quote_character is
              declared... (cached) no<br>
              checking for sanlock_init in -lsanlock_client... no<br>
              checking for SASL... no<br>
              checking for fgetfilecon_raw in -lselinux... no<br>
              checking for SSH2... no<br>
              checking for UDEV... no<br>
              checking whether to compile with virtual port support...
              yes<br>
              checking for WIRESHARK_DISSECTOR... no<br>
              <b>checking for xdrmem_create in -lportablexdr... yes</b><b><br>
              </b><b>checking for xdr_u_int64_t... no</b><b><br>
              </b><b>checking where to find <rpc/rpc.h>... missing</b><b><br>
              </b><b>configure: error: Unable to find <rpc/rpc.h></b><br>
              [root@centos8 build]# <br>
            </td>
          </tr>
        </tbody>
      </table>
      <p><br>
      </p>
      <p><br>
      </p>
      <p><br>
      </p>
      <p><br>
      </p>
      <p><br>
      </p>
      <pre class="moz-signature" cols="72">-- 
FuLong Wang
<a class="moz-txt-link-abbreviated" href="mailto:fulong.wang@cn.ibm.com" moz-do-not-send="true">fulong.wang@cn.ibm.com</a>
IBM China Systems Lab, Beijing, China
_______________________________________________</pre>
    </blockquote>
  </body>
</html>