[libvirt] Libvirt 1.3.0 compilation failure on OSX 10.9.5

Hiyas, Just went to update the MacOS X Homebrew port/formula for Libvirt 1.3.0. It's failing during compilation with: *********************************************************************************** Last 15 lines from /Users/jc/Library/Logs/Homebrew/libvirt/02.make: CCLD libvirt_driver_vbox.la CCLD libvirt_driver_storage.la Undefined symbols for architecture x86_64: "_xdr_uint64_t", referenced from: _xdr_virLogManagerProtocolLogFilePosition in virtlogd-log_protocol.o _xdr_virLogManagerProtocolDomainOpenLogFileRet in virtlogd-log_protocol.o _xdr_virLogManagerProtocolDomainGetLogFilePositionRet in virtlogd-log_protocol.o _xdr_virLogManagerProtocolDomainReadLogFileArgs in virtlogd-log_protocol.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [virtlogd] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 *********************************************************************************** Is this a known thing, or should I grab the rest of the failure logging for someone (not me) to look at? :) + Justin

Justin Clift wrote:
Hiyas,
Just went to update the MacOS X Homebrew port/formula for Libvirt 1.3.0. It's failing during compilation with:
***********************************************************************************
Last 15 lines from /Users/jc/Library/Logs/Homebrew/libvirt/02.make: CCLD libvirt_driver_vbox.la CCLD libvirt_driver_storage.la Undefined symbols for architecture x86_64: "_xdr_uint64_t", referenced from: _xdr_virLogManagerProtocolLogFilePosition in virtlogd-log_protocol.o _xdr_virLogManagerProtocolDomainOpenLogFileRet in virtlogd-log_protocol.o _xdr_virLogManagerProtocolDomainGetLogFilePositionRet in virtlogd-log_protocol.o _xdr_virLogManagerProtocolDomainReadLogFileArgs in virtlogd-log_protocol.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [virtlogd] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
***********************************************************************************
Is this a known thing, or should I grab the rest of the failure logging for someone (not me) to look at? :)
Hi Justin, Could you check if this patche solves the problem for you: http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/sysutils/libvirt/patches/patch-src_admin_admin_protocol_c?rev=1.2&content-type=text/x-cvsweb-markup ? Roman Bogorodskiy

Roman Bogorodskiy wrote:
Justin Clift wrote:
Hiyas,
Just went to update the MacOS X Homebrew port/formula for Libvirt 1.3.0. It's failing during compilation with:
***********************************************************************************
Last 15 lines from /Users/jc/Library/Logs/Homebrew/libvirt/02.make: CCLD libvirt_driver_vbox.la CCLD libvirt_driver_storage.la Undefined symbols for architecture x86_64: "_xdr_uint64_t", referenced from: _xdr_virLogManagerProtocolLogFilePosition in virtlogd-log_protocol.o _xdr_virLogManagerProtocolDomainOpenLogFileRet in virtlogd-log_protocol.o _xdr_virLogManagerProtocolDomainGetLogFilePositionRet in virtlogd-log_protocol.o _xdr_virLogManagerProtocolDomainReadLogFileArgs in virtlogd-log_protocol.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [virtlogd] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
***********************************************************************************
Is this a known thing, or should I grab the rest of the failure logging for someone (not me) to look at? :)
Hi Justin,
Could you check if this patche solves the problem for you:
Urgh, that's the wrong one. The right one is here: http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/sysutils/libvirt/patches/patch-src_logging_log_protocol_c?rev=1.2&content-type=text/x-cvsweb-markup But as they're identical, I'd assume you'll need the first one as well. Roman Bogorodskiy

On 6 Jan 2016, at 18:03, Roman Bogorodskiy <bogorodskiy@gmail.com> wrote:
Roman Bogorodskiy wrote:
Justin Clift wrote:
Hiyas,
Just went to update the MacOS X Homebrew port/formula for Libvirt 1.3.0. It's failing during compilation with:
***********************************************************************************
Last 15 lines from /Users/jc/Library/Logs/Homebrew/libvirt/02.make: CCLD libvirt_driver_vbox.la CCLD libvirt_driver_storage.la Undefined symbols for architecture x86_64: "_xdr_uint64_t", referenced from: _xdr_virLogManagerProtocolLogFilePosition in virtlogd-log_protocol.o _xdr_virLogManagerProtocolDomainOpenLogFileRet in virtlogd-log_protocol.o _xdr_virLogManagerProtocolDomainGetLogFilePositionRet in virtlogd-log_protocol.o _xdr_virLogManagerProtocolDomainReadLogFileArgs in virtlogd-log_protocol.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [virtlogd] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
***********************************************************************************
Is this a known thing, or should I grab the rest of the failure logging for someone (not me) to look at? :)
Hi Justin,
Could you check if this patche solves the problem for you:
Urgh, that's the wrong one. The right one is here:
But as they're identical, I'd assume you'll need the first one as well.
Interestingly, with just this one added in, libvirt now compiles fully and installs fine. Didn't need to touch admin_protocol.c at all. Maybe that's only conditionally compiled or something? virsh seems to start up ok, but I didn't actually try doing anything with it. ;) Should we call this "good enough for now", or is there more to do? :) + Justin

Justin Clift wrote:
On 6 Jan 2016, at 18:03, Roman Bogorodskiy <bogorodskiy@gmail.com> wrote:
Roman Bogorodskiy wrote:
Justin Clift wrote:
Hiyas,
Just went to update the MacOS X Homebrew port/formula for Libvirt 1.3.0. It's failing during compilation with:
***********************************************************************************
Last 15 lines from /Users/jc/Library/Logs/Homebrew/libvirt/02.make: CCLD libvirt_driver_vbox.la CCLD libvirt_driver_storage.la Undefined symbols for architecture x86_64: "_xdr_uint64_t", referenced from: _xdr_virLogManagerProtocolLogFilePosition in virtlogd-log_protocol.o _xdr_virLogManagerProtocolDomainOpenLogFileRet in virtlogd-log_protocol.o _xdr_virLogManagerProtocolDomainGetLogFilePositionRet in virtlogd-log_protocol.o _xdr_virLogManagerProtocolDomainReadLogFileArgs in virtlogd-log_protocol.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [virtlogd] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
***********************************************************************************
Is this a known thing, or should I grab the rest of the failure logging for someone (not me) to look at? :)
Hi Justin,
Could you check if this patche solves the problem for you:
Urgh, that's the wrong one. The right one is here:
But as they're identical, I'd assume you'll need the first one as well.
Interestingly, with just this one added in, libvirt now compiles fully and installs fine. Didn't need to touch admin_protocol.c at all. Maybe that's only conditionally compiled or something?
virsh seems to start up ok, but I didn't actually try doing anything with it. ;)
Should we call this "good enough for now", or is there more to do? :)
+ Justin
I'll prepare patches based on those from the OpenBSD libvirt port that address this problem and send them out for review soon, so, hopefully we'll get it fixed. Roman Bogorodskiy

On 8 Jan 2016, at 02:26, Roman Bogorodskiy <bogorodskiy@gmail.com> wrote: <snip>
I'll prepare patches based on those from the OpenBSD libvirt port that address this problem and send them out for review soon, so, hopefully we'll get it fixed.
Thanks Roman. When that's done, I'll be able to update the MacOS X Libvirt port. :) + Justin

On Fri, Jan 08, 2016 at 09:54:56AM +0000, Justin Clift wrote:
On 8 Jan 2016, at 02:26, Roman Bogorodskiy <bogorodskiy@gmail.com> wrote: <snip>
I'll prepare patches based on those from the OpenBSD libvirt port that address this problem and send them out for review soon, so, hopefully we'll get it fixed.
Thanks Roman. When that's done, I'll be able to update the MacOS X Libvirt port. :)
Hi guys, it would be nice if you posted those patches here. Or even the one from the bug. I would suggest taking that part of the file that repeats in all protocol files and put it in one common one that we will include everywhere. Also I don't see why it is needed for admin_protocol, but maybe I just missed something, better safe than sorry, right? ;) And also bear in mind that the *_protocol.c files are generated, so the common file should be included in the *_protocol.x files that they are being generated from. I'm sure you know that, but just for the info to be complete. Thanks, Martin
+ Justin
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
participants (3)
-
Justin Clift
-
Martin Kletzander
-
Roman Bogorodskiy