Bug 795076 - Compile error (duplicate symbol _virFileWrapperFdFlags) with MacOS X and libvirt 0.9.10
Summary: Compile error (duplicate symbol _virFileWrapperFdFlags) with MacOS X and libv...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: All
OS: Mac OS
unspecified
medium
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-19 06:10 UTC by Lincoln
Modified: 2012-02-20 03:28 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-02-20 03:28:46 UTC
Embargoed:


Attachments (Terms of Use)

Description Lincoln 2012-02-19 06:10:35 UTC
As discussed here:

   http://www.redhat.com/archives/libvir-list/2012-February/msg00612.html

libvirt 0.9.10 final does not build on MacOS/X, while (according to
the list, I first started using with 0.9.10) 0.9.10-rc1 did build
correctly.

The following patch seems to fix it.  I believe virFileWrapperFdFlags
was accidentally declared as a global variable instead of as a type,
one way or another:

  --- a/src/util/virfile.h	Thu Feb 16 01:56:57 2012 -0800
  +++ b/src/util/virfile.h	Sat Feb 18 20:35:03 2012 -0800
  @@ -58,10 +58,10 @@
  
   int virFileDirectFdFlag(void);
   
  -enum {
  +enum virFileWrapperFdFlags {
       VIR_FILE_WRAPPER_BYPASS_CACHE   = (1 << 0),
       VIR_FILE_WRAPPER_NON_BLOCKING   = (1 << 1),
  -} virFileWrapperFdFlags;
  +};
  
   virFileWrapperFdPtr virFileWrapperFdNew(int *fd,
                                           const char *name,

Comment 1 Daniel Veillard 2012-02-20 03:28:46 UTC
Thanks a lot, pushed upstream ! Hopefully your name informations are
right, I had to guess:

http://libvirt.org/git/?p=libvirt.git;a=commitdiff;h=102690648db583e83b729bab19fafa943e4468af


Daniel


Note You need to log in before you can comment on or make changes to this bug.