Comment 17 for bug 1718668

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

On zesty:
.. /usr/include/unistd.h
... /usr/include/features.h
.... /usr/include/x86_64-linux-gnu/sys/cdefs.h
..... /usr/include/x86_64-linux-gnu/bits/wordsize.h
.... /usr/include/x86_64-linux-gnu/gnu/stubs.h
..... /usr/include/x86_64-linux-gnu/gnu/stubs-64.h
... /usr/include/x86_64-linux-gnu/bits/posix_opt.h
... /usr/include/x86_64-linux-gnu/bits/environments.h
.... /usr/include/x86_64-linux-gnu/bits/wordsize.h
... /usr/include/x86_64-linux-gnu/bits/types.h
.... /usr/include/x86_64-linux-gnu/bits/wordsize.h
.... /usr/include/x86_64-linux-gnu/bits/typesizes.h
... /usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h
... /usr/include/x86_64-linux-gnu/bits/confname.h
... ../../gnulib/lib/getopt.h
.... /usr/include/getopt.h
.... ../../gnulib/lib/getopt-cdefs.h
.... ../../../../gnulib/lib/getopt-pfx-core.h
..... ../../../../gnulib/lib/getopt-core.h
.... ../../../../gnulib/lib/getopt-pfx-ext.h
..... ../../../../gnulib/lib/getopt-ext.h

Artful:
.. /usr/include/unistd.h
... /usr/include/features.h
.... /usr/include/x86_64-linux-gnu/sys/cdefs.h
..... /usr/include/x86_64-linux-gnu/bits/wordsize.h
..... /usr/include/x86_64-linux-gnu/bits/long-double.h
.... /usr/include/x86_64-linux-gnu/gnu/stubs.h
..... /usr/include/x86_64-linux-gnu/gnu/stubs-64.h
... /usr/include/x86_64-linux-gnu/bits/posix_opt.h
... /usr/include/x86_64-linux-gnu/bits/environments.h
.... /usr/include/x86_64-linux-gnu/bits/wordsize.h
... /usr/include/x86_64-linux-gnu/bits/types.h
.... /usr/include/x86_64-linux-gnu/bits/wordsize.h
.... /usr/include/x86_64-linux-gnu/bits/typesizes.h
... /usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h
... /usr/include/x86_64-linux-gnu/bits/confname.h
... /usr/include/x86_64-linux-gnu/bits/getopt_posix.h
.... /usr/include/x86_64-linux-gnu/bits/getopt_core.h

Due to https://sourceware.org/ml/libc-alpha/2017-04/msg00115.html in glibc 2.26.

TL;DR: the new glibc's unistd does pull in glibc's header for getopt before we include gnulib.

I need to:
1. find a workaround for libvirt in artful to work "as before" pulling in gnulib - maybe pre-including, but that is hard as it could be so many places.
2. get to a reproducer that is good to show the problem
   Why does gnulib work on old and new level in artful/zesty - write a rather simple repro to
   check. With that report to mailing lists.