Closed mmlb closed 8 years ago
Thanks for reporting. Bummer that the Vagrant box disappeared.
I tried both Go 1.3 and Go 1.5 with just -lvirt
and everything seems to link OK. libdl
appears in the very first commit of this project so I am not too sure why I did it, possibly it is copy-pasted.
I'll pop this change in master and see how it goes.
cool :+1:
When trying to build master in a buildroot/crosstool-ng environment with go1.5 and gcc 4.9.2, we hit on a linker issue.
I had a PR prepped that added
-lrt
before the-ldl
to all#cgo
lines since it seemed that-lrt
is added to link stage automatically. But the missing symbol is unaccounted for becauselibrt
would have gotten it fromlibpthread
throughlibdl
, but since you already specifiedlibdl
the linker did not try to scan again. phew.So that pr worked but it seemed strange that it was even necessary. We removed
-ldl
and libvirt linked correctly. Now, this is with libvirt 1.2.9 and newer go and possibly gcc that you use in the vagrantfile so I tried to verify but it seems thatchef/fedora19
is no longer around and I can't test in your vagrant env. Can you verify that-ldl
is necessary?