[libvirt-users] libvirt build issue - make check fails , file name long

Hi, I was trying to build libvirt-0.10.2-29. Now, it builds fine in simple directory setting: like /home/itsme/test/libvirt/ But, if the directory setting is long: like /home/public/test/abc-v1/liibvrt-v1-v2/ = > it fails. Reason for failure is :qemumonitorjsontest I tried running the specific test case like : VIR_TEST_VERBOSE=1 ./qemumonitorjsontest ======================== 1) GetStatus ... libvir: XML-RPC error : Path /home/public/abc_v1_v2/libvirt_0.10.2_29/BUILD/libvirt-0.10.2/tests/qemumonitorjsontest.sock too long for unix socket: File name too long FAILED 2) GetVersion ... libvir: XML-RPC error : Path /home/public/abc_v1_v2/libvirt_0.10.2_29/BUILD/libvirt-0.10.2/tests/qemumonitorjsontest.sock too long for unix socket: File name too long FAILED 3) GetMachines ... libvir: XML-RPC error : Path /home/public/abc_v1_v2/libvirt_0.10.2_29/BUILD/libvirt-0.10.2/tests/qemumonitorjsontest.sock too long for unix socket: File name too long FAILED 4) GetCPUDefinitions ... libvir: XML-RPC error : Path /home/public/abc_v1_v2/libvirt_0.10.2_29/BUILD/libvirt-0.10.2/tests/qemumonitorjsontest.sock too long for unix socket: File name too long FAILED 5) GetCommands ... libvir: XML-RPC error : Path /home/public/abc_v1_v2/libvirt_0.10.2_29/BUILD/libvirt-0.10.2/tests/qemumonitorjsontest.sock too long for unix socket: File name too long FAILED ======================== Is this a known issue ? Is there any specific patch which addresses this issue ? Please let me know. Thanks, Raj

On 07/11/2014 04:13 AM, Raj Ravi wrote:
Hi, I was trying to build libvirt-0.10.2-29.
That's a downstream port. Which distro did you get it from? Have you reported it to the distro?
Now, it builds fine in simple directory setting: like /home/itsme/test/libvirt/
But, if the directory setting is long: like /home/public/test/abc-v1/liibvrt-v1-v2/ = > it fails.
Reason for failure is :qemumonitorjsontest
I tried running the specific test case like : VIR_TEST_VERBOSE=1 ./qemumonitorjsontest
======================== 1) GetStatus ... libvir: XML-RPC error : Path /home/public/abc_v1_v2/libvirt_0.10.2_29/BUILD/libvirt-0.10.2/tests/qemumonitorjsontest.sock too long for unix socket: File name too long
Looks like that downstream port failed to include this upstream commit: commit 0e7fd31fb52482903ebd34764c065867d26f93b5 Author: Guido Günther <agx@sigxcpu.org> Date: Mon Oct 29 09:28:15 2012 +0100 Create temporary dir for socket to avoid ENAMETOOLONG: https://buildd.debian.org/status/fetch.php?pkg=libvirt&arch=amd64&ver=1.0.0~rc1-1&stamp=1351453521
Is this a known issue ?
Yes, and one fixed upstream.
Is there any specific patch which addresses this issue ? Please let me know.
I just did :) -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
participants (2)
-
Eric Blake
-
Raj Ravi