All of lore.kernel.org
 help / color / mirror / Atom feed
* building xen and libvirt with odd --prefix fails
@ 2015-04-16  8:17 Olaf Hering
  0 siblings, 0 replies; 2+ messages in thread
From: Olaf Hering @ 2015-04-16  8:17 UTC (permalink / raw)
  To: xen-devel, libvir-list; +Cc: Jim Fehlig

My xen is configured with "--prefix=/odd/path --enable-rpath".  My
libvirt is configured with "env PKG_CONFIG_PATH=/odd/path/share/pkgconfig
bash -x autogen.sh --without-xen --with-libxl". Now make in libvirt fails
to find "xen/xen.h" needed by xenconfig/xen_common.c, I think it expects
it in /usr/include. But I have no xen-devel.rpm installed.

I wonder if there are wrong assumptions in libvirt about xen. Since a
while xen has a xenlight.pc which contains the required info to find
headers and libs. Can there ever be a case where libxl is somewhere else
than libxenstore and whatever else is provided by xen? I think they
always go into the very same place.

So shouldnt libvirt be updated to first check for xenlight.pc, and use
the result for everything related to xen? I think that would work for
every xen version which has a xenlight.pc (4.5+).

And initially I did not pass the matching --prefix to libvirts configure.
Even with matching --prefix libvirt does not look in $prefix/include for
xen/xen.h, even with --includedir=$prefix/include.

Olaf

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: building xen and libvirt with odd --prefix fails
       [not found] <20150416081724.GA24484@aepfle.de>
@ 2015-04-16 12:02 ` Olaf Hering
  0 siblings, 0 replies; 2+ messages in thread
From: Olaf Hering @ 2015-04-16 12:02 UTC (permalink / raw)
  To: xen-devel, libvir-list; +Cc: Jim Fehlig

On Thu, Apr 16, Olaf Hering wrote:

> And initially I did not pass the matching --prefix to libvirts configure.
> Even with matching --prefix libvirt does not look in $prefix/include for
> xen/xen.h, even with --includedir=$prefix/include.

Using "env CFLAGS="-I/odd/path/include" CPPFLAGS="-I/odd/path/include"
./configure" helps with that. And I think thats the right way to do it
anyway.

Olaf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-16 12:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-16  8:17 building xen and libvirt with odd --prefix fails Olaf Hering
     [not found] <20150416081724.GA24484@aepfle.de>
2015-04-16 12:02 ` Olaf Hering

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.