Re: compilation error

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

 



2011/1/28 Justin Clift <jclift@xxxxxxxxxx>:
> On 28/01/2011, at 7:21 PM, antoni artigues wrote:
>> Hello
>>
>> Thanks again for all the help.
>>
>> Now with the patch and 0.8.7, and only ESX enabled returns this error:
>>
>> ----------------------------------
>> virsh-virsh.o(.text+0x128a8): In function `cmdCPUBaseline':
>> : undefined reference to `xmlSaveToBuffer'
>> collect2: ld returned 1 exit status
> <snip>
>
> Hey Daniel, any idea if there's a reasonable alternative to xmlSaveToBuffer(),
> that would work with older releases of libxml2? (ie the RHEL4 version)
>
> Regards and best wishes,
>
> Justin Clift
>

Well, we could just do the same as for the kernel version problem,
just remove the offending code from virsh.c as the cpu-baseline
command is currently not supported for ESX anyway :)

I attached a patch that just removes the entire cpu-baseline command
from virsh, quite harsh but effective.

Matthias
diff --git a/tools/virsh.c b/tools/virsh.c
index 4533d38..3611be7 100644
--- a/tools/virsh.c
+++ b/tools/virsh.c
@@ -8946,6 +8946,7 @@ cmdCPUCompare(vshControl *ctl, const vshCmd *cmd)
     return ret;
 }
 
+#if 0
 /*
  * "cpu-baseline" command
  */
@@ -9063,6 +9064,7 @@ no_memory:
     ret = FALSE;
     goto cleanup;
 }
+#endif
 
 /* Common code for the edit / net-edit / pool-edit functions which follow. */
 static char *
@@ -9979,7 +9981,9 @@ static const vshCmdDef domManagementCmds[] = {
 #ifndef WIN32
     {"console", cmdConsole, opts_console, info_console},
 #endif
+#if 0
     {"cpu-baseline", cmdCPUBaseline, opts_cpu_baseline, info_cpu_baseline},
+#endif
     {"cpu-compare", cmdCPUCompare, opts_cpu_compare, info_cpu_compare},
     {"create", cmdCreate, opts_create, info_create},
     {"define", cmdDefine, opts_define, info_define},

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

  Powered by Linux