[libvirt] Failing build on rawhide
mkletzan at redhat.com
Thu Aug 11 13:44:04 UTC 2016
So after updating my fedora-rawhide machines, I started receiving an
In file included from /usr/include/features.h:397:0,
/usr/include/sys/sysmacros.h:88:1: note: declared here
util/vircgroup.c: In function 'virCgroupAllowDevicePath':
util/vircgroup.c:2944:33: error: '__major_from_sys_types' is deprecated:
In the GNU C Library, `major' is defined by <sys/sysmacros.h>.
For historical compatibility, it is currently defined by
<sys/types.h> as well, but we plan to remove this soon.
To use `major', include <sys/sysmacros.h> directly.
If you did not intend to use a system-defined macro `major',
you should #undef it after including <sys/types.h>.
It looks like we might need to reorder the includes, but whatever I do,
I still get the warning. Updating gnulib doesn't help, so either we
need to #undef minor/major/makedev, or maybe gnulib needs to fix that
(my guess inspired by the include stack above).
So I figured I just post my findings here and let others continue the
wondering so that I can do some more useful stuff.
Have a nice day,
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: Digital signature
More information about the libvir-list