Re: build problem with libxl

Ján Tomko
Thu, 20 Feb 2020 15:11:30 -0000

On Thu, Feb 20, 2020 at 12:40:35PM +0100, Christoph
wrote:
>I use centos 7 (7.7.1908).
>
>these pkgs are installed:
>
>xen-hypervisor-4.12.2-1.el7.x86_64
>xen-devel-4.12.2-1.el7.x86_64
>qemu-xen-4.12.1-1.el7.x86_64
>xen-runtime-4.12.2-1.el7.x86_64
>xen-licenses-4.12.2-1.el7.x86_64
>xen-4.12.2-1.el7.x86_64
>xen-libs-4.12.2-1.el7.x86_64
>xen-ovmf-20180825-1.gitef529e6ab.el7.x86_64
>

Interesting, I did not know these packages existed.

>even with --with-libxl it doesnt work...

There was a bug in our code that ignored the error even if --with-libxl
was requested, patch sent:
https://www.redhat.com/archives/libvir-list/2020-February/msg00723.html

However the mentioned xen-devel package seems to contain a xenlight.pc
config file for pkg-config:
https://cbs.centos.org/koji/buildinfo?buildID=27840
so it should work.

Can you paste the config.log section beginning with 'checking for
LIBXL'?

On my Fedora 31 where I build with libxl it looks like this:
configure:23591: checking for LIBXL
configure:23598: $PKG_CONFIG --exists --print-errors "xenlight >=
4.6.0"
configure:23601: $? = 0
configure:23615: $PKG_CONFIG --exists --print-errors "xenlight >=
4.6.0"
configure:23618: $? = 0
configure:23666: result: yes
configure:23718: checking libxlutil.h usability
configure:23718: clang -c -g -ggdb3   conftest.c >&5
configure:23718: $? = 0
configure:23718: result: yes
configure:23718: checking libxlutil.h presence
configure:23718: clang -E  conftest.c
configure:23718: $? = 0
configure:23718: result: yes
configure:23718: checking for libxlutil.h
configure:23718: result: yes
configure:23743: checking for xtl_createlogger_stdiostream in -lxentoollog
configure:23768: clang -o conftest -g -ggdb3    conftest.c -lxentoollog  -lutil
-ltirpc -lpthread -ldl  >&5
configure:23768: $? = 0
configure:23777: result: yes
configure:23791: checking whether LIBXL_DOMAIN_TYPE_PVH is declared
configure:23791: clang -c -g -ggdb3   conftest.c >&5
configure:23791: $? = 0
configure:23791: result: yes
configure:23859: clang -o conftest -g -ggdb3    conftest.c -lutil -ltirpc
-lpthread -ldl  >&5
configure:23859: $? = 0
configure:23899: clang -o conftest -g -ggdb3    conftest.c -lutil -ltirpc
-lpthread -ldl  >&5
configure:23899: $? = 0

Jano