Re: "configure: error: Unable to find <rpc/rpc.h>" when compiling libvirt 6.0.0 from a release tarball

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




I have tried below command, but still didn't work.


../configure CPPFLAGS="-I/usr/local/include/rpc"


-- 
FuLong Wang
fulong.wang@xxxxxxxxxx
IBM China Systems Lab, Beijing, China
_______________________________________________
On 3/30/20 11:57, FuLong Wang wrote:

Hello Experts,

I'm trying to compiling libvirt 6.0.0 on an CentOS 8 env by following the guide here. (https://libvirt.org/compiling.html#compiling)

When running the configure command, i encountered the issue of showing "configure: error: Unable to find <rpc/rpc.h>": 


How can i let the configure command to realize the non-standard header file location of portablexdr library?

Could anyone kindly give some clue to resolve this?


Thanks in advance!


Install portablexdr was successfull.

[root@centos8 portablexdr-4.9.1]# make install
make  install-am
make[1]: Entering directory '/root/portablexdr-4.9.1'
make[2]: Entering directory '/root/portablexdr-4.9.1'
test -z "/usr/local/lib" || /usr/bin/mkdir -p "/usr/local/lib"
 /bin/sh ./libtool   --mode=install /usr/bin/install -c  'libportablexdr.la' '/usr/local/lib/libportablexdr.la'
libtool: install: /usr/bin/install -c .libs/libportablexdr.so.0.0.0 /usr/local/lib/libportablexdr.so.0.0.0
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; }; })
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; }; })
libtool: install: /usr/bin/install -c .libs/libportablexdr.lai /usr/local/lib/libportablexdr.la
libtool: install: /usr/bin/install -c .libs/libportablexdr.a /usr/local/lib/libportablexdr.a
libtool: install: chmod 644 /usr/local/lib/libportablexdr.a
libtool: install: ranlib /usr/local/lib/libportablexdr.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/bin" || /usr/bin/mkdir -p "/usr/local/bin"
  /bin/sh ./libtool   --mode=install /usr/bin/install -c 'portable-rpcgen' '/usr/local/bin/portable-rpcgen'
libtool: install: /usr/bin/install -c portable-rpcgen /usr/local/bin/portable-rpcgen
test -z "/usr/local/include" || /usr/bin/mkdir -p "/usr/local/include"
 /bin/sh /root/portablexdr-4.9.1/install-sh -c -m 644 'rpc/rpc.h' '/usr/local/include/rpc/rpc.h'
 /bin/sh /root/portablexdr-4.9.1/install-sh -c -m 644 'rpc/types.h' '/usr/local/include/rpc/types.h'
 /bin/sh /root/portablexdr-4.9.1/install-sh -c -m 644 'rpc/xdr.h' '/usr/local/include/rpc/xdr.h'
make[2]: Leaving directory '/root/portablexdr-4.9.1'
make[1]: Leaving directory '/root/portablexdr-4.9.1'
[root@centos8 portablexdr-4.9.1]#



configure command report can't find the <rpc/rpc.h>

checking for how to force completely read-only GOT table... -Wl,-z -Wl,relro -Wl,-z -Wl,now
checking for how to avoid indirect lib deps... -Wl,--no-copy-dt-needed-entries
checking for how to stop undefined symbols at link time... -Wl,-z -Wl,defs
checking sys/acl.h usability... no
checking sys/acl.h presence... no
checking for sys/acl.h... no
checking for aa_change_profile in -lapparmor... no
checking for pthread_mutexattr_init... yes
checking for pthread.h... (cached) yes
checking whether pthread_sigmask does anything... yes
checking for atomic ops implementation... gcc
checking for getxattr in -lattr... no
checking for audit_encode_nv_string in -laudit... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether rl_completion_quote_character is declared... no
checking for BLKID... no
checking for capng_updatev in -lcap-ng... no
checking for CURL... no
checking for DBUS... no
checking for DEVMAPPER... no
checking for dm_task_run in -ldevmapper... no
checking for dlfcn.h... (cached) yes
checking for library containing dlopen... -ldl
checking for whether to install firewalld libvirt zone... no
checking for FUSE... no
checking for GLIB... yes
checking for GLUSTERFS... no
checking for GNUTLS... yes
checking for HAL... no
checking for LIBISCSI... no
checking whether to compile with macvtap support... yes
checking whether MACVLAN_MODE_PASSTHRU is declared... yes
checking for LIBNL... yes
checking for LIBNL_ROUTE... yes
checking for LIBPARTED... no
checking libpcap pcap-config >= 1.0.0 ... no
checking for LIBSSH... no
checking for LIBXML... yes
checking whether to compile with macvtap support... yes
checking whether MACVLAN_MODE_PASSTHRU is declared... (cached) yes
checking for NETCF... no
checking for gettext... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for xgettext... xgettext
checking for msgfmt... msgfmt
checking for msgmerge... msgmerge
checking msgfmt is GNU tool... yes
checking for numa_available in -lnuma... no
checking for numa_bitmask_isbitset in -lnuma... no
checking for OPENWSMAN... no
checking for PCIACCESS... no
checking for init script type... systemd
checking for pkcheck... /usr/bin/pkcheck
checking for pthread_mutexattr_init... (cached) yes
checking for pthread.h... (cached) yes
checking whether pthread_sigmask does anything... (cached) yes
checking whether rl_completion_quote_character is declared... (cached) no
checking for sanlock_init in -lsanlock_client... no
checking for SASL... no
checking for fgetfilecon_raw in -lselinux... no
checking for SSH2... no
checking for UDEV... no
checking whether to compile with virtual port support... yes
checking for WIRESHARK_DISSECTOR... no
checking for xdrmem_create in -lportablexdr... yes
checking for xdr_u_int64_t... no
checking where to find <rpc/rpc.h>... missing
configure: error: Unable to find <rpc/rpc.h>
[root@centos8 build]#






-- 
FuLong Wang
fulong.wang@xxxxxxxxxx
IBM China Systems Lab, Beijing, China
_______________________________________________

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux