Re: Compiling libvirt on ubuntu

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


On Mon, Sep 13, 2021 at 01:36:57 +0000, Or Ozeri wrote:
> Hi,
> I'm trying to compile libvirt on ubuntu machine.
> I installed meson 0.59.1 using pip.
> Then installed a few more packages that were required by meson build:
> sudo apt-get install libxml2-utils xsltproc libpciaccess-dev ninja-build
> Finally, I followed the simple instructions over here:
> xz -dc libvirt-7.7.0.tar.xz | tar xvf -
> cd libvirt-7.7.0
> meson build
> ninja -C build
> The last command fails with:
> FAILED: src/
> cc  -o src/ src/libvirt_probes.o src/ src/ src/ -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname, '-Wl,-rpath,$ORIGIN/:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' -Wl,-rpath-link,/home/oro/ozeri/libvirt-7.7.0/build/src src/ -Wl,--version-script=/home/oro/ozeri/libvirt-7.7.0/build/src/admin/libvirt_admin.syms -Wl,-z,nodelete /usr/lib/x86_64-linux-gnu/ /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ -Wl,-z,relro -Wl,-z,now -Wl,--no-copy-dt-needed-entries /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ -Wl,--end-grou
> /usr/bin/ld: src/ in function `callFull':
> /home/oro/ozeri/libvirt-7.7.0/build/../src/admin/admin_remote.c:99: undefined reference to `virNetClientProgramCall'
> /usr/bin/ld: src/ in function `remoteAdminConnectClose':
> /home/oro/ozeri/libvirt-7.7.0/build/../src/admin/admin_remote.c:197: undefined reference to `virNetClientSetCloseCallback'

You've seem to have run into the same issue that is reported as:

If I read the issue correctly the following should fix it for you:

meson build -Ddriver_remote=enabled

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

  Powered by Linux