On 06/02/2017 09:25 AM, Daniel P. Berrange wrote:
Fedora rawhide is now shipping with glibc 2.25.90 and when trying to
build libvirt with gnulib's getopt module, it crashes & burns
CC getopt.lo
In file included from ./getopt.h:57:0,
from ../../../gnulib/lib/getopt.c:26:
../../config.h:2934:25: warning: 'struct rpl_option' declared inside parameter
list will not be visible outside of this definition or declaration
#define __GETOPT_PREFIX rpl_
^
../../../gnulib/lib/getopt_pfx_core.h:38:44: note: in expansion of macro
'__GETOPT_PREFIX'
# define __GETOPT_ID(y) __GETOPT_XCONCAT (__GETOPT_PREFIX, y)
There is no file getopt_pfx_core.h in current Gnulib, so it sounds like
you have some sort of mixture of old and new Gnulib imported into
libvirt's source directory. suggest ripping out all the old stuff and
importing the latest Gnulib version.
To help debug this, you might try getting the latest Gnulib sources and
running "./gnulib-tool --test getopt" on your rawhide development
platform. If that command doesn't work, it's probably a Gnulib bug; if
the command does work, it's probably something else wrong with your setup.