Open Earnestly opened 6 years ago
Thanks.
The glibc's headers (<= 2.27??, current stable version at least) have the problem of circular reference between stdio.h and libio.h. So libio.h should be included before malloc.h that includes stdio.h, to control the order of their declarations.
I have not understood and will explore what about the problem has become in the recent version...
I has built latest glibc just now, and noticed that __GLIBC_MINOR__
is still 27, not incremented yet.
We can not determine the under-development version by #if
at this time (without reuse of the other differences).
BTW, libio.h may be replaced to struct_FILE.h.
I use glibc built from git master, so these changes are probably coming in the next release version.
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=3c03baca37fdcb52c3881e653ca392bba7a99c2b
__GLIBC_MINOR__
has been incremented now.
I'll retry to build...
During the build process when
headmaster
is invoked it results in the following errors:Oh my system (running a very recent build of glibc)
libio.h
is now gone, instead of being deprecated. They recommend you usestdio.h
instead.See https://sourceware.org/git/?p=glibc.git;a=commit;h=a4fea3f2c3253b9ae6ffacd3747034ccbe56bc60
As for the rest, here's the offending lines and a bit of context for the rest:
netdb.h
:cdefs.h
:byteswap.h
:struct_FILE.h
:define __putc_unlocked_body(_ch, _fp) \
(__glibc_unlikely ((_fp)->_IO_write_ptr >= (_fp)->_IO_write_end) \ ? __overflow (_fp, (unsigned char) (_ch)) \ : (unsigned char) (*(_fp)->_IO_write_ptr++ = (_ch)))
define _IO_EOF_SEEN 0x0010
define __feof_unlocked_body(_fp) (((_fp)->_flags & _IO_EOF_SEEN) != 0)
define _IO_ERR_SEEN 0x0020
define __ferror_unlocked_body(_fp) (((_fp)->_flags & _IO_ERR_SEEN) != 0)