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.
On zesty: unistd. h features. h x86_64- linux-gnu/ sys/cdefs. h x86_64- linux-gnu/ bits/wordsize. h x86_64- linux-gnu/ gnu/stubs. h x86_64- linux-gnu/ gnu/stubs- 64.h x86_64- linux-gnu/ bits/posix_ opt.h x86_64- linux-gnu/ bits/environmen ts.h x86_64- linux-gnu/ bits/wordsize. h x86_64- linux-gnu/ bits/types. h x86_64- linux-gnu/ bits/wordsize. h x86_64- linux-gnu/ bits/typesizes. h gcc/x86_ 64-linux- gnu/6/include/ stddef. h x86_64- linux-gnu/ bits/confname. h lib/getopt. h getopt. h 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
.. /usr/include/
... /usr/include/
.... /usr/include/
..... /usr/include/
.... /usr/include/
..... /usr/include/
... /usr/include/
... /usr/include/
.... /usr/include/
... /usr/include/
.... /usr/include/
.... /usr/include/
... /usr/lib/
... /usr/include/
... ../../gnulib/
.... /usr/include/
.... ../../gnulib/
.... ../../.
..... ../../.
.... ../../.
..... ../../.
Artful: unistd. h features. h x86_64- linux-gnu/ sys/cdefs. h x86_64- linux-gnu/ bits/wordsize. h x86_64- linux-gnu/ bits/long- double. h x86_64- linux-gnu/ gnu/stubs. h x86_64- linux-gnu/ gnu/stubs- 64.h x86_64- linux-gnu/ bits/posix_ opt.h x86_64- linux-gnu/ bits/environmen ts.h x86_64- linux-gnu/ bits/wordsize. h x86_64- linux-gnu/ bits/types. h x86_64- linux-gnu/ bits/wordsize. h x86_64- linux-gnu/ bits/typesizes. h gcc/x86_ 64-linux- gnu/7/include/ stddef. h x86_64- linux-gnu/ bits/confname. h x86_64- linux-gnu/ bits/getopt_ posix.h x86_64- linux-gnu/ bits/getopt_ core.h
.. /usr/include/
... /usr/include/
.... /usr/include/
..... /usr/include/
..... /usr/include/
.... /usr/include/
..... /usr/include/
... /usr/include/
... /usr/include/
.... /usr/include/
... /usr/include/
.... /usr/include/
.... /usr/include/
... /usr/lib/
... /usr/include/
... /usr/include/
.... /usr/include/
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.