[libvirt] libvirt compilation error, libvirt.so: undefined reference to `xmlParseFile'

nasb at ruedesrancy.org nasb at ruedesrancy.org
Mon Feb 18 11:05:35 UTC 2013


Hi (again),
I finally found what was wrong with my setup... libxml2 was build 
without SAX1 support.
Once libxml2 rebuild with --with-sax1, libvirt compiles fine.
Thx,
--
Eric LECAT


Le 18.02.2013 10:50, nasb at ruedesrancy.org a écrit :
> Hi,
>
> I'm currently trying to compile libvirt 1.0.2 on my custom
> x86_64/uClibc environnement. Configuration goes well (./configure
> --prefix=/usr --without-pyton), but during make I get the following
> error message :
>
>   CCLD   libvirtd
> 
> /lslbuild/svn/trunk/packages/virtualization/libvirt/libvirt-1.0.2/src/.libs/libvirt.so:
> undefined reference to `xmlParseFile'
> collect2: error: ld returned 1 exit status
>
>
> Looks like a -lxml2 flag missing, but configure found the correct
> flags according to the Makefile which contains :
> LIBXML_CFLAGS = -I/usr/include/libxml2
> LIBXML_LIBS = -lxml2
>
> Does anyone have an idea on what's going wrong? What other
> informations should I provide?
> Thanks,
> --
> Eric LECAT
>
> --
> libvir-list mailing list
> libvir-list at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list




More information about the libvir-list mailing list