Hi,
I was trying to compile some C programs for ldom. I have
Libvirt_LDoms-1_0_1 installed in my T5220 box with Solaris 10u5. But, I
encountered linking errors against libvirt as follows:
[i]root at ldom: {~/ldom/progs}> gcc -o info info.c `pkg-config libvirt --libs`
ld: fatal: library -lvirt: not found
ld: fatal: library -lxenstore: not found
ld: fatal: File processing errors. No output written to info
collect2: ld returned 1 exit status[/i]
I don't have Xen installed, so why library xenstore is required?
Libvirt is installed in /usr/lib.
[i]root at ldom: {~/ldom/progs}> ls -al /usr/lib/libvirt*
lrwxrwxrwx 1 root root 12 May 2 16:44 /usr/lib/libvirt.so ->
libvirt.s0.0
lrwxrwxrwx 1 root root 16 May 2 16:44 /usr/lib/libvirt.so.0 ->
libvirt.so.0.3.2
-rwxr-xr-x 1 root bin 324460 Dec 21 06:23
/usr/lib/libvirt.so.0.3.2[/i]
My /usr/lib/pkgconfig/libvirt.pc looks like below:
[i]root at ldom: {~}> cat /usr/lib/pkgconfig/libvirt.pc
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: libvirt
Version: 0.3.2
Description: libvirt library
Requires:
Libs: -L${libdir} -lvirt -lgnutls -lxenstore
Cflags: -I${includedir}[/i]
Any help on this will be highly appreciated.
--
This message was posted from opensolaris.org